Passed
Push — master ( ea8dcd...ef7cce )
by Caen
04:08 queued 15s
created
packages/framework/src/Foundation/Kernel/Hyperlinks.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     #[Deprecated(reason: 'Use `asset` method instead.', replacement: '%class%->asset(%parameter0%)')]
100 100
     public function mediaLink(string $destination, bool $validate = false): string
101 101
     {
102
-        if ($validate && ! file_exists($sourcePath = "{$this->kernel->getMediaDirectory()}/$destination")) {
102
+        if ($validate && !file_exists($sourcePath = "{$this->kernel->getMediaDirectory()}/$destination")) {
103 103
             throw new FileNotFoundException($sourcePath);
104 104
         }
105 105
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $value = Config::getNullableString('hyde.url');
139 139
 
140
-        return ! blank($value) && $value !== 'http://localhost';
140
+        return !blank($value) && $value !== 'http://localhost';
141 141
     }
142 142
 
143 143
     /**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 
162 162
         // Since v1.7.0, we return the relative path even if the base URL is not set,
163 163
         // as this is more likely to be the desired behavior the user's expecting.
164
-        if (! blank($path)) {
164
+        if (!blank($path)) {
165 165
             return $path;
166 166
         }
167 167
 
Please login to merge, or discard this patch.