@@ -94,7 +94,7 @@ public function test_ensures_directory_exists(): void
9494 $ mock ->expects ('isWritable ' )->with ($ path )->andReturnTrue ();
9595 });
9696
97- $ this ->app ->make (EnsureDirectoryExists::class)->handle (new Listing (), fn ($ listing ) => $ listing );
97+ $ this ->app ->make (EnsureDirectoryExists::class)->handle (new Listing (), fn ($ listing ) => $ listing );
9898 }
9999
100100 public function test_ensures_directory_exists_throws_if_not_writable (): void
@@ -111,7 +111,7 @@ public function test_ensures_directory_exists_throws_if_not_writable(): void
111111 $ this ->expectException (PreloadException::class);
112112 $ this ->expectExceptionMessage ("The path [ $ path] is not writable. " );
113113
114- $ pipe ->handle (new Listing (), fn ($ listing ) => $ listing );
114+ $ pipe ->handle (new Listing (), fn ($ listing ) => $ listing );
115115 }
116116
117117 public function test_write_list_file (): void
@@ -126,7 +126,7 @@ public function test_write_list_file(): void
126126 $ listing = new Listing (files: new Collection (['foo ' , 'bar ' ]));
127127
128128 $ this ->app ->make (WriteListFile::class)
129- ->handle ($ listing , fn ($ listing ) => $ listing );
129+ ->handle ($ listing , fn ($ listing ) => $ listing );
130130
131131 static ::assertEmpty ($ listing ->files );
132132 }
@@ -142,13 +142,13 @@ public function test_write_list_file_throws_if_writing_files(): void
142142 $ this ->expectException (PreloadException::class);
143143 $ this ->expectExceptionMessage ("Couldn't write list file to [ $ path]. " );
144144
145- $ pipe ->handle (new Listing (files: new Collection (['foo ' , 'bar ' ])), fn ($ listing ) => $ listing );
145+ $ pipe ->handle (new Listing (files: new Collection (['foo ' , 'bar ' ])), fn ($ listing ) => $ listing );
146146 }
147147
148148 public function test_load_statistics_stub (): void
149149 {
150150 $ listing = $ this ->app ->make (LoadStatisticsStub::class)
151- ->handle (new Listing (), fn ($ listing ) => $ listing );
151+ ->handle (new Listing (), fn ($ listing ) => $ listing );
152152
153153 static ::assertStringEqualsFile (Preloader::STUB_STATISTICS , $ listing ->statistics ->toString ());
154154
@@ -178,7 +178,7 @@ public function test_load_statistics_stub_throws_when_stub_doesnt_exist(): void
178178 $ this ->expectException (PreloadException::class);
179179 $ this ->expectExceptionMessage ('Cannot read the stub " ' .Preloader::STUB_STATISTICS .'" contents. ' );
180180
181- $ pipe ->handle (new Listing (), fn ($ listing ) => $ listing );
181+ $ pipe ->handle (new Listing (), fn ($ listing ) => $ listing );
182182 }
183183
184184 public function test_set_statistics (): void
@@ -197,7 +197,7 @@ public function test_set_statistics(): void
197197
198198 $ listing = $ this ->app ->make (SetStatistics::class)
199199 ->handle (new Listing (statistics: new Stringable ($ replaceable ), includeCount: 1 , excludeCount: 4 ),
200- fn ($ listing ) => $ listing );
200+ fn ($ listing ) => $ listing );
201201
202202 static ::assertSame (<<<'EXPECTED'
2032032020-01-01 00:00:00
@@ -226,7 +226,7 @@ public function test_set_statistics_with_config(bool $config, string $expected):
226226 $ this ->app ->make ('config ' )->set ('preload.use_require ' , $ config );
227227
228228 $ this ->app ->make (SetStatistics::class)
229- ->handle ($ listing , fn ($ listing ) => $ listing );
229+ ->handle ($ listing , fn ($ listing ) => $ listing );
230230
231231 static ::assertSame ($ expected , $ listing ->statistics ->toString ());
232232 }
@@ -247,7 +247,7 @@ public function test_set_statistics_included_excluded(string $replaceable, strin
247247 $ this ->mock (DateFactory::class)->expects ('now ' )->andReturn (Carbon::create (2020 ));
248248
249249 $ this ->app ->make (SetStatistics::class)
250- ->handle ($ listing , fn ($ listing ) => $ listing );
250+ ->handle ($ listing , fn ($ listing ) => $ listing );
251251
252252 static ::assertSame ("$ replaceable: $ expected " , $ listing ->statistics ->toString ());
253253 }
@@ -270,7 +270,7 @@ public function test_set_statistics_memory_limits(string $replaceable, string $e
270270 $ this ->mock (DateFactory::class)->expects ('now ' )->andReturn (Carbon::create (2020 ));
271271
272272 $ this ->app ->make (SetStatistics::class)
273- ->handle ($ listing , fn ($ listing ) => $ listing );
273+ ->handle ($ listing , fn ($ listing ) => $ listing );
274274
275275 static ::assertSame ("$ replaceable: $ expected " , $ listing ->statistics ->toString ());
276276 }
@@ -301,7 +301,7 @@ public function test_set_opcache_config(): void
301301 );
302302
303303 $ this ->app ->make (SetOpcacheConfig::class)
304- ->handle ($ listing , fn ($ listing ) => $ listing );
304+ ->handle ($ listing , fn ($ listing ) => $ listing );
305305
306306 static ::assertSame (<<<'EXPECTED'
3073075.0
@@ -325,7 +325,7 @@ public function test_writes_statistics_file(): void
325325 )->andReturnTrue ();
326326
327327 $ this ->app ->make (WriteStatisticsFile::class)
328- ->handle (new Listing (statistics: $ statistics ), fn ($ listing ) => $ listing );
328+ ->handle (new Listing (statistics: $ statistics ), fn ($ listing ) => $ listing );
329329 }
330330
331331 public function test_writes_statistics_file_throws_when_cannot_put (): void
@@ -339,13 +339,13 @@ public function test_writes_statistics_file_throws_when_cannot_put(): void
339339 $ this ->expectException (PreloadException::class);
340340 $ this ->expectExceptionMessage ("Couldn't write statistics file to [ $ path]. " );
341341
342- $ pipe ->handle (new Listing (), fn ($ listing ) => $ listing );
342+ $ pipe ->handle (new Listing (), fn ($ listing ) => $ listing );
343343 }
344344
345345 public function test_load_preload_stub (): void
346346 {
347347 $ listing = $ this ->app ->make (LoadPreloaderStub::class)
348- ->handle (new Listing (), fn ($ listing ) => $ listing );
348+ ->handle (new Listing (), fn ($ listing ) => $ listing );
349349
350350 static ::assertStringEqualsFile (Preloader::STUB_PRELOAD , $ listing ->preloader ->toString ());
351351
@@ -373,15 +373,15 @@ public function test_load_preload_stub_throws_when_file_not_found(): void
373373 $ this ->expectException (PreloadException::class);
374374 $ this ->expectExceptionMessage ('Cannot read the stub " ' .Preloader::STUB_PRELOAD .'" contents. ' );
375375
376- $ pipe ->handle (new Listing (), fn ($ listing ) => $ listing );
376+ $ pipe ->handle (new Listing (), fn ($ listing ) => $ listing );
377377 }
378378
379379 public function test_set_preload_config_autoload_as_null (): void
380380 {
381381 $ config = $ this ->app ->make ('config ' );
382382 $ listing = new Listing (preloader: new Stringable ('@autoload ' ));
383383
384- $ this ->app ->make (SetPreloadConfig::class)->handle ($ listing , fn ($ listing ) => $ listing );
384+ $ this ->app ->make (SetPreloadConfig::class)->handle ($ listing , fn ($ listing ) => $ listing );
385385
386386 static ::assertSame ('' , $ listing ->preloader ->toString ());
387387 }
@@ -395,7 +395,7 @@ public function test_set_preload_config_autoload_with_path(): void
395395
396396 $ config ->set ('preload.use_require ' , true );
397397
398- $ this ->app ->make (SetPreloadConfig::class)->handle ($ listing , fn ($ listing ) => $ listing );
398+ $ this ->app ->make (SetPreloadConfig::class)->handle ($ listing , fn ($ listing ) => $ listing );
399399
400400 static ::assertSame (
401401 'require_once \'' .realpath ($ config ->get ('preload.autoloader ' )).'\'; ' ,
@@ -417,13 +417,13 @@ public function test_set_preload_config_throws_when_autoload_required_and_missin
417417 $ this ->expectException (PreloadException::class);
418418 $ this ->expectExceptionMessage ("Composer Autoloader is missing in [ {$ config ->get ('preload.autoload ' )}]. " );
419419
420- $ pipe ->handle ($ listing , fn ($ listing ) => $ listing );
420+ $ pipe ->handle ($ listing , fn ($ listing ) => $ listing );
421421 }
422422
423423 public function test_set_preload_config_file (): void
424424 {
425425 $ listing = $ this ->app ->make (SetPreloadConfig::class)
426- ->handle (new Listing (preloader: new Stringable ('@file ' )), fn ($ listing ) => $ listing );
426+ ->handle (new Listing (preloader: new Stringable ('@file ' )), fn ($ listing ) => $ listing );
427427
428428 static ::assertSame (
429429 $ this ->app ->make ('config ' )->get ('preload.path ' ).DIRECTORY_SEPARATOR .Preloader::NAME_LIST ,
@@ -436,7 +436,7 @@ public function test_set_preload_config_failure_ignore(): void
436436 $ this ->app ->make ('config ' )->set ('preload.ignore_not_found ' , true );
437437
438438 $ listing = $ this ->app ->make (SetPreloadConfig::class)
439- ->handle (new Listing (preloader: new Stringable ('@failure ' )), fn ($ listing ) => $ listing );
439+ ->handle (new Listing (preloader: new Stringable ('@failure ' )), fn ($ listing ) => $ listing );
440440
441441 static ::assertSame ('continue; ' , $ listing ->preloader ->toString ());
442442 }
@@ -446,7 +446,7 @@ public function test_set_preload_config_failure_throws(): void
446446 $ this ->app ->make ('config ' )->set ('preload.ignore_not_found ' , false );
447447
448448 $ listing = $ this ->app ->make (SetPreloadConfig::class)
449- ->handle (new Listing (preloader: new Stringable ('@failure ' )), fn ($ listing ) => $ listing );
449+ ->handle (new Listing (preloader: new Stringable ('@failure ' )), fn ($ listing ) => $ listing );
450450
451451 static ::assertSame (
452452 'throw new \Exception("{$file} does not exist or is unreadable."); ' ,
@@ -461,7 +461,7 @@ public function test_set_preload_config_mechanism_require(): void
461461 $ this ->app ->make ('config ' )->set ('preload.use_require ' , true );
462462
463463 $ listing = $ this ->app ->make (SetPreloadConfig::class)
464- ->handle (new Listing (preloader: new Stringable ('@mechanism ' )), fn ($ listing ) => $ listing );
464+ ->handle (new Listing (preloader: new Stringable ('@mechanism ' )), fn ($ listing ) => $ listing );
465465
466466 static ::assertSame ('require_once $file ' , $ listing ->preloader ->toString ());
467467 }
@@ -471,7 +471,7 @@ public function test_set_preload_config_mechanism_opcache_compile_file(): void
471471 $ this ->app ->make ('config ' )->set ('preload.use_require ' , false );
472472
473473 $ listing = $ this ->app ->make (SetPreloadConfig::class)
474- ->handle (new Listing (preloader: new Stringable ('@mechanism ' )), fn ($ listing ) => $ listing );
474+ ->handle (new Listing (preloader: new Stringable ('@mechanism ' )), fn ($ listing ) => $ listing );
475475
476476 static ::assertSame ('\opcache_compile_file($file) ' , $ listing ->preloader ->toString ());
477477 }
@@ -487,7 +487,7 @@ public function test_write_preload_file(): void
487487 ->with ($ path , $ preloader , true )
488488 ->andReturnTrue ();
489489
490- $ listing = $ this ->app ->make (WritePreloaderFile::class)->handle ($ listing , fn ($ listing ) => $ listing );
490+ $ listing = $ this ->app ->make (WritePreloaderFile::class)->handle ($ listing , fn ($ listing ) => $ listing );
491491
492492 static ::assertEmpty ($ listing ->preloader ->toString ());
493493 }
@@ -503,7 +503,7 @@ public function test_write_preload_file_throws_if_writing_files(): void
503503 $ this ->expectException (PreloadException::class);
504504 $ this ->expectExceptionMessage ("Couldn't write preload script to [ $ path]. " );
505505
506- $ pipe ->handle (new Listing (files: new Collection (['foo ' , 'bar ' ])), fn ($ listing ) => $ listing );
506+ $ pipe ->handle (new Listing (files: new Collection (['foo ' , 'bar ' ])), fn ($ listing ) => $ listing );
507507 }
508508
509509 public function test_fires_event (): void
@@ -512,7 +512,7 @@ public function test_fires_event(): void
512512
513513 $ listing = new Listing ();
514514
515- $ this ->app ->make (FireEvent::class)->handle ($ listing , fn ($ listing ) => $ listing );
515+ $ this ->app ->make (FireEvent::class)->handle ($ listing , fn ($ listing ) => $ listing );
516516
517517 $ event ->assertDispatched (PreloadGenerated::class, function (PreloadGenerated $ event ) use ($ listing ) {
518518 static ::assertSame ($ listing , $ event ->listing );
0 commit comments