@@ -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($model); |
@@ -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($model); |
@@ -18,8 +18,9 @@ |
||
| 18 | 18 | |
| 19 | 19 | <?php |
| 20 | 20 | foreach (get_included_files() as $sFileName) { |
| 21 | - if (stristr($sFileName, 'map.php') && stristr($sFileName, $this->getMap()->getModuleName())) |
|
| 22 | - echo "\t" . '- ' . $sFileName . "\n"; |
|
| 21 | + if (stristr($sFileName, 'map.php') && stristr($sFileName, $this->getMap()->getModuleName())) { |
|
| 22 | + echo "\t" . '- ' . $sFileName . "\n"; |
|
| 23 | + } |
|
| 23 | 24 | }; |
| 24 | 25 | ?> |
| 25 | 26 | |
@@ -17,8 +17,9 @@ |
||
| 17 | 17 | <ul> |
| 18 | 18 | <?php |
| 19 | 19 | foreach (get_included_files() as $sFileName) { |
| 20 | - if (stristr($sFileName, 'map.php') && stristr($sFileName, $this->getMap()->getModuleName())) |
|
| 21 | - echo '<li>' . $sFileName . '</li>'; |
|
| 20 | + if (stristr($sFileName, 'map.php') && stristr($sFileName, $this->getMap()->getModuleName())) { |
|
| 21 | + echo '<li>' . $sFileName . '</li>'; |
|
| 22 | + } |
|
| 22 | 23 | }; |
| 23 | 24 | ?> |
| 24 | 25 | </ul> |
@@ -1,2 +1,2 @@ |
||
| 1 | 1 | <?php |
| 2 | -require_once (realpath(dirname(__FILE__).'/../xhtml/model.php')); |
|
| 3 | 2 | \ No newline at end of file |
| 3 | +require_once (realpath(dirname(__FILE__) . '/../xhtml/model.php')); |
|
| 4 | 4 | \ No newline at end of file |
@@ -17,8 +17,9 @@ |
||
| 17 | 17 | <ul> |
| 18 | 18 | <?php |
| 19 | 19 | foreach (get_included_files() as $sFileName) { |
| 20 | - if (stristr($sFileName, 'map.php') && stristr($sFileName, $this->getMap()->getModuleName())) |
|
| 21 | - echo '<li>' . $sFileName . '</li>'; |
|
| 20 | + if (stristr($sFileName, 'map.php') && stristr($sFileName, $this->getMap()->getModuleName())) { |
|
| 21 | + echo '<li>' . $sFileName . '</li>'; |
|
| 22 | + } |
|
| 22 | 23 | }; |
| 23 | 24 | ?> |
| 24 | 25 | </ul> |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | * @param vscObject $mappedObject |
| 33 | 33 | * @return bool |
| 34 | 34 | */ |
| 35 | - public function maps(vscObject $mappedObject) |
|
| 36 | - { |
|
| 35 | + public function maps(vscObject $mappedObject) { |
|
| 37 | 36 | return (get_class($mappedObject) == $this->getPath()); |
| 38 | 37 | } |
| 39 | 38 | } |
@@ -9,8 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | use vsc\infrastructure\urls\UrlParserA; |
| 11 | 11 | |
| 12 | -trait ResourceMapTrait |
|
| 13 | -{ |
|
| 12 | +trait ResourceMapTrait { |
|
| 14 | 13 | /** |
| 15 | 14 | * @var string |
| 16 | 15 | */ |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * @param string $sPath |
| 26 | 26 | * @return bool |
| 27 | 27 | */ |
| 28 | - public static function isValidMap ($sPath) { |
|
| 28 | + public static function isValidMap($sPath) { |
|
| 29 | 29 | return (basename($sPath) == 'map.php' && is_file($sPath)); |
| 30 | 30 | } |
| 31 | 31 | |