@@ -4,7 +4,7 @@ |
||
4 | 4 | $e = $model->getException(); |
5 | 5 | |
6 | 6 | $error = array( |
7 | - 'message' => $e->getCode().' '.$e->getMessage(), |
|
7 | + 'message' => $e->getCode() . ' ' . $e->getMessage(), |
|
8 | 8 | ); |
9 | 9 | |
10 | 10 | echo $this->outputModel($error); |
@@ -15,8 +15,9 @@ |
||
15 | 15 | <ul> |
16 | 16 | <?php |
17 | 17 | foreach (get_included_files() as $sFileName) { |
18 | - if (stristr($sFileName, 'map.php') && stristr($sFileName, $this->getMap()->getModuleName())) |
|
19 | - echo '<li>' . $sFileName . '</li>'; |
|
18 | + if (stristr($sFileName, 'map.php') && stristr($sFileName, $this->getMap()->getModuleName())) { |
|
19 | + echo '<li>' . $sFileName . '</li>'; |
|
20 | + } |
|
20 | 21 | }; |
21 | 22 | ?> |
22 | 23 | </ul> |
@@ -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 |