@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package presentation |
|
4 | - * @subpackage views |
|
5 | - * @author marius orcsik <[email protected]> |
|
6 | - * @date 2012.08.26 |
|
7 | - */ |
|
3 | + * @package presentation |
|
4 | + * @subpackage views |
|
5 | + * @author marius orcsik <[email protected]> |
|
6 | + * @date 2012.08.26 |
|
7 | + */ |
|
8 | 8 | namespace vsc\presentation\views; |
9 | 9 | |
10 | 10 | class XmlView extends ViewA implements XmlViewInterface { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package presentation |
|
4 | - * @subpackage views |
|
5 | - * @author marius orcsik <[email protected]> |
|
6 | - * @date 09.09.07 |
|
7 | - */ |
|
3 | + * @package presentation |
|
4 | + * @subpackage views |
|
5 | + * @author marius orcsik <[email protected]> |
|
6 | + * @date 09.09.07 |
|
7 | + */ |
|
8 | 8 | namespace vsc\presentation\views; |
9 | 9 | |
10 | 10 | class XhtmlView extends ViewA implements XhtmlViewInterface { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package presentation |
|
4 | - * @subpackage views |
|
5 | - * @author marius orcsik <[email protected]> |
|
6 | - * @date 2010.04.09 |
|
7 | - */ |
|
3 | + * @package presentation |
|
4 | + * @subpackage views |
|
5 | + * @author marius orcsik <[email protected]> |
|
6 | + * @date 2010.04.09 |
|
7 | + */ |
|
8 | 8 | namespace vsc\presentation\views; |
9 | 9 | |
10 | 10 | class CssView extends PlainTextView { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package presentation |
|
4 | - * @subpackage responses |
|
5 | - * @author marius orcsik <[email protected]> |
|
6 | - * @date 2011.02.23 |
|
7 | - */ |
|
3 | + * @package presentation |
|
4 | + * @subpackage responses |
|
5 | + * @author marius orcsik <[email protected]> |
|
6 | + * @date 2011.02.23 |
|
7 | + */ |
|
8 | 8 | namespace vsc\presentation\responses; |
9 | 9 | |
10 | 10 | class HttpResponse extends HttpResponseA { |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is included in the SiteMapA::loadSiteMap () function |
|
4 | - * It should be used to load other sitemaps or point to specific controllers |
|
5 | - * |
|
6 | - * OBS: make sure you put the specific regular expressions at the top |
|
7 | - * of the sitemap so they will be tried before the more generic ones |
|
8 | - * |
|
9 | - * @author marius orcsik <[email protected]> |
|
10 | - * @date 09.09.16 |
|
11 | - */ |
|
3 | + * This file is included in the SiteMapA::loadSiteMap () function |
|
4 | + * It should be used to load other sitemaps or point to specific controllers |
|
5 | + * |
|
6 | + * OBS: make sure you put the specific regular expressions at the top |
|
7 | + * of the sitemap so they will be tried before the more generic ones |
|
8 | + * |
|
9 | + * @author marius orcsik <[email protected]> |
|
10 | + * @date 09.09.16 |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | /* @var $this \vsc\application\sitemaps\RwSiteMap */ |
14 | 14 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | /* @var $this \vsc\application\sitemaps\RwSiteMap */ |
14 | 14 | |
15 | 15 | // this will break if the current map is the first loaded |
16 | -$this->getCurrentModuleMap()->setMainTemplatePath(VSC_RES_PATH.'templates'); |
|
16 | +$this->getCurrentModuleMap()->setMainTemplatePath(VSC_RES_PATH . 'templates'); |
|
17 | 17 | $this->getCurrentModuleMap()->setMainTemplate('main.php'); |
18 | 18 | |
19 | 19 | //$oMap = $this->map ('.+', \vsc\application\processors\EmptyProcessor::class); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | // fallback 404 processor for everything |
30 | 30 | $oMap = $this->map('(.*)\Z', \vsc\application\processors\NotFoundProcessor::class); |
31 | -$oMap->setTemplatePath(VSC_RES_PATH.'templates'); |
|
31 | +$oMap->setTemplatePath(VSC_RES_PATH . 'templates'); |
|
32 | 32 | $oMap->setTemplate('404.php'); |
33 | 33 | |
34 | 34 | // front controllers |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package infrastructure |
|
4 | - * @author marius orcsik <[email protected]> |
|
5 | - * @date 2010.04.16 |
|
6 | - */ |
|
3 | + * @package infrastructure |
|
4 | + * @author marius orcsik <[email protected]> |
|
5 | + * @date 2010.04.16 |
|
6 | + */ |
|
7 | 7 | namespace vsc\infrastructure; |
8 | 8 | |
9 | 9 | class StringUtils { |
@@ -37,8 +37,9 @@ discard block |
||
37 | 37 | * @param int $iTimes |
38 | 38 | */ |
39 | 39 | public static function _echo($sString, $iTimes = 1) { |
40 | - for ($i = 0; $i < $iTimes; $i++) |
|
41 | - echo $sString; |
|
40 | + for ($i = 0; $i < $iTimes; $i++) { |
|
41 | + echo $sString; |
|
42 | + } |
|
42 | 43 | } |
43 | 44 | |
44 | 45 | /** |
@@ -98,8 +99,9 @@ discard block |
||
98 | 99 | * @return string |
99 | 100 | */ |
100 | 101 | public static function truncate($sString, $iLength, $sEtc = '...') { |
101 | - if ($iLength == 0) |
|
102 | - return ''; |
|
102 | + if ($iLength == 0) { |
|
103 | + return ''; |
|
104 | + } |
|
103 | 105 | |
104 | 106 | if (strlen($sString) > $iLength) { |
105 | 107 | return substr($sString, 0, $iLength) . $sEtc; |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package lib_infrastructure |
|
4 | - * @author marius orcsik <[email protected]> |
|
5 | - * @date 2010.03.30 |
|
6 | - */ |
|
3 | + * @package lib_infrastructure |
|
4 | + * @author marius orcsik <[email protected]> |
|
5 | + * @date 2010.03.30 |
|
6 | + */ |
|
7 | 7 | namespace vsc\infrastructure; |
8 | 8 | |
9 | 9 | class Base extends Object { |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author Marius Orcsik <[email protected]> |
|
4 | - * @created 2015-07-03 |
|
5 | - */ |
|
3 | + * @author Marius Orcsik <[email protected]> |
|
4 | + * @created 2015-07-03 |
|
5 | + */ |
|
6 | 6 | namespace vsc\infrastructure\urls; |
7 | 7 | |
8 | 8 | use vsc\infrastructure\Object; |
@@ -7,8 +7,7 @@ |
||
7 | 7 | |
8 | 8 | use vsc\infrastructure\Object; |
9 | 9 | |
10 | -class Url extends Object |
|
11 | -{ |
|
10 | +class Url extends Object { |
|
12 | 11 | static protected $queryEncodingType = PHP_QUERY_RFC1738; |
13 | 12 | static protected $validSchemes = ['http', 'https', 'file']; |
14 | 13 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package presentation/response |
|
4 | - * @author marius orcsik <[email protected]> |
|
5 | - * @date 2013.10.04 |
|
6 | - */ |
|
3 | + * @package presentation/response |
|
4 | + * @author marius orcsik <[email protected]> |
|
5 | + * @date 2013.10.04 |
|
6 | + */ |
|
7 | 7 | namespace vsc\rest\presentation\responses; |
8 | 8 | |
9 | 9 | use vsc\presentation\responses\HttpResponseA; |