| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | - /* | |
| 3 | + /* | |
| 4 | 4 | |-------------------------------------------------------------------------- | 
| 5 | 5 | | Torchlight | 
| 6 | 6 | |-------------------------------------------------------------------------- | 
| @@ -28,7 +28,7 @@ | ||
| 28 | 28 | |
| 29 | 29 | protected function bootApplication(): void | 
| 30 | 30 |      { | 
| 31 | -        if (! isset($this->laravel)) { | |
| 31 | +        if (!isset($this->laravel)) { | |
| 32 | 32 | $this->createApplication(); | 
| 33 | 33 | } | 
| 34 | 34 | |
| @@ -21,7 +21,7 @@ discard block | ||
| 21 | 21 | protected function setUp(): void | 
| 22 | 22 |      { | 
| 23 | 23 | // \LaravelZero\Framework\Testing\TestCase instead \Illuminate\Foundation\Testing\TestCase | 
| 24 | -        if (! $this->app) { | |
| 24 | +        if (!$this->app) { | |
| 25 | 25 | $this->refreshApplication(); | 
| 26 | 26 | } | 
| 27 | 27 | |
| @@ -50,14 +50,14 @@ discard block | ||
| 50 | 50 | |
| 51 | 51 |          Browser::$storeSourceAt = base_path('tests/Browser/source'); | 
| 52 | 52 | |
| 53 | -        Browser::$userResolver = function () { | |
| 53 | +        Browser::$userResolver = function() { | |
| 54 | 54 | return $this->user(); | 
| 55 | 55 | }; | 
| 56 | 56 | |
| 57 | -        Browser::macro('storeSourceAsHtml', function ($name) { | |
| 57 | +        Browser::macro('storeSourceAsHtml', function($name) { | |
| 58 | 58 | $source = $this->driver->getPageSource(); | 
| 59 | 59 | |
| 60 | -            if (! empty($source)) { | |
| 60 | +            if (!empty($source)) { | |
| 61 | 61 | file_put_contents( | 
| 62 | 62 |                      sprintf('%s/%s.html', rtrim(static::$storeSourceAt, '/'), $name), $source | 
| 63 | 63 | ); | 
| @@ -106,7 +106,7 @@ discard block | ||
| 106 | 106 | */ | 
| 107 | 107 | public static function prepare() | 
| 108 | 108 |      { | 
| 109 | -        if (! static::runningInSail()) { | |
| 109 | +        if (!static::runningInSail()) { | |
| 110 | 110 | static::startChromeDriver(); | 
| 111 | 111 | } | 
| 112 | 112 | } | 
| @@ -120,7 +120,7 @@ discard block | ||
| 120 | 120 |      { | 
| 121 | 121 | $options = (new ChromeOptions)->addArguments(collect([ | 
| 122 | 122 | $this->shouldStartMaximized() ? '--start-maximized' : '--window-size=1920,1080', | 
| 123 | -        ])->unless($this->hasHeadlessDisabled(), function ($items) { | |
| 123 | +        ])->unless($this->hasHeadlessDisabled(), function($items) { | |
| 124 | 124 | return $items->merge([ | 
| 125 | 125 | '--disable-gpu', | 
| 126 | 126 | '--headless', | 
| @@ -177,7 +177,7 @@ | ||
| 177 | 177 | */ | 
| 178 | 178 | public function hasSiteUrl(): bool | 
| 179 | 179 |      { | 
| 180 | -        return ! blank(config('site.url')); | |
| 180 | +        return !blank(config('site.url')); | |
| 181 | 181 | } | 
| 182 | 182 | |
| 183 | 183 | /** | 
| @@ -25,7 +25,7 @@ | ||
| 25 | 25 |      { | 
| 26 | 26 | parent::setUp(); | 
| 27 | 27 | |
| 28 | -        if (! static::$booted) { | |
| 28 | +        if (!static::$booted) { | |
| 29 | 29 | $this->resetApplication(); | 
| 30 | 30 | |
| 31 | 31 | static::$booted = true; | 
| @@ -24,7 +24,7 @@ discard block | ||
| 24 | 24 |      { | 
| 25 | 25 | $path = static::path($filename); | 
| 26 | 26 | |
| 27 | -        if (! file_exists($path)) { | |
| 27 | +        if (!file_exists($path)) { | |
| 28 | 28 | return $default; | 
| 29 | 29 | } | 
| 30 | 30 | |
| @@ -36,7 +36,7 @@ discard block | ||
| 36 | 36 |      { | 
| 37 | 37 | $path = static::path(basename($filename, '.md').'.md'); | 
| 38 | 38 | |
| 39 | -        if (! file_exists($path)) { | |
| 39 | +        if (!file_exists($path)) { | |
| 40 | 40 | return $default === null ? null : Markdown::render($default); | 
| 41 | 41 | } | 
| 42 | 42 | |
| @@ -48,7 +48,7 @@ discard block | ||
| 48 | 48 |      { | 
| 49 | 49 | $path = static::path(basename($filename, '.blade.php').'.blade.php'); | 
| 50 | 50 | |
| 51 | -        if (! file_exists($path)) { | |
| 51 | +        if (!file_exists($path)) { | |
| 52 | 52 | return $default === null ? null : Blade::render($default); | 
| 53 | 53 | } | 
| 54 | 54 | |
| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 | |
| 58 | 58 | protected static function needsDirectory(string $directory): void | 
| 59 | 59 |      { | 
| 60 | -        if (! file_exists($directory)) { | |
| 60 | +        if (!file_exists($directory)) { | |
| 61 | 61 | mkdir($directory, recursive: true); | 
| 62 | 62 | } | 
| 63 | 63 | } | 
| @@ -149,7 +149,7 @@ | ||
| 149 | 149 | |
| 150 | 150 | protected function needsToBeBooted(): void | 
| 151 | 151 |      { | 
| 152 | -        if (! $this->booted) { | |
| 152 | +        if (!$this->booted) { | |
| 153 | 153 | $this->boot(); | 
| 154 | 154 | } | 
| 155 | 155 | } | 
| @@ -17,7 +17,7 @@ | ||
| 17 | 17 | /* | 
| 18 | 18 | * Enable auto-discovery. | 
| 19 | 19 | */ | 
| 20 | -        $this->app->singleton(PackageManifest::class, function () { | |
| 20 | +        $this->app->singleton(PackageManifest::class, function() { | |
| 21 | 21 | return new PackageManifest( | 
| 22 | 22 | new Filesystem, | 
| 23 | 23 | $this->basePath(), | 
| @@ -25,7 +25,7 @@ discard block | ||
| 25 | 25 | |
| 26 | 26 | public function getPages(?string $pageClass = null): self | 
| 27 | 27 |      { | 
| 28 | -        return ! $pageClass ? $this : $this->filter(function (HydePage $page) use ($pageClass): bool { | |
| 28 | +        return !$pageClass ? $this : $this->filter(function(HydePage $page) use ($pageClass) : bool { | |
| 29 | 29 | return $page instanceof $pageClass; | 
| 30 | 30 | }); | 
| 31 | 31 | } | 
| @@ -53,7 +53,7 @@ discard block | ||
| 53 | 53 | |
| 54 | 54 | protected function discoverPagesFor(string $pageClass): void | 
| 55 | 55 |      { | 
| 56 | -        $this->parsePagesFor($pageClass)->each(function ($page) { | |
| 56 | +        $this->parsePagesFor($pageClass)->each(function($page) { | |
| 57 | 57 | $this->discover($page); | 
| 58 | 58 | }); | 
| 59 | 59 | } |