File tree Expand file tree Collapse file tree 3 files changed +11
-13
lines changed
Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 4040 },
4141 "require-dev" : {
4242 "ext-xdebug" : " *" ,
43- "aplus/coding-standard" : " ^1.12 " ,
43+ "aplus/coding-standard" : " ^1.13 " ,
4444 "ergebnis/composer-normalize" : " ^2.25" ,
4545 "jetbrains/phpstorm-attributes" : " ^1.0" ,
4646 "phpmd/phpmd" : " ^2.12" ,
Original file line number Diff line number Diff line change @@ -87,13 +87,13 @@ protected function renderValidations() : string
8787 <?php
8888 foreach ($ this ->getData () as $ index => $ item ):
8989 $ count = \count ($ item ['errors ' ]);
90- $ errors = [];
91- foreach ($ item ['errors ' ] as $ field => $ error ) {
92- $ errors [] = [
90+ $ errors = [];
91+ foreach ($ item ['errors ' ] as $ field => $ error ) :
92+ $ errors [] = [
9393 'field ' => $ field ,
9494 'error ' => $ error ,
9595 ];
96- } ?>
96+ endforeach ; ?>
9797 <tr>
9898 <td rowspan="<?= $ count ?> "><?= $ index + 1 ?> </td>
9999 <td rowspan="<?= $ count ?> "><?= $ item ['type ' ] ?> </td>
@@ -102,19 +102,16 @@ protected function renderValidations() : string
102102 <td><?= $ errors [0 ]['error ' ] ?? '' ?> </td>
103103 <td rowspan="<?= $ count ?> "><?= \round ($ item ['end ' ] - $ item ['start ' ], 6 ) ?> </td>
104104 </tr>
105- <?php
106- for ($ i = 1 ; $ i < $ count ; $ i ++): ?>
105+ <?php for ($ i = 1 ; $ i < $ count ; $ i ++): ?>
107106 <tr>
108107 <td><?= $ errors [$ i ]['field ' ] ?> </td>
109108 <td><?= $ errors [$ i ]['error ' ] ?> </td>
110109 </tr>
111- <?php
112- endfor ;
113- endforeach ?>
110+ <?php endfor ;
111+ endforeach ; ?>
114112 </tbody>
115113 </table>
116- <?php
117- return \ob_get_clean (); // @phpstan-ignore-line
114+ <?php return \ob_get_clean (); // @phpstan-ignore-line
118115 }
119116
120117 protected function renderRuleset () : string
Original file line number Diff line number Diff line change @@ -421,7 +421,8 @@ public function isset() : static
421421 public function specialChar (
422422 int $ quantity = 1 ,
423423 string $ characters = '!"#$%& \'()*+,-./:;=<>?@[\]^_`{|}~ '
424- ) : static {
424+ ) : static
425+ {
425426 $ this ->rules [] = 'specialChar: ' . $ quantity . ', ' . $ this ->esc ($ characters );
426427 return $ this ;
427428 }
You can’t perform that action at this time.
0 commit comments