Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
zofe authored and github-actions[bot] committed Jun 15, 2024
1 parent 248e641 commit 684f828
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"php":"8.3.8","version":"3.58.1","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces_position":true,"class_definition":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":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_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":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,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sort_algorithm":"alpha"},"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,"single_trait_insert_per_statement":true},"hashes":{"src\/Traits\/WithFormRequest.php":"e5308619a2b86841d7b7b455f2716bc9","src\/Traits\/ShortId.php":"d23020e46ca05a62955865d891643a68","src\/Traits\/SSearch.php":"7a9d10b14c22da4bec547afdf9698e86","src\/Traits\/WithPagination.php":"2950b51d693494c399d1ec75f851e1d1","src\/Traits\/WithDataTable.php":"6888788347b2864f7496e936f82438aa","src\/Traits\/WithSorting.php":"e4aee4c598c1ea5459eaeb8ff8ae81b3","src\/Traits\/WithPaginationCustom.php":"d4e9bb13340ae6a37f2dc82181d74a3e","src\/Modules\/ModuleServiceProvider.php":"23f0f72aba1b78b35d7c92c387332a13","src\/Commands\/RapydMakeLayoutCommand.php":"a198563f5352dee3903a564b830ddbdd","src\/Commands\/ModuleCommand.php":"9e96476448c46e482f79c87a5546c5fa","src\/Commands\/AssetsCommand.php":"e0061ebec64b8bfc5671371507a839a5","src\/Commands\/RapydMakeCommand.php":"93e920b4559faa6e6d5b510011572fe1","src\/Commands\/RapydMakeEditCommand.php":"74bfad513cde73dd0783d820e1869b23","src\/Commands\/DataTableCommand.php":"9709469176cc6074baa55143bb35601e","src\/Commands\/RapydMakeTableCommand.php":"1cd723aadc9487764f46b393e45ad3ba","src\/Commands\/RapydMakeViewCommand.php":"5adc48a764392eb266964cc8c686c0f3","src\/Commands\/RapydMakeBaseCommand.php":"690d954a29cacb0feadcafc6849db55e","src\/Mechanisms\/RapydTagPrecompiler.php":"9036621a4734ea17ae74ba554bbf45a4","src\/helpers.php":"ca490812b212f0eb9fb66f69cca55532","src\/Breadcrumbs\/Trail.php":"0dff6723586692fb7a2e967271ffdaa8","src\/Breadcrumbs\/Registrar.php":"f019a1b42ddcc3687cb2e4dd687f6a70","src\/Breadcrumbs\/Breadcrumbs.php":"5ccb08e79a4fd33e74731e5e813350b0","src\/Breadcrumbs\/BreadcrumbsComponent.php":"55cace2c79ff8711d91db443867fd284","src\/Breadcrumbs\/Crumb.php":"9e7918ad7cb3a1601c4b06508b82ea6a","src\/Breadcrumbs\/BreadcrumbsMiddleware.php":"1a0c396e399b74ffbfb357aa1ed3ea45","src\/Breadcrumbs\/BreadcrumbsServiceProvider.php":"8ca515686f24bf4c0e31d2763461e50d","src\/Breadcrumbs\/Manager.php":"8af7a756e246ffb41f378b52af225a19","src\/Rapyd.php":"d73c429d4e9c37b299f1aca71dac6f43","src\/RapydServiceProvider.php":"a00ddb7660512898ed54aa843a7aa588","src\/Http\/Livewire\/AbstractDataTable.php":"a8f9d4030651d1045076a880238d9cfe","src\/Http\/Livewire\/BaseComponent.php":"0e83b9f4fb62a54126037b7b76616058","src\/Http\/Livewire\/RapydApp.php":"aecc27d740fa87a7101c87315108d0c9","src\/Http\/Livewire\/AbstractDataView.php":"bc349805ee411a1f5bcedd141773d546","src\/Http\/Livewire\/FormRequest.php":"b0c4c0e229d977abf8c09a4969a23d02","src\/Http\/Livewire\/AbstractDataEdit.php":"5fb084a7406b77a6927f08218a7900ad","src\/Utilities\/StrReplacer.php":"b226d02e860a64f0478823ab3af71ce3","src\/RapydFacade.php":"9ea1541623a15fac0846879b5c5dc801","tests\/TestCase.php":"1469a71cf0d120753b930e6736b4d31e","tests\/Feature\/RapydTest.php":"6d133c0927cb15229bcb89c882ceeeb3","tests\/Http\/Livewire\/ArticlesEdit.php":"bde320fb1e76791df7a9febf1c4f828b","tests\/Http\/Livewire\/ArticlesView.php":"d92589645e908bf3d9f093295c66746f","tests\/Http\/Livewire\/ArticlesTable.php":"a7cc225d13ebac5cd8b4db2dd44d5432","tests\/Models\/Author.php":"34e6576d062c2d4efe904384db7d0e68","tests\/Models\/Article.php":"f8d9c4a267f84b783575a330ce4e486e","tests\/database\/migrations\/2022_03_28_000000_create_demos.php":"b31afef6d16b8cba52a12a0cd8bf05c9","tests\/ExampleTest.php":"59b0c7576891cbe79043f5e922400ed4","src\/Commands\/RapydMakeHomeCommand.php":"c95a59ac28516bbb89ef23bd5e96cfa3","src\/Commands\/RapydMakeModelCommand.php":"3701a2c3575596cb770c228e3c8177a0"}}
{"php":"8.3.8","version":"3.58.1","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces_position":true,"class_definition":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":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_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":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,"spaces_inside_parentheses":true,"statement_indentation":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sort_algorithm":"alpha"},"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,"single_trait_insert_per_statement":true},"hashes":{"src\/Traits\/WithFormRequest.php":"e5308619a2b86841d7b7b455f2716bc9","src\/Traits\/ShortId.php":"d23020e46ca05a62955865d891643a68","src\/Traits\/SSearch.php":"7a9d10b14c22da4bec547afdf9698e86","src\/Traits\/WithPagination.php":"2950b51d693494c399d1ec75f851e1d1","src\/Traits\/WithDataTable.php":"6888788347b2864f7496e936f82438aa","src\/Traits\/WithSorting.php":"e4aee4c598c1ea5459eaeb8ff8ae81b3","src\/Traits\/WithPaginationCustom.php":"d4e9bb13340ae6a37f2dc82181d74a3e","src\/Modules\/ModuleServiceProvider.php":"23f0f72aba1b78b35d7c92c387332a13","src\/Commands\/RapydMakeLayoutCommand.php":"a198563f5352dee3903a564b830ddbdd","src\/Commands\/ModuleCommand.php":"9e96476448c46e482f79c87a5546c5fa","src\/Commands\/AssetsCommand.php":"e0061ebec64b8bfc5671371507a839a5","src\/Commands\/RapydMakeCommand.php":"93e920b4559faa6e6d5b510011572fe1","src\/Commands\/RapydMakeEditCommand.php":"4caf49a397e5cc905940aba5aa69d09b","src\/Commands\/DataTableCommand.php":"9709469176cc6074baa55143bb35601e","src\/Commands\/RapydMakeTableCommand.php":"a31d1bb210e8b60c7e465607134da8ec","src\/Commands\/RapydMakeViewCommand.php":"f6c6fa8b394029746c9ebda16d2c5401","src\/Commands\/RapydMakeBaseCommand.php":"73e668130e575438c38d4d99313171cb","src\/Mechanisms\/RapydTagPrecompiler.php":"75433c25622110825d5163b6020eea4e","src\/helpers.php":"ca490812b212f0eb9fb66f69cca55532","src\/Breadcrumbs\/Trail.php":"0dff6723586692fb7a2e967271ffdaa8","src\/Breadcrumbs\/Registrar.php":"f019a1b42ddcc3687cb2e4dd687f6a70","src\/Breadcrumbs\/Breadcrumbs.php":"5ccb08e79a4fd33e74731e5e813350b0","src\/Breadcrumbs\/BreadcrumbsComponent.php":"55cace2c79ff8711d91db443867fd284","src\/Breadcrumbs\/Crumb.php":"9e7918ad7cb3a1601c4b06508b82ea6a","src\/Breadcrumbs\/BreadcrumbsMiddleware.php":"1a0c396e399b74ffbfb357aa1ed3ea45","src\/Breadcrumbs\/BreadcrumbsServiceProvider.php":"8ca515686f24bf4c0e31d2763461e50d","src\/Breadcrumbs\/Manager.php":"8af7a756e246ffb41f378b52af225a19","src\/Rapyd.php":"d73c429d4e9c37b299f1aca71dac6f43","src\/RapydServiceProvider.php":"a00ddb7660512898ed54aa843a7aa588","src\/Http\/Livewire\/AbstractDataTable.php":"a8f9d4030651d1045076a880238d9cfe","src\/Http\/Livewire\/BaseComponent.php":"0e83b9f4fb62a54126037b7b76616058","src\/Http\/Livewire\/RapydApp.php":"aecc27d740fa87a7101c87315108d0c9","src\/Http\/Livewire\/AbstractDataView.php":"bc349805ee411a1f5bcedd141773d546","src\/Http\/Livewire\/FormRequest.php":"b0c4c0e229d977abf8c09a4969a23d02","src\/Http\/Livewire\/AbstractDataEdit.php":"5fb084a7406b77a6927f08218a7900ad","src\/Utilities\/StrReplacer.php":"b226d02e860a64f0478823ab3af71ce3","src\/RapydFacade.php":"9ea1541623a15fac0846879b5c5dc801","tests\/TestCase.php":"1469a71cf0d120753b930e6736b4d31e","tests\/Feature\/RapydTest.php":"6d133c0927cb15229bcb89c882ceeeb3","tests\/Http\/Livewire\/ArticlesEdit.php":"bde320fb1e76791df7a9febf1c4f828b","tests\/Http\/Livewire\/ArticlesView.php":"d92589645e908bf3d9f093295c66746f","tests\/Http\/Livewire\/ArticlesTable.php":"a7cc225d13ebac5cd8b4db2dd44d5432","tests\/Models\/Author.php":"34e6576d062c2d4efe904384db7d0e68","tests\/Models\/Article.php":"f8d9c4a267f84b783575a330ce4e486e","tests\/database\/migrations\/2022_03_28_000000_create_demos.php":"b31afef6d16b8cba52a12a0cd8bf05c9","tests\/ExampleTest.php":"59b0c7576891cbe79043f5e922400ed4","src\/Commands\/RapydMakeHomeCommand.php":"c95a59ac28516bbb89ef23bd5e96cfa3","src\/Commands\/RapydMakeModelCommand.php":"3701a2c3575596cb770c228e3c8177a0"}}
4 changes: 2 additions & 2 deletions src/Commands/RapydMakeEditCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected function buildLinkToEdit($viewpath, $route)
if($viewContent && strpos($route, '.edit')) {

$precompiler = new RapydTagPrecompiler();
$newViewContent = $precompiler($viewContent, ['route' => $route, 'ref'=>'link-edit']);
$newViewContent = $precompiler($viewContent, ['route' => $route, 'ref' => 'link-edit']);

File::put($viewpath, $newViewContent);
}
Expand All @@ -169,7 +169,7 @@ protected function buildLinkToAdd($viewpath, $route)
if($viewContent && strpos($route, '.edit')) {

$precompiler = new RapydTagPrecompiler();
$newViewContent = $precompiler($viewContent, ['route' => $route, 'ref'=>'link-add']);
$newViewContent = $precompiler($viewContent, ['route' => $route, 'ref' => 'link-add']);

File::put($viewpath, $newViewContent);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/RapydMakeViewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected function buildLinkToView($viewpath, $route)
if($viewContent && strpos($route, '.view')) {

$precompiler = new RapydTagPrecompiler();
$newViewContent = $precompiler($viewContent, ['route' => $route, 'ref'=>'link-view']);
$newViewContent = $precompiler($viewContent, ['route' => $route, 'ref' => 'link-view']);

File::put($viewpath, $newViewContent);
}
Expand Down
1 change: 1 addition & 0 deletions src/Mechanisms/RapydTagPrecompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ protected function replaceLinkAddTags($value, $pattern, $params = [])
if(count($params) && isset($params['route'])) {
return '<a href="{{ route(\'' . $params['route'] . '\') }}" class="btn btn-outline-primary">Add</a>';
}

return $matches[0];
}, $value);
}
Expand Down

0 comments on commit 684f828

Please sign in to comment.