Completed
Push — master ( ee0121...2fa707 )
by Sinnarasa
06:26
created
src/Routing/RouteCollection.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-     * @param null $key
57
+     * @param string $key
58 58
      * @return array
59 59
      */
60 60
     public function getRoutes($key = null)
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
     /**
98 98
      * @param array $args
99
-     * @param $i
99
+     * @param integer $i
100 100
      */
101 101
     private function setRoutes($args = [], $i)
102 102
     {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     }
153 153
 
154 154
     /**
155
-     * @param $url
155
+     * @param string $url
156 156
      * @return bool
157 157
      */
158 158
     public function getDomain($url)
Please login to merge, or discard this patch.
Block1/routes.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,17 +2,17 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
 	
5
-	'/'	=> 'index',
5
+    '/'	=> 'index',
6 6
 
7 7
     '/user1-:id' => [
8 8
         'use' => 'user.html',
9 9
         'arguments' => ['id' => '[0-9]+']
10 10
     ],
11 11
 
12
-	'/home1'	=> [
13
-		'use' => 'JetFire\Routing\Block1\Namespace1Controller@index',
12
+    '/home1'	=> [
13
+        'use' => 'JetFire\Routing\Block1\Namespace1Controller@index',
14 14
         'template' => 'index.php'
15
-	],
15
+    ],
16 16
 
17 17
     '/home-:id'	=> [
18 18
         'use' => 'JetFire\Routing\Block1\Namespace1Controller@index2',
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
         'name' => 'contact'
25 25
     ],
26 26
 
27
-	'/search1-:id-:name' => [
28
-		'use' => function($id,$name){
27
+    '/search1-:id-:name' => [
28
+        'use' => function($id,$name){
29 29
             return 'Search'.$id.$name;
30 30
         },
31 31
         'arguments' => ['id' => '[0-9]+','name' => '[a-z]*'],
32
-	],
32
+    ],
33 33
 ];
34 34
\ No newline at end of file
Please login to merge, or discard this patch.