Skip to content

Commit 207db21

Browse files
karam-mustafagithub-actions[bot]
authored andcommitted
Fix styling
1 parent 1b28c26 commit 207db21

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.php-cs-fixer.cache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"php":"8.1.3","version":"3.7.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"sort_algorithm":"alpha"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}}},"hashes":{"src\/Commands\/InstallCommand.php":1065401043,"src\/Facade\/QueryHelperFacade.php":1424222852,"src\/Config\/query_helper.php":3245707786,"src\/Providers\/QueryHelperServiceProviders.php":608029189,"src\/Classes\/DeleteHelper.php":513319136,"src\/Classes\/UpdateHelper.php":349709783,"src\/Classes\/InsertHelper.php":3586087926,"src\/Classes\/JoinHelper.php":3661173632,"src\/Classes\/BaseHelper.php":4217219097,"src\/Classes\/QueryHelper.php":4113349496,"tests\/BaseTest.php":364171998,"tests\/Feature\/ExampleTest.php":3403803516}}
1+
{"php":"8.1.5","version":"3.8.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_opening_tag":true,"braces":{"allow_single_line_anonymous_class_with_empty_body":true},"class_definition":{"inline_constructor_arguments":false,"space_before_parenthesis":true},"compact_nullable_typehint":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"ordered_imports":{"sort_algorithm":"alpha"},"return_type_declaration":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}}},"hashes":{"src\/Providers\/QueryHelperServiceProviders.php":608029189,"src\/Commands\/InstallCommand.php":1065401043,"src\/Facade\/QueryHelperFacade.php":1424222852,"src\/Classes\/DeleteHelper.php":1760156729,"src\/Classes\/QueryHelper.php":4113349496,"src\/Classes\/JoinHelper.php":3661173632,"src\/Classes\/BaseHelper.php":1388253832,"src\/Classes\/InsertHelper.php":3586087926,"src\/Classes\/UpdateHelper.php":349709783,"src\/Config\/query_helper.php":3245707786,"tests\/BaseTest.php":364171998,"tests\/Feature\/ExampleTest.php":3403803516}}

src/Classes/BaseHelper.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,11 @@ public function setAllTablesFromDatabase()
176176
$this->loopThrough(
177177
$this->getAllTablesFromDatabase()->getSavedItems(),
178178
function ($key, $item) use ($columnName) {
179-
if (!in_array($item->$columnName, $this->ignoredTables)) {
179+
if (! in_array($item->$columnName, $this->ignoredTables)) {
180180
$this->setTables($item->$columnName);
181181
}
182-
});
182+
}
183+
);
183184

184185
return $this;
185186
}
@@ -318,13 +319,13 @@ public function setSavedItems($savedItems)
318319
*/
319320
public function checkIfQueryAllowed($ids, $callbackIfPassed = null, $chunkCountAllowed = null)
320321
{
321-
if (!isset($chunckCountAllowed)) {
322+
if (! isset($chunckCountAllowed)) {
322323
$chunkCountAllowed = $this->getAllowedWhereInQueryNumber();
323324
}
324325

325326
$items = [];
326327
$lists = collect($ids)->chunk($chunkCountAllowed + 1);
327-
if (!is_null($callbackIfPassed)) {
328+
if (! is_null($callbackIfPassed)) {
328329
foreach ($lists as $index => $list) {
329330
$items[] = $callbackIfPassed($list, $index);
330331
}
@@ -381,7 +382,6 @@ public function executeWithoutPrepare()
381382
});
382383

383384
return $this;
384-
385385
} catch (\Exception $e) {
386386
throw new \Exception($e->getMessage());
387387
}

src/Classes/DeleteHelper.php

-1
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,4 @@ public function prepareDataBaseTablesToDrop()
9090

9191
return $this;
9292
}
93-
9493
}

0 commit comments

Comments
 (0)