Completed
Push — master ( de946d...8745c6 )
by Stas
08:43
created
lib/Stream/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function hashCode()
23 23
     {
24
-        return md5($this->_filename . filemtime($this->_filename));
24
+        return md5($this->_filename.filemtime($this->_filename));
25 25
     }
26 26
 
27 27
     /**
Please login to merge, or discard this patch.
lib/Stream/String.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
             $length = strlen($string);
112 112
             $pre = substr($this->data, 0, $this->_pointer);
113 113
             $post = substr($this->data, $this->_pointer + $length);
114
-            $this->data = $pre . $string . $post;
114
+            $this->data = $pre.$string.$post;
115 115
             $this->_pointer += $length;
116 116
             return $length;
117 117
         }
Please login to merge, or discard this patch.
lib/SessionStorage/ArrayMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         if (isset($this->storage[$key])) {
112 112
             return $this->storage[$key];
113 113
         } else {
114
-            throw new \OutOfBoundsException('Can\'t get "' . var_export($key, true) . '" session key');
114
+            throw new \OutOfBoundsException('Can\'t get "'.var_export($key, true).'" session key');
115 115
         }
116 116
     }
117 117
 
Please login to merge, or discard this patch.
lib/SessionStorage/Native.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         if (isset($_SESSION[$key])) {
79 79
             return $_SESSION[$key];
80 80
         } else {
81
-            throw new \OutOfBoundsException('Can\'t get "' . var_export($key, true) . '" session key');
81
+            throw new \OutOfBoundsException('Can\'t get "'.var_export($key, true).'" session key');
82 82
         }
83 83
     }
84 84
 
Please login to merge, or discard this patch.
lib/Url.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@
 block discarded – undo
45 45
 
46 46
         if (is_callable($test)) {
47 47
             $i = 1; $base = $value;
48
-            while(call_user_func($test, $value)) {
49
-                $i+=rand(1, 99);
48
+            while (call_user_func($test, $value)) {
49
+                $i += rand(1, 99);
50 50
                 $value = $base.'-'.$i;
51 51
             }
52 52
         }
Please login to merge, or discard this patch.
lib/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -628,10 +628,10 @@
 block discarded – undo
628 628
     public function persistParam($name, $default = null, $ns = null)
629 629
     {
630 630
         if ($ns === null) {
631
-            $ns = md5((string)$this->getFullUri() . 'v2');
631
+            $ns = md5((string)$this->getFullUri().'v2');
632 632
         }
633 633
 
634
-        $persistent_name = $ns . ':' . $name;
634
+        $persistent_name = $ns.':'.$name;
635 635
 
636 636
         $session = $this->getSession();
637 637
 
Please login to merge, or discard this patch.
lib/Router.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     public function addRoute($pattern, Route $route, $name = null, array $attributes = [])
94 94
     {
95 95
         if ($name && isset($this->_names[$name])) {
96
-            throw new \OutOfBoundsException('Route with "' . $name . '" already exists');
96
+            throw new \OutOfBoundsException('Route with "'.$name.'" already exists');
97 97
         } elseif ($route instanceof Router) {
98 98
             $this->_routes->addAll($route->_routes);
99 99
             $route->_routes = $this->_routes;
@@ -247,12 +247,12 @@  discard block
 block discarded – undo
247 247
         $pattern = trim($pattern, self::URI_DELIMITER);
248 248
 
249 249
         while ($pattern) {
250
-            if (preg_match('/^' . self::URL_VARIABLE_PATTERN . '/', $pattern, $matches)) {
251
-                list($part, , $reg, $key) = $matches;
250
+            if (preg_match('/^'.self::URL_VARIABLE_PATTERN.'/', $pattern, $matches)) {
251
+                list($part,, $reg, $key) = $matches;
252 252
 
253 253
                 $uri_pattern = $reg ? $reg : self::DEFAULT_REGEX;
254 254
 
255
-                if (preg_match('/^' . $uri_pattern . '/i', $url, $url_matches)) {
255
+                if (preg_match('/^'.$uri_pattern.'/i', $url, $url_matches)) {
256 256
                     $params[$key] = ($variable_value = $url_matches[0]);
257 257
                     $url = (string)substr($url, strlen($variable_value));
258 258
                 } elseif (!$url && isset($params[$key])) {
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      */
298 298
     public function getChild($uri, &$params = array(), &$matched = null)
299 299
     {
300
-        $key = md5((string)$uri . var_export($params, true));
300
+        $key = md5((string)$uri.var_export($params, true));
301 301
 
302 302
         if (isset($this->_initialize()->childs[$key])) {
303 303
             list($return, $found_params, $matched) = $this->childs[$key];
@@ -353,8 +353,8 @@  discard block
 block discarded – undo
353 353
         if (!isset($Parsed[$rule])) {
354 354
             $Parsed[$index = $rule] = [];
355 355
             while ($index) {
356
-                if (preg_match('/^' . self::URL_VARIABLE_PATTERN . '/', $index, $matches)) {
357
-                    list($part, , , $key) = $matches;
356
+                if (preg_match('/^'.self::URL_VARIABLE_PATTERN.'/', $index, $matches)) {
357
+                    list($part,,, $key) = $matches;
358 358
 
359 359
                     $Parsed[$rule][] = [1, $key];
360 360
                     $index = substr($index, strlen($part));
Please login to merge, or discard this patch.
lib/Filter/Chain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
                 $i++;
163 163
             } while ($callingMethod == "log" && $i < $stackSize);
164 164
 
165
-            $this->logger->info('[' . $callingMethod . '] ' . $msg);
165
+            $this->logger->info('['.$callingMethod.'] '.$msg);
166 166
         }
167 167
     }
168 168
 }
Please login to merge, or discard this patch.
lib/Response.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -354,18 +354,18 @@
 block discarded – undo
354 354
         $has_content_length = false;
355 355
 
356 356
         $response = sprintf("HTTP/%01.1F %s %s", $this->getProtocolVersion(), $this->getStatusCode(),
357
-                $this->getReasonPhrase()) . "\r\n";
357
+                $this->getReasonPhrase())."\r\n";
358 358
         foreach ($this->_headers as $name => $value) {
359
-            $response .= sprintf("%s: %s", $name, $value) . "\r\n";
359
+            $response .= sprintf("%s: %s", $name, $value)."\r\n";
360 360
 
361 361
             if (!$has_content_length && (strtolower($name) === strtolower(self::HEADER_CONTENT_LENGTH))) {
362 362
                 $has_content_length = true;
363 363
             }
364 364
         }
365 365
         if (!$has_content_length && $this->_stream) {
366
-            $response .= sprintf("%s: %s", self::HEADER_CONTENT_LENGTH, $this->_stream->getSize()) . "\r\n";
366
+            $response .= sprintf("%s: %s", self::HEADER_CONTENT_LENGTH, $this->_stream->getSize())."\r\n";
367 367
         }
368
-        $response .= "\r\n" . ($this->_stream ? $this->_stream->getContents() : null);
368
+        $response .= "\r\n".($this->_stream ? $this->_stream->getContents() : null);
369 369
 
370 370
         return $response;
371 371
 
Please login to merge, or discard this patch.