@@ -81,9 +81,9 @@ |
||
81 | 81 | { |
82 | 82 | |
83 | 83 | if ('@' === $file[0]) { |
84 | - if (false !== strpos($file, '..')) { |
|
85 | - throw new \RuntimeException(sprintf('File name "%s" contains invalid characters (..).', $file)); |
|
86 | - } |
|
84 | + if (false !== strpos($file, '..')) { |
|
85 | + throw new \RuntimeException(sprintf('File name "%s" contains invalid characters (..).', $file)); |
|
86 | + } |
|
87 | 87 | |
88 | 88 | $path = $this->baseModulePath . '/' . substr($file, 1); |
89 | 89 | if (file_exists($path)) { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * Returns a list of functions to add to the existing list. |
42 | 42 | * |
43 | 43 | * @return array An array of functions |
44 | - */ |
|
44 | + */ |
|
45 | 45 | public function getFunctions() |
46 | 46 | { |
47 | 47 | return array( |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @param string $packageName The name of the asset package to use |
60 | 60 | * |
61 | 61 | * @return string A public path which takes into account the base path and URL path |
62 | - */ |
|
62 | + */ |
|
63 | 63 | public function getAssetUrl($path, $packageName = null) |
64 | 64 | { |
65 | 65 | return $this->assetsHelper->getUrl($path, $packageName); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @param string $packageName |
72 | 72 | * |
73 | 73 | * @return integer |
74 | - */ |
|
74 | + */ |
|
75 | 75 | public function getAssetsVersion($packageName = null) |
76 | 76 | { |
77 | 77 | return $this->assetsHelper->getVersion($packageName); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * Returns the name of the extension. |
82 | 82 | * |
83 | 83 | * @return string The extension name |
84 | - */ |
|
84 | + */ |
|
85 | 85 | public function getName() |
86 | 86 | { |
87 | 87 | return 'assets'; |
@@ -6,17 +6,17 @@ |
||
6 | 6 | * @license http://opensource.org/licenses/mit-license.php MIT |
7 | 7 | * @link http://www.ppi.io |
8 | 8 | */ |
9 | - namespace PPI\Templating\Smarty\Extension; |
|
9 | + namespace PPI\Templating\Smarty\Extension; |
|
10 | 10 | |
11 | - use NoiseLabs\Bundle\SmartyBundle\Extension\RoutingExtension as BaseRoutingExtension; |
|
11 | + use NoiseLabs\Bundle\SmartyBundle\Extension\RoutingExtension as BaseRoutingExtension; |
|
12 | 12 | |
13 | - /** |
|
14 | - * Provides integration of the Routing component with Smarty[Bundle]. |
|
15 | - * |
|
16 | - * @author Vítor Brandão <[email protected]> |
|
17 | - * @package PPI |
|
18 | - * @subpackage Templating |
|
19 | - */ |
|
20 | - class RouterExtension extends BaseRoutingExtension |
|
21 | - { |
|
22 | - } |
|
13 | + /** |
|
14 | + * Provides integration of the Routing component with Smarty[Bundle]. |
|
15 | + * |
|
16 | + * @author Vítor Brandão <[email protected]> |
|
17 | + * @package PPI |
|
18 | + * @subpackage Templating |
|
19 | + */ |
|
20 | + class RouterExtension extends BaseRoutingExtension |
|
21 | + { |
|
22 | + } |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the PPI Framework. |
|
4 | - * |
|
5 | - * @copyright Copyright (c) 2012 Paul Dragoonis <[email protected]> |
|
6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
7 | - * @link http://www.ppi.io |
|
8 | - */ |
|
3 | + * This file is part of the PPI Framework. |
|
4 | + * |
|
5 | + * @copyright Copyright (c) 2012 Paul Dragoonis <[email protected]> |
|
6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
7 | + * @link http://www.ppi.io |
|
8 | + */ |
|
9 | 9 | namespace PPI\Templating\Smarty; |
10 | 10 | |
11 | 11 | use PPI\Templating\GlobalVariables, |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * of your custom error handler, please call muteExpectedErrors() after |
99 | 99 | * you've registered your custom error handler. |
100 | 100 | * |
101 | - * muteExpectedErrors() registers a custom error handler using |
|
101 | + * muteExpectedErrors() registers a custom error handler using |
|
102 | 102 | * set_error_handler(). The error handler merely inspects $errno and |
103 | 103 | * $errfile to determine if the given error was produced deliberately |
104 | 104 | * and must be ignored, or should be passed on to the next error handler. |
@@ -9,19 +9,19 @@ |
||
9 | 9 | namespace PPI\Tests\Exception; |
10 | 10 | |
11 | 11 | use PPI\Test\Unit, |
12 | - PPI\Exception\Log; |
|
12 | + PPI\Exception\Log; |
|
13 | 13 | |
14 | 14 | class LogTest extends Unit { |
15 | 15 | |
16 | - public $logger; |
|
16 | + public $logger; |
|
17 | 17 | |
18 | - public function setUp() { |
|
19 | - $this->logger = new Log(); |
|
20 | - } |
|
18 | + public function setUp() { |
|
19 | + $this->logger = new Log(); |
|
20 | + } |
|
21 | 21 | |
22 | - public function testSetLogFile() { |
|
23 | - $this->logger->setLogFile('foobar'); |
|
24 | - $this->assertAttributeContains('foobar', '_logFile', $this->logger); |
|
25 | - } |
|
22 | + public function testSetLogFile() { |
|
23 | + $this->logger->setLogFile('foobar'); |
|
24 | + $this->assertAttributeContains('foobar', '_logFile', $this->logger); |
|
25 | + } |
|
26 | 26 | |
27 | 27 | } |
28 | 28 | \ No newline at end of file |
@@ -113,7 +113,7 @@ |
||
113 | 113 | $serviceManager->get('templating.helper.assets'), |
114 | 114 | new RouterHelper($serviceManager->get('router')), |
115 | 115 | new SessionHelper($serviceManager->get('session')) |
116 | - ) |
|
116 | + ) |
|
117 | 117 | ); |
118 | 118 | }); |
119 | 119 |
@@ -27,9 +27,9 @@ |
||
27 | 27 | { |
28 | 28 | |
29 | 29 | $this->setName('module:create') |
30 | - ->setDescription('Create a module') |
|
31 | - ->addArgument('name', InputArgument::REQUIRED, 'What is your module name?') |
|
32 | - ->addOption('dir', null, InputOption::VALUE_NONE, 'Specify the modules directory'); |
|
30 | + ->setDescription('Create a module') |
|
31 | + ->addArgument('name', InputArgument::REQUIRED, 'What is your module name?') |
|
32 | + ->addOption('dir', null, InputOption::VALUE_NONE, 'Specify the modules directory'); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This file is part of the PPI Framework. |
|
4 | - * |
|
5 | - * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
6 | - * @license http://opensource.org/licenses/mit-license.php MIT |
|
7 | - * @link http://www.ppi.io |
|
8 | - */ |
|
3 | + * This file is part of the PPI Framework. |
|
4 | + * |
|
5 | + * @copyright Copyright (c) 2011-2013 Paul Dragoonis <[email protected]> |
|
6 | + * @license http://opensource.org/licenses/mit-license.php MIT |
|
7 | + * @link http://www.ppi.io |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace PPI\Http; |
11 | 11 |
@@ -40,9 +40,9 @@ |
||
40 | 40 | $trace = $e->getTrace(); |
41 | 41 | |
42 | 42 | $error = array( |
43 | - 'file' => $e->getFile(), |
|
44 | - 'line' => $e->getLine(), |
|
45 | - 'message' => $e->getMessage() |
|
43 | + 'file' => $e->getFile(), |
|
44 | + 'line' => $e->getLine(), |
|
45 | + 'message' => $e->getMessage() |
|
46 | 46 | ); |
47 | 47 | |
48 | 48 | try { |