Passed
Push — master ( 2b4cfa...2d29d5 )
by Gabor
03:08
created
src/WebHemi/Router/Proxy/FilesystemProxy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      * @param Result $routeResult
49 49
      * @return void
50 50
      */
51
-    public function resolveMiddleware(string $application, Result &$routeResult) : void
51
+    public function resolveMiddleware(string $application, Result&$routeResult) : void
52 52
     {
53 53
         $applicationEntity = $this->getApplicationEntity($application);
54 54
 
Please login to merge, or discard this patch.
src/WebHemi/Router/ProxyInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,5 +44,5 @@
 block discarded – undo
44 44
      * @param Result $routeResult
45 45
      * @return void
46 46
      */
47
-    public function resolveMiddleware(string $application, Result &$routeResult) : void;
47
+    public function resolveMiddleware(string $application, Result&$routeResult) : void;
48 48
 }
Please login to merge, or discard this patch.
src/WebHemi/Renderer/Helper/GetTagsHelper.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 namespace WebHemi\Renderer\Helper;
15 15
 
16
-use WebHemi\Data\StorageInterface;
17
-use WebHemi\Data\Storage;
18 16
 use WebHemi\Data\Entity;
17
+use WebHemi\Data\Storage;
18
+use WebHemi\Data\StorageInterface;
19 19
 use WebHemi\Environment\ServiceInterface as EnvironmentInterface;
20 20
 use WebHemi\Renderer\HelperInterface;
21 21
 use WebHemi\Router\ProxyInterface;
Please login to merge, or discard this patch.
src/WebHemi/Ftp/ServiceAdapter/Base/ServiceAdapter.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function setSecureConnection(bool $state) : ServiceInterface
136 136
     {
137
-        $this->setOption('secure', (bool)$state);
137
+        $this->setOption('secure', (bool) $state);
138 138
 
139 139
         if (!empty($this->connectionId)) {
140 140
             ftp_close($this->connectionId);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function setPassiveMode(bool $state) : ServiceInterface
155 155
     {
156
-        ftp_pasv($this->connectionId, (bool)$state);
156
+        ftp_pasv($this->connectionId, (bool) $state);
157 157
         return $this;
158 158
     }
159 159
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         }
171 171
 
172 172
         if (strpos($path, '/') !== 0) {
173
-            $path = $this->getRemotePath() . $path;
173
+            $path = $this->getRemotePath().$path;
174 174
         }
175 175
 
176 176
         $chdirResult = @ftp_chdir($this->connectionId, $path);
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function getRemotePath() : string
191 191
     {
192
-        return ftp_pwd($this->connectionId) . '/';
192
+        return ftp_pwd($this->connectionId).'/';
193 193
     }
194 194
 
195 195
     /**
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     {
203 203
         // if it's not an absolute path, we take it relative to the current folder
204 204
         if (strpos($path, '/') !== 0) {
205
-            $path = __DIR__ . '/' . $path;
205
+            $path = __DIR__.'/'.$path;
206 206
         }
207 207
 
208 208
         if (!realpath($path) || !is_dir($path)) {
@@ -280,8 +280,8 @@  discard block
 block discarded – undo
280 280
                     'Y-m-d H:i:s',
281 281
                     strtotime(
282 282
                         strpos($fileData['time'], ':') !== false
283
-                            ? $fileData['month'] . ' ' . $fileData['day'] . ' ' . date('Y') . ' ' . $fileData['time']
284
-                            : $fileData['date'] . ' 12:00:00'
283
+                            ? $fileData['month'].' '.$fileData['day'].' '.date('Y').' '.$fileData['time']
284
+                            : $fileData['date'].' 12:00:00'
285 285
                     )
286 286
                 ),
287 287
                 'basename' => $fileInfo['basename'],
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
             $mode += $mapper[$i][$permissions[$i]] ?? 0;
335 335
         }
336 336
 
337
-        return (string)$mode;
337
+        return (string) $mode;
338 338
     }
339 339
 
340 340
     /**
@@ -356,14 +356,14 @@  discard block
 block discarded – undo
356 356
         $this->checkLocalFile($sourceFileName);
357 357
         $this->checkRemoteFile($destinationFileName);
358 358
 
359
-        if (!file_exists($this->localPath . '/' . $sourceFileName)) {
360
-            throw new RuntimeException(sprintf('File not found: %s', $this->localPath . '/' . $sourceFileName), 1007);
359
+        if (!file_exists($this->localPath.'/'.$sourceFileName)) {
360
+            throw new RuntimeException(sprintf('File not found: %s', $this->localPath.'/'.$sourceFileName), 1007);
361 361
         }
362 362
 
363 363
         $uploadResult = @ftp_put(
364 364
             $this->connectionId,
365 365
             $destinationFileName,
366
-            $this->localPath . '/' . $sourceFileName,
366
+            $this->localPath.'/'.$sourceFileName,
367 367
             $fileMode
368 368
         );
369 369
 
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 
396 396
         $downloadResult = @ftp_get(
397 397
             $this->connectionId,
398
-            $this->localPath . '/' . $localFileName,
398
+            $this->localPath.'/'.$localFileName,
399 399
             $remoteFileName,
400 400
             $fileMode
401 401
         );
Please login to merge, or discard this patch.