Passed
Branch master (8b9a97)
by Riikka
02:46
created
Category
src/RouteDefinition.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
         if ($count === 0) {
121 121
             $this->segments[] = $segment;
122
-            $this->format .= $this->formatEncode($segment) . '/';
122
+            $this->format .= $this->formatEncode($segment).'/';
123 123
             return;
124 124
         }
125 125
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
         $constant = substr($segment, $start, $length);
188 188
         $this->format .= $this->formatEncode($constant);
189
-        return $pattern . preg_quote($constant, '/');
189
+        return $pattern.preg_quote($constant, '/');
190 190
     }
191 191
 
192 192
     /**
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      */
207 207
     private function isValidPattern(string $pattern): bool
208 208
     {
209
-        set_error_handler(function (int $severity, string $message, string $file, int $line): bool {
209
+        set_error_handler(function(int $severity, string $message, string $file, int $line): bool {
210 210
             throw new \ErrorException($message, 0, $severity, $file, $line);
211 211
         }, E_ALL);
212 212
 
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 
383 383
         if ($parameters) {
384 384
             throw new \InvalidArgumentException(
385
-                'Unexpected route parameters: ' . implode(', ', array_keys($parameters))
385
+                'Unexpected route parameters: '.implode(', ', array_keys($parameters))
386 386
             );
387 387
         }
388 388
 
Please login to merge, or discard this patch.