@@ -21,7 +21,6 @@ |
||
| 21 | 21 | * @param array $args as a variadic to catch all arguments. |
| 22 | 22 | * |
| 23 | 23 | * @throws Anax\Route\Exception\NotFoundException when route is not found. |
| 24 | - |
|
| 25 | 24 | * @return object as the response. |
| 26 | 25 | * |
| 27 | 26 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | * @param string $message with details. |
| 23 | 23 | * |
| 24 | 24 | * @throws Anax\Route\Exception\NotFoundException |
| 25 | - |
|
| 26 | 25 | * @return object as the response. |
| 27 | 26 | */ |
| 28 | 27 | public function catchAll(...$args) : object |
@@ -73,10 +73,10 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | private function loadAndParseRoute($route) |
| 75 | 75 | { |
| 76 | - // Get meta into view structure |
|
| 77 | - $meta = $this->getMetaForRoute($route); |
|
| 78 | - unset($meta["__toc__"]); |
|
| 79 | - unset($meta["views"]); |
|
| 76 | + // Get meta into view structure |
|
| 77 | + $meta = $this->getMetaForRoute($route); |
|
| 78 | + unset($meta["__toc__"]); |
|
| 79 | + unset($meta["views"]); |
|
| 80 | 80 | |
| 81 | 81 | // Get filtered content from route |
| 82 | 82 | list($routeIndex, , $filtered) = |
@@ -116,8 +116,8 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | private function getDataForAdditionalRoute($route) |
| 118 | 118 | { |
| 119 | - $filter = $this->config["textfilter"]; |
|
| 120 | - $textFilter = $this->di->get("textfilter"); |
|
| 119 | + $filter = $this->config["textfilter"]; |
|
| 120 | + $textFilter = $this->di->get("textfilter"); |
|
| 121 | 121 | |
| 122 | 122 | // Get filtered content from route |
| 123 | 123 | list($routeIndex, , $filtered) = |
@@ -24,16 +24,16 @@ |
||
| 24 | 24 | { |
| 25 | 25 | self::$di = new DIFactoryConfig(); |
| 26 | 26 | self::$di->loadServices([ |
| 27 | - "services" => [ |
|
| 28 | - "user" => [ |
|
| 29 | - "active" => false, |
|
| 30 | - "shared" => true, |
|
| 31 | - "callback" => function () { |
|
| 32 | - $obj = new MockHandlerDiService(); |
|
| 33 | - return $obj; |
|
| 34 | - } |
|
| 35 | - ], |
|
| 36 | - ], |
|
| 27 | + "services" => [ |
|
| 28 | + "user" => [ |
|
| 29 | + "active" => false, |
|
| 30 | + "shared" => true, |
|
| 31 | + "callback" => function () { |
|
| 32 | + $obj = new MockHandlerDiService(); |
|
| 33 | + return $obj; |
|
| 34 | + } |
|
| 35 | + ], |
|
| 36 | + ], |
|
| 37 | 37 | ]); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -341,8 +341,8 @@ |
||
| 341 | 341 | |
| 342 | 342 | |
| 343 | 343 | /** |
| 344 | - * Add a default route which will be applied for any path and any |
|
| 345 | - * request method. |
|
| 344 | + * Add a default route which will be applied for any path and any |
|
| 345 | + * request method. |
|
| 346 | 346 | * |
| 347 | 347 | * @param string|callable $handler a callback handler for the route. |
| 348 | 348 | * @param string $info description of the route |
@@ -10,9 +10,9 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | class TextFilterFilterMoreAndStopTest extends TestCase |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Test <!--more--> |
|
| 15 | - */ |
|
| 13 | + /** |
|
| 14 | + * Test <!--more--> |
|
| 15 | + */ |
|
| 16 | 16 | public function testMore() |
| 17 | 17 | { |
| 18 | 18 | $filter = new TextFilter(); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * Test <!--stop--> |
|
| 42 | + * Test <!--stop--> |
|
| 43 | 43 | */ |
| 44 | 44 | public function testStop() |
| 45 | 45 | { |
@@ -27,11 +27,11 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | |
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * Test. |
|
| 32 | - * |
|
| 33 | - * @return void |
|
| 34 | - */ |
|
| 30 | + /** |
|
| 31 | + * Test. |
|
| 32 | + * |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 35 | 35 | /* |
| 36 | 36 | public function testSyntaxHighlightGeshiMethod() |
| 37 | 37 | { |
@@ -191,11 +191,11 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | |
| 193 | 193 | |
| 194 | - /** |
|
| 195 | - * Test. |
|
| 196 | - * |
|
| 197 | - * @return void |
|
| 198 | - */ |
|
| 194 | + /** |
|
| 195 | + * Test. |
|
| 196 | + * |
|
| 197 | + * @return void |
|
| 198 | + */ |
|
| 199 | 199 | public function testTitleFromFirstH1() |
| 200 | 200 | { |
| 201 | 201 | $filter = new TextFilter(); |
@@ -276,13 +276,13 @@ discard block |
||
| 276 | 276 | |
| 277 | 277 | |
| 278 | 278 | |
| 279 | - /** |
|
| 280 | - * Test. |
|
| 281 | - * |
|
| 282 | - * @expectedException /Mos/TextFilter/Exception |
|
| 283 | - * |
|
| 284 | - * @return void |
|
| 285 | - */ |
|
| 279 | + /** |
|
| 280 | + * Test. |
|
| 281 | + * |
|
| 282 | + * @expectedException /Mos/TextFilter/Exception |
|
| 283 | + * |
|
| 284 | + * @return void |
|
| 285 | + */ |
|
| 286 | 286 | public function testJsonFrontMatterException() |
| 287 | 287 | { |
| 288 | 288 | $filter = new TextFilter(); |
@@ -297,11 +297,11 @@ discard block |
||
| 297 | 297 | |
| 298 | 298 | |
| 299 | 299 | |
| 300 | - /** |
|
| 301 | - * Test. |
|
| 302 | - * |
|
| 303 | - * @return void |
|
| 304 | - */ |
|
| 300 | + /** |
|
| 301 | + * Test. |
|
| 302 | + * |
|
| 303 | + * @return void |
|
| 304 | + */ |
|
| 305 | 305 | public function testJsonFrontMatter() |
| 306 | 306 | { |
| 307 | 307 | $filter = new TextFilter(); |
@@ -35,13 +35,13 @@ |
||
| 35 | 35 | |
| 36 | 36 | |
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * Test. |
|
| 40 | - * |
|
| 41 | - * @dataProvider providerTextWithLinks |
|
| 42 | - * |
|
| 43 | - * @return void |
|
| 44 | - */ |
|
| 38 | + /** |
|
| 39 | + * Test. |
|
| 40 | + * |
|
| 41 | + * @dataProvider providerTextWithLinks |
|
| 42 | + * |
|
| 43 | + * @return void |
|
| 44 | + */ |
|
| 45 | 45 | public function testAddBaseurlToRelativeLinks($baseurl, $text, $exp) |
| 46 | 46 | { |
| 47 | 47 | $filter = new TextFilter(); |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * Wrap content of a HTML element with start and end. |
|
| 72 | + * Wrap content of a HTML element with start and end. |
|
| 73 | 73 | * |
| 74 | 74 | * @param string $text with content |
| 75 | 75 | * @param string $tag HTML tag to search for |