@@ -95,7 +95,7 @@ static function (): void {
9595 array $ arguments ,
9696 int $ value ,
9797 int $ limes = 6 ,
98- int $ comma = 0
98+ int $ comma = 0 ,
9999 ) => implode (' ' , (array ) Util::formatByteDown ($ value , $ limes , $ comma ))
100100 );
101101 $ this ->expression ->register (
@@ -111,7 +111,7 @@ function (array $arguments, int|string $value) {
111111 }
112112
113113 return '0 ' ;
114- }
114+ },
115115 );
116116 /* Some global variables for advisor */
117117 $ this ->globals = [
@@ -186,7 +186,7 @@ private function storeError(string $description, Throwable $exception): void
186186 {
187187 $ this ->runResult ['errors ' ][] = $ description . ' ' . sprintf (
188188 __ ('Error when evaluating: %s ' ),
189- $ exception ->getMessage ()
189+ $ exception ->getMessage (),
190190 );
191191 }
192192
@@ -213,9 +213,9 @@ private function runRules(): void
213213 $ this ->storeError (
214214 sprintf (
215215 __ ('Failed evaluating precondition for rule \'%s \'. ' ),
216- $ rule ['name ' ]
216+ $ rule ['name ' ],
217217 ),
218- $ e
218+ $ e,
219219 );
220220 continue ;
221221 }
@@ -233,9 +233,9 @@ private function runRules(): void
233233 $ this ->storeError (
234234 sprintf (
235235 __ ('Failed calculating value for rule \'%s \'. ' ),
236- $ rule ['name ' ]
236+ $ rule ['name ' ],
237237 ),
238- $ e
238+ $ e,
239239 );
240240 continue ;
241241 }
@@ -252,9 +252,9 @@ private function runRules(): void
252252 $ this ->storeError (
253253 sprintf (
254254 __ ('Failed running test for rule \'%s \'. ' ),
255- $ rule ['name ' ]
255+ $ rule ['name ' ],
256256 ),
257- $ e
257+ $ e,
258258 );
259259 }
260260 }
@@ -281,7 +281,7 @@ public function addRule(string $type, array $rule): void
281281 } catch (Throwable $ e ) {
282282 $ this ->storeError (
283283 sprintf (__ ('Failed formatting string for rule \'%s \'. ' ), $ rule ['name ' ]),
284- $ e
284+ $ e,
285285 );
286286
287287 return ;
@@ -295,19 +295,19 @@ public function addRule(string $type, array $rule): void
295295 $ rule ['recommendation ' ] = preg_replace_callback (
296296 '/\{([a-z_0-9]+)\}/Ui ' ,
297297 fn (array $ matches ) => $ this ->replaceVariable ($ matches ),
298- $ rule ['recommendation ' ]
298+ $ rule ['recommendation ' ],
299299 );
300300 $ rule ['issue ' ] = preg_replace_callback (
301301 '/\{([a-z_0-9]+)\}/Ui ' ,
302302 fn (array $ matches ) => $ this ->replaceVariable ($ matches ),
303- $ rule ['issue ' ]
303+ $ rule ['issue ' ],
304304 );
305305
306306 // Replaces external Links with Core::linkURL() generated links
307307 $ rule ['recommendation ' ] = preg_replace_callback (
308308 '#href=("| \')(https?://[^" \']+)\1#i ' ,
309309 fn (array $ matches ) => $ this ->replaceLinkURL ($ matches ),
310- $ rule ['recommendation ' ]
310+ $ rule ['recommendation ' ],
311311 );
312312
313313 $ this ->runResult [$ type ][] = $ rule ;
0 commit comments