@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | 138 | * @param string $sPath |
| 139 | - * @return bool |
|
| 139 | + * @return boolean|null |
|
| 140 | 140 | * @throws ExceptionSitemap |
| 141 | 141 | */ |
| 142 | 142 | public function setTemplatePath($sPath) { |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | /** |
| 284 | - * @param Object $mappedObject |
|
| 284 | + * @param BaseObject $mappedObject |
|
| 285 | 285 | * @return boolean |
| 286 | 286 | */ |
| 287 | 287 | public function maps(BaseObject $mappedObject) |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | |
| 10 | 10 | use vsc\application\controllers\ExceptionController; |
| 11 | 11 | use vsc\infrastructure\urls\Url; |
| 12 | -use vsc\infrastructure\urls\UrlParserA; |
|
| 13 | 12 | use vsc\infrastructure\Base; |
| 14 | 13 | use vsc\infrastructure\BaseObject; |
| 15 | 14 | use vsc\presentation\requests\HttpAuthenticationA; |
@@ -284,8 +284,7 @@ |
||
| 284 | 284 | * @param Object $mappedObject |
| 285 | 285 | * @return boolean |
| 286 | 286 | */ |
| 287 | - public function maps(BaseObject $mappedObject) |
|
| 288 | - { |
|
| 287 | + public function maps(BaseObject $mappedObject) { |
|
| 289 | 288 | return (bool)stristr(get_class($mappedObject), substr(basename($this->getPath()), 0, -4)); |
| 290 | 289 | } |
| 291 | 290 | |
@@ -7,8 +7,7 @@ |
||
| 7 | 7 | |
| 8 | 8 | use vsc\infrastructure\BaseObject; |
| 9 | 9 | |
| 10 | -class Url extends BaseObject |
|
| 11 | -{ |
|
| 10 | +class Url extends BaseObject { |
|
| 12 | 11 | static protected $queryEncodingType = PHP_QUERY_RFC1738; |
| 13 | 12 | static protected $validSchemes = ['http', 'https', 'file']; |
| 14 | 13 | |