@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | protected function getStubPath() |
| 34 | 34 | { |
| 35 | - return __DIR__ . '/../stubs/route_with_controller.stub'; |
|
| 35 | + return __DIR__.'/../stubs/route_with_controller.stub'; |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -43,9 +43,9 @@ discard block |
||
| 43 | 43 | protected function obtainReplacements() |
| 44 | 44 | { |
| 45 | 45 | return [ |
| 46 | - 'ROUTE_LINK' => $link = $this->getReplacements()[0], |
|
| 47 | - 'ROUTE_CONTROLLER' => $this->controller($this->getReplacements()[1]), |
|
| 48 | - 'ROUTE_METHOD' => $this->getReplacements()[2], |
|
| 46 | + 'ROUTE_LINK' => $link = $this->getReplacements()[ 0 ], |
|
| 47 | + 'ROUTE_CONTROLLER' => $this->controller($this->getReplacements()[ 1 ]), |
|
| 48 | + 'ROUTE_METHOD' => $this->getReplacements()[ 2 ], |
|
| 49 | 49 | 'ROUTE_NAME' => dot_path($link), |
| 50 | 50 | ]; |
| 51 | 51 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | protected function getStubPath() |
| 33 | 33 | { |
| 34 | - return __DIR__ . '/../stubs/route.stub'; |
|
| 34 | + return __DIR__.'/../stubs/route.stub'; |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -40,9 +40,9 @@ discard block |
||
| 40 | 40 | protected function obtainReplacements() |
| 41 | 41 | { |
| 42 | 42 | return [ |
| 43 | - 'ROUTE_LINK' => $link = $this->getReplacements()[0], |
|
| 44 | - 'ROUTE_VIEW' => $this->getReplacements()[1], |
|
| 45 | - 'ROUTE_METHOD' => $this->getReplacements()[2], |
|
| 43 | + 'ROUTE_LINK' => $link = $this->getReplacements()[ 0 ], |
|
| 44 | + 'ROUTE_VIEW' => $this->getReplacements()[ 1 ], |
|
| 45 | + 'ROUTE_METHOD' => $this->getReplacements()[ 2 ], |
|
| 46 | 46 | 'ROUTE_NAME' => dot_path($link), |
| 47 | 47 | ]; |
| 48 | 48 | } |