Passed
Push — dev ( 0d7ef0...d9e55c )
by 世昌
02:28
created
suda/src/framework/http/Cookie.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -304,15 +304,15 @@
 block discarded – undo
304 304
         if ($this->expire !== 0) {
305 305
             $time = $this->fullTime ? $this->expire : time() + $this->expire;
306 306
             $dateTime = DateTime::createFromFormat('U', $time, new DateTimeZone('GMT'));
307
-            $cookie .= '; Expires=' . str_replace('+0000', '', $dateTime->format('D, d M Y H:i:s T'));
307
+            $cookie .= '; Expires='.str_replace('+0000', '', $dateTime->format('D, d M Y H:i:s T'));
308 308
         }
309 309
 
310 310
         if ($this->domain !== null) {
311
-            $cookie .= '; Domain=' . $this->domain;
311
+            $cookie .= '; Domain='.$this->domain;
312 312
         }
313 313
 
314 314
         if ($this->path) {
315
-            $cookie .= '; Path=' . $this->path;
315
+            $cookie .= '; Path='.$this->path;
316 316
         }
317 317
 
318 318
         if ($this->secure) {
Please login to merge, or discard this patch.
suda/src/framework/debug/log/logger/FileLogger.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,10 +106,10 @@  discard block
 block discarded – undo
106 106
     private function packLogFile()
107 107
     {
108 108
         $logFile = $this->latest;
109
-        $path = preg_replace('/[\\\\]+/', '/', $this->getConfig('save-zip-path') .'/'.date('Y-m-d').'.zip');
109
+        $path = preg_replace('/[\\\\]+/', '/', $this->getConfig('save-zip-path').'/'.date('Y-m-d').'.zip');
110 110
         $zip = $this->getZipArchive($path);
111 111
         if ($zip !== null) {
112
-            if ($zip->addFile($logFile, date('Y-m-d'). '-'. $zip->numFiles .'.log')) {
112
+            if ($zip->addFile($logFile, date('Y-m-d').'-'.$zip->numFiles.'.log')) {
113 113
                 array_push($this->removeFiles, $logFile);
114 114
             }
115 115
             if (is_dir($this->getConfig('save-dump-path'))) {
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             if (is_file($logFile) && file_exists($logFile)) {
129 129
                 rename(
130 130
                     $logFile,
131
-                    $this->getConfig('save-path') . '/' . date('Y-m-d'). '-'. substr(md5_file($logFile), 0, 8).'.log'
131
+                    $this->getConfig('save-path').'/'.date('Y-m-d').'-'.substr(md5_file($logFile), 0, 8).'.log'
132 132
                 );
133 133
             }
134 134
         }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
             } elseif (null === $val) {
242 242
                 $val = 'null';
243 243
             }
244
-            $replace['{' . $key . '}'] = $val;
244
+            $replace['{'.$key.'}'] = $val;
245 245
         }
246 246
         return strtr($message, $replace);
247 247
     }
Please login to merge, or discard this patch.
suda/src/framework/response/ResponseWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     private function sendWarningIfy(string $name)
165 165
     {
166 166
         if ($this->isSend()) {
167
-            trigger_error($name .': response has been send', E_USER_WARNING);
167
+            trigger_error($name.': response has been send', E_USER_WARNING);
168 168
         }
169 169
     }
170 170
 }
Please login to merge, or discard this patch.