Completed
Pull Request — master (#149)
by Paul
03:20
created
src/ServiceManager/ParameterBag.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     public function resolveArray(array $data)
81 81
     {
82 82
         $self = $this;
83
-        array_walk_recursive($data, function (&$value, $key) use ($self) {
83
+        array_walk_recursive($data, function(&$value, $key) use ($self) {
84 84
             if (is_string($value)) {
85 85
                 $value = $self->resolveString($value);
86 86
             }
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
- *
8
- * @link        http://www.ppi.io
9
- */
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
+     *
8
+     * @link        http://www.ppi.io
9
+     */
10 10
 
11 11
 namespace PPI\Framework\View\Mustache;
12 12
 
Please login to merge, or discard this patch.
src/ServiceManager/ServiceManager.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of the PPI Framework.
4
- *
5
- * @copyright   Copyright (c) 2011-2015 Paul Dragoonis <[email protected]>
6
- * @license     http://opensource.org/licenses/mit-license.php MIT
7
- *
8
- * @link        http://www.ppi.io
9
- */
3
+     * This file is part of the PPI Framework.
4
+     *
5
+     * @copyright   Copyright (c) 2011-2015 Paul Dragoonis <[email protected]>
6
+     * @license     http://opensource.org/licenses/mit-license.php MIT
7
+     *
8
+     * @link        http://www.ppi.io
9
+     */
10 10
 
11 11
 namespace PPI\Framework\ServiceManager;
12 12
 
Please login to merge, or discard this patch.
src/ServiceManager/ServiceManagerBuilder.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
- *
8
- * @link        http://www.ppi.io
9
- */
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
+     *
8
+     * @link        http://www.ppi.io
9
+     */
10 10
 
11 11
 namespace PPI\Framework\ServiceManager;
12 12
 
Please login to merge, or discard this patch.
src/View/Mustache/MustacheEngine.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
- *
8
- * @link        http://www.ppi.io
9
- */
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
+     *
8
+     * @link        http://www.ppi.io
9
+     */
10 10
 
11 11
 namespace PPI\Framework\View\Mustache;
12 12
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     /**
71 71
      * Renders a template.
72 72
      *
73
-     * @param mixed $name       A template name
73
+     * @param string $name       A template name
74 74
      * @param array $parameters An array of parameters to pass to the template
75 75
      *
76 76
      * @throws \InvalidArgumentException if the template does not exist
Please login to merge, or discard this patch.
src/View/TemplateReference.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
- *
8
- * @link       http://www.ppi.io
9
- */
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
+     *
8
+     * @link       http://www.ppi.io
9
+     */
10 10
 
11 11
 namespace PPI\Framework\View;
12 12
 
Please login to merge, or discard this patch.
src/View/Twig/Loader/FileSystemLoader.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
- *
8
- * @link       http://www.ppi.io
9
- */
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
+     *
8
+     * @link       http://www.ppi.io
9
+     */
10 10
 
11 11
 namespace PPI\Framework\View\Twig\Loader;
12 12
 
Please login to merge, or discard this patch.
src/Module/AbstractModule.php 3 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -16,16 +16,12 @@
 block discarded – undo
16 16
 use PPI\LaravelRouting\LaravelRouter;
17 17
 use PPI\FastRoute\Wrapper\FastRouteWrapper;
18 18
 use PPI\Framework\Router\Loader\YamlFileLoader;
19
-
20 19
 use Symfony\Component\Config\FileLocator;
21 20
 use Symfony\Component\Finder\Finder;
22
-
23 21
 use Zend\ModuleManager\Feature\ConfigProviderInterface;
24 22
 use Zend\Stdlib\ArrayUtils;
25
-
26 23
 use Aura\Router\Router as AuraRouter;
27 24
 use Aura\Router\RouterFactory as AuraRouterFactory;
28
-
29 25
 use Illuminate\Events\Dispatcher;
30 26
 
31 27
 /**
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
- *
8
- * @link       http://www.ppi.io
9
- */
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
+     *
8
+     * @link       http://www.ppi.io
9
+     */
10 10
 
11 11
 namespace PPI\Framework\View;
12 12
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $dataGenerator = new \FastRoute\DataGenerator\GroupCountBased();
138 138
         $routeCollector = new \FastRoute\RouteCollector($routeParser, $dataGenerator);
139 139
 
140
-        if(!is_readable($path)) {
140
+        if (!is_readable($path)) {
141 141
             throw new \InvalidArgumentException('Invalid fast route routes path found: ' . $path);
142 142
         }
143 143
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         };
150 150
 
151 151
         $routeCollector = $getRouteCollector();
152
-        if(!($routeCollector instanceof \FastRoute\RouteCollector)) {
152
+        if (!($routeCollector instanceof \FastRoute\RouteCollector)) {
153 153
             throw new \Exception('Invalid return value from '
154 154
                 . pathinfo($path, PATHINFO_FILENAME)
155 155
                 . ' expected instance of RouteCollector'
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     protected function loadAuraRoutes($path)
176 176
     {
177 177
 
178
-        if(!is_readable($path)) {
178
+        if (!is_readable($path)) {
179 179
             throw new \InvalidArgumentException('Invalid aura routes path found: ' . $path);
180 180
         }
181 181
 
@@ -184,14 +184,14 @@  discard block
 block discarded – undo
184 184
         // The included file must return the aura router
185 185
         $router = include $path;
186 186
 
187
-        if(!($router instanceof AuraRouter)) {
187
+        if (!($router instanceof AuraRouter)) {
188 188
             throw new \Exception('Invalid return value from '
189 189
                 . pathinfo($path, PATHINFO_FILENAME)
190 190
                 . ' expected instance of AuraRouter'
191 191
             );
192 192
         }
193 193
 
194
-        foreach($router->getRoutes() as $route) {
194
+        foreach ($router->getRoutes() as $route) {
195 195
             $route->addValues(array('_module' => $this->getName()));
196 196
         }
197 197
 
Please login to merge, or discard this patch.
src/ServiceManager/Factory/MicroRouterFactory.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 namespace PPI\Framework\ServiceManager\Factory;
12 12
 
13 13
 use PPI\Framework\Router\RouterListener;
14
-use Symfony\Component\Routing\RequestContext;
15 14
 use Zend\ServiceManager\FactoryInterface;
16 15
 use Zend\ServiceManager\ServiceLocatorInterface;
17 16
 
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of the PPI Framework.
4
- *
5
- * @copyright   Copyright (c) 2011-2015 Paul Dragoonis <[email protected]>
6
- * @license     http://opensource.org/licenses/mit-license.php MIT
7
- *
8
- * @link        http://www.ppi.io
9
- */
3
+     * This file is part of the PPI Framework.
4
+     *
5
+     * @copyright   Copyright (c) 2011-2015 Paul Dragoonis <[email protected]>
6
+     * @license     http://opensource.org/licenses/mit-license.php MIT
7
+     *
8
+     * @link        http://www.ppi.io
9
+     */
10 10
 
11 11
 namespace PPI\Framework\ServiceManager;
12 12
 
Please login to merge, or discard this patch.
src/Autoload.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
- *
8
- * @link       http://www.ppi.io
9
- */
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
+     *
8
+     * @link       http://www.ppi.io
9
+     */
10 10
 
11 11
 namespace PPI\Framework\View;
12 12
 
Please login to merge, or discard this patch.