OSDN Git Service

fix subsequent align
authorJefersson Nathan <admin@phpse.net>
Mon, 28 Mar 2016 11:17:59 +0000 (08:17 -0300)
committerJefersson Nathan <admin@phpse.net>
Thu, 21 Apr 2016 11:17:59 +0000 (08:17 -0300)
src/Route.php

index 2153cee..2079d5b 100755 (executable)
@@ -73,11 +73,11 @@ class Route
      */
     public function __construct($resource, array $config)
     {
-        $this->url = $resource;
-        $this->config = $config;
-        $this->methods = isset($config['methods']) ? (array)$config['methods'] : array();
-        $this->target = isset($config['target']) ? $config['target'] : null;
-        $this->name = isset($config['name']) ? $config['name'] : null;
+        $this->url     = $resource;
+        $this->config  = $config;
+        $this->methods = isset($config['methods']) ? (array) $config['methods'] : [];
+        $this->target  = isset($config['target']) ? $config['target'] : null;
+        $this->name    = isset($config['name']) ? $config['name'] : null;
     }
 
     public function getUrl()