@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | protected static function mockRender(): Render |
| 55 | 55 | { |
| 56 | - return tap(new Render(), function () { |
|
| 56 | + return tap(new Render(), function() { |
|
| 57 | 57 | Render::swap(new RenderData()); |
| 58 | 58 | }); |
| 59 | 59 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | protected static function mockConfig(array $items = []): void |
| 67 | 67 | { |
| 68 | - Config::swap(tap(new Repository($items), function ($config) { |
|
| 68 | + Config::swap(tap(new Repository($items), function($config) { |
|
| 69 | 69 | app()->instance('config', $config); |
| 70 | 70 | })); |
| 71 | 71 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | /** @return \Illuminate\Filesystem\Filesystem&\Mockery\MockInterface */ |
| 74 | 74 | protected function mockFilesystem(array $methods = []): Filesystem |
| 75 | 75 | { |
| 76 | - return tap(Mockery::mock(Filesystem::class, $methods)->makePartial(), function ($filesystem) { |
|
| 76 | + return tap(Mockery::mock(Filesystem::class, $methods)->makePartial(), function($filesystem) { |
|
| 77 | 77 | app()->instance(Filesystem::class, $filesystem); |
| 78 | 78 | }); |
| 79 | 79 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** @return \Illuminate\Filesystem\Filesystem&\Mockery\MockInterface */ |
| 82 | 82 | protected function mockFilesystemStrict(array $methods = []): Filesystem |
| 83 | 83 | { |
| 84 | - return tap(Mockery::mock(Filesystem::class, $methods), function ($filesystem) { |
|
| 84 | + return tap(Mockery::mock(Filesystem::class, $methods), function($filesystem) { |
|
| 85 | 85 | app()->instance(Filesystem::class, $filesystem); |
| 86 | 86 | }); |
| 87 | 87 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | // Scan the source directory, and directories therein, for files that match the model's file extension. |
| 62 | 62 | foreach (Filesystem::smartGlob($pageClass::sourcePath('{*,**/*}'), GLOB_BRACE) as $path) { |
| 63 | - if (! str_starts_with(basename((string) $path), '_')) { |
|
| 63 | + if (!str_starts_with(basename((string) $path), '_')) { |
|
| 64 | 64 | $this->addFile(SourceFile::make($path, $pageClass)); |
| 65 | 65 | } |
| 66 | 66 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | /** @param class-string<\Hyde\Pages\Concerns\HydePage>|null $pageClass */ |
| 75 | 75 | public function getFiles(?string $pageClass = null): FileCollection |
| 76 | 76 | { |
| 77 | - return $pageClass ? $this->filter(function (SourceFile $file) use ($pageClass): bool { |
|
| 77 | + return $pageClass ? $this->filter(function(SourceFile $file) use ($pageClass) : bool { |
|
| 78 | 78 | return $file->pageClass === $pageClass; |
| 79 | 79 | }) : $this; |
| 80 | 80 | } |