@@ -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', |
@@ -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; |
@@ -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 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | public function failed(): bool |
75 | 75 | { |
76 | - return ! $this->passed; |
|
76 | + return !$this->passed; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | public function statusCode(): int |
@@ -141,7 +141,7 @@ |
||
141 | 141 | $string = trim($string); |
142 | 142 | |
143 | 143 | // Check if string is an array |
144 | - if (! static::isValueArrayString($string)) { |
|
144 | + if (!static::isValueArrayString($string)) { |
|
145 | 145 | throw new RuntimeException('Failed parsing BladeMatter array. Input string must follow array syntax.'); |
146 | 146 | } |
147 | 147 |
@@ -65,14 +65,14 @@ |
||
65 | 65 | |
66 | 66 | protected function registerPreProcessor(string $class, bool $when = true): void |
67 | 67 | { |
68 | - if (! in_array($class, $this->preprocessors) && $when) { |
|
68 | + if (!in_array($class, $this->preprocessors) && $when) { |
|
69 | 69 | $this->preprocessors[] = $class; |
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | 73 | protected function registerPostProcessor(string $class, bool $when = true): void |
74 | 74 | { |
75 | - if (! in_array($class, $this->postprocessors) && $when) { |
|
75 | + if (!in_array($class, $this->postprocessors) && $when) { |
|
76 | 76 | $this->postprocessors[] = $class; |
77 | 77 | } |
78 | 78 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | protected function escape(string $string): string |
46 | 46 | { |
47 | - return htmlspecialchars($string, ENT_XML1 | ENT_COMPAT, 'UTF-8'); |
|
47 | + return htmlspecialchars($string, ENT_XML1|ENT_COMPAT, 'UTF-8'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | protected function addChild(SimpleXMLElement $element, string $name, string $value): SimpleXMLElement |
@@ -42,6 +42,6 @@ |
||
42 | 42 | */ |
43 | 43 | public function has(string $key): bool |
44 | 44 | { |
45 | - return ! blank($this->data($key)); |
|
45 | + return !blank($this->data($key)); |
|
46 | 46 | } |
47 | 47 | } |