Completed
Push — master ( b645fc...1a7521 )
by Charis
03:32
created
src/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
             return $this->dispatcher;
355 355
         }
356 356
 
357
-        $routeDefinitionCallback = function (RouteCollector $r) {
357
+        $routeDefinitionCallback = function(RouteCollector $r) {
358 358
             foreach ($this->getRoutes() as $route) {
359 359
                 $r->addRoute($route->getMethod(), $route->getPattern(), $route->getIdentifier());
360 360
             }
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
             $uri->getPath()
383 383
         );
384 384
 
385
-        $functionHandler = function ($arg) use ($uri, $method) {
385
+        $functionHandler = function($arg) use ($uri, $method) {
386 386
             if (method_exists($this, $arg['methodName']) || $this->hasMethod($arg['methodName'])) {
387 387
                 return $this->{$arg['methodName']}(...$arg['args']);
388 388
             } else {
Please login to merge, or discard this patch.
src/Factory/Uri.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      *
14 14
      * @access public
15 15
      * @static
16
-     * @return Uri
16
+     * @return UriItem
17 17
      */
18 18
     public static function createFromServer($serv)
19 19
     {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * @access public
51 51
      * @static
52 52
      * @param string $uri
53
-     * @return Uri
53
+     * @return UriItem
54 54
      */
55 55
     public static function createFromString(string $uri)
56 56
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Resilient\Factory;
4 4
 
5
-use InvalidArgumentException;
6 5
 use Resilient\Http\Uri as UriItem;
7 6
 use \Psr\Http\Message\UriInterface;
8 7
 
Please login to merge, or discard this patch.
src/Http/Uri.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
     {
335 335
         return preg_replace_callback(
336 336
             '/(?:[^a-zA-Z0-9_\-\.~:@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/',
337
-            function ($match) {
337
+            function($match) {
338 338
                 return rawurlencode($match[0]);
339 339
             },
340 340
             $path
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     {
353 353
         return preg_replace_callback(
354 354
             '/(?:[^a-zA-Z0-9_\-\.~!\$&\'\(\)\*\+,;=%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/',
355
-            function ($match) {
355
+            function($match) {
356 356
                 return rawurlencode($match[0]);
357 357
             },
358 358
             $query
Please login to merge, or discard this patch.