@@ -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 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | |
57 | 57 | protected function formatOutputPath(string $path): string |
58 | 58 | { |
59 | - if (! file_exists(Hyde::sitePath($path))) { |
|
59 | + if (!file_exists(Hyde::sitePath($path))) { |
|
60 | 60 | return "_site/$path"; |
61 | 61 | } |
62 | 62 |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public function validate(): void |
99 | 99 | { |
100 | - if (! ( |
|
100 | + if (!( |
|
101 | 101 | str_starts_with($this->path, Hyde::pathToRelative(Hyde::getBladePagePath())) || |
102 | 102 | str_starts_with($this->path, Hyde::pathToRelative(Hyde::getMarkdownPagePath())) || |
103 | 103 | str_starts_with($this->path, Hyde::pathToRelative(Hyde::getMarkdownPostPath())) || |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | throw new Exception("Path [$this->path] is not in a valid source directory.", 400); |
107 | 107 | } |
108 | 108 | |
109 | - if (! file_exists(Hyde::path($this->path))) { |
|
109 | + if (!file_exists(Hyde::path($this->path))) { |
|
110 | 110 | throw new Exception("File [$this->path] not found.", 404); |
111 | 111 | } |
112 | 112 | } |