| @@ -14,15 +14,15 @@ discard block | ||
| 14 | 14 | $this->routes = new Routes(); | 
| 15 | 15 | } | 
| 16 | 16 | |
| 17 | -    public function testGroup(){ | |
| 17 | +    public function testGroup() { | |
| 18 | 18 | |
| 19 | 19 |          $handler = $this->getMockBuilder('Ds\Router\Interfaces\RouteHandlerInterface')->getMock(); | 
| 20 | 20 | $routes = $this->routes; | 
| 21 | 21 | |
| 22 | -        $this->routes->group('/path',function() use ($routes, $handler){ | |
| 23 | - $routes->add(['GET','POST'], '/foo', $handler, ['global']); | |
| 22 | +        $this->routes->group('/path', function() use ($routes, $handler){ | |
| 23 | + $routes->add(['GET', 'POST'], '/foo', $handler, ['global']); | |
| 24 | 24 | |
| 25 | -                $routes->group('/sub-dir',function() use ($routes, $handler){ | |
| 25 | +                $routes->group('/sub-dir', function() use ($routes, $handler){ | |
| 26 | 26 | $routes->add(['GET'], '/sub-page', $handler, ['sub-dir']); | 
| 27 | 27 | }); | 
| 28 | 28 | }); | 
| @@ -53,10 +53,10 @@ discard block | ||
| 53 | 53 | $this->assertEquals($expected, $actual); | 
| 54 | 54 | } | 
| 55 | 55 | |
| 56 | -    public function testAdd(){ | |
| 56 | +    public function testAdd() { | |
| 57 | 57 | |
| 58 | 58 |          $handler = $this->getMockBuilder('Ds\Router\Interfaces\RouteHandlerInterface')->getMock(); | 
| 59 | - $this->routes->add(['GET','POST'], '/foo', $handler, ['global']); | |
| 59 | + $this->routes->add(['GET', 'POST'], '/foo', $handler, ['global']); | |
| 60 | 60 | |
| 61 | 61 | $actual = $this->routes->getRoutes(); | 
| 62 | 62 | |
| @@ -78,11 +78,11 @@ discard block | ||
| 78 | 78 | $this->assertEquals($expected, $actual); | 
| 79 | 79 | } | 
| 80 | 80 | |
| 81 | -    public function testGetRoutes(){ | |
| 81 | +    public function testGetRoutes() { | |
| 82 | 82 |          $handler = $this->getMockBuilder('Ds\Router\Interfaces\RouteHandlerInterface')->getMock(); | 
| 83 | 83 | |
| 84 | 84 |          $this->routes->add('GET', '/foo', $handler, ['global']); | 
| 85 | -        $this->routes->add('POST', '/baz', $handler, ['some','other','names']); | |
| 85 | +        $this->routes->add('POST', '/baz', $handler, ['some', 'other', 'names']); | |
| 86 | 86 | |
| 87 | 87 | $actual = $this->routes->getRoutes(); | 
| 88 | 88 | |
| @@ -97,14 +97,14 @@ discard block | ||
| 97 | 97 | 'method' => 'POST', | 
| 98 | 98 | 'pattern' => '/baz', | 
| 99 | 99 | 'handler' => $handler, | 
| 100 | - 'name' => ['some','other','names'] | |
| 100 | + 'name' => ['some', 'other', 'names'] | |
| 101 | 101 | ] | 
| 102 | 102 | ]; | 
| 103 | 103 | |
| 104 | 104 | $this->assertEquals($expected, $actual); | 
| 105 | 105 | } | 
| 106 | 106 | |
| 107 | -    public function testIsUnique(){ | |
| 107 | +    public function testIsUnique() { | |
| 108 | 108 |          $handler = $this->getMockBuilder('Ds\Router\Interfaces\RouteHandlerInterface')->getMock(); | 
| 109 | 109 |          $this->routes->add('GET', '/foo', $handler, ['global']); | 
| 110 | 110 |          $this->setExpectedException('\Exception'); |