Completed
Pull Request — master (#155)
by Paul
20:30
created
src/ServiceManager/Config/ServiceManagerConfig.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             $serviceManager->setShared($name, $value);
134 134
         }
135 135
 
136
-        $serviceManager->addInitializer(function ($instance) use ($serviceManager) {
136
+        $serviceManager->addInitializer(function($instance) use ($serviceManager) {
137 137
             if ($instance instanceof EventManagerAwareInterface) {
138 138
                 if ($instance->getEventManager() instanceof EventManagerInterface) {
139 139
                     $instance->getEventManager()->setSharedManager(
@@ -145,13 +145,13 @@  discard block
 block discarded – undo
145 145
             }
146 146
         });
147 147
 
148
-        $serviceManager->addInitializer(function ($instance) use ($serviceManager) {
148
+        $serviceManager->addInitializer(function($instance) use ($serviceManager) {
149 149
             if ($instance instanceof ServiceManagerAwareInterface) {
150 150
                 $instance->setServiceManager($serviceManager);
151 151
             }
152 152
         });
153 153
 
154
-        $serviceManager->addInitializer(function ($instance) use ($serviceManager) {
154
+        $serviceManager->addInitializer(function($instance) use ($serviceManager) {
155 155
             if ($instance instanceof ServiceLocatorAwareInterface) {
156 156
                 $instance->setServiceLocator($serviceManager);
157 157
             }
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/Config/SessionConfig.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $config = $serviceManager->get('Config');
47 47
 
48
-        $options =  array_merge(array(
48
+        $options = array_merge(array(
49 49
             'auto_start'        => false,
50 50
             'storage_id'        => 'session.storage.native',
51 51
             'handler_id'        => 'session.handler.native_file',
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
         }
68 68
 
69 69
         // session handler
70
-        $serviceManager->setFactory('session.handler', function ($serviceManager) use ($options) {
70
+        $serviceManager->setFactory('session.handler', function($serviceManager) use ($options) {
71 71
             $handlerID = $options['handler_id'];
72 72
 
73 73
             return $handlerID === null ? null : $serviceManager->get($handlerID);
74 74
         });
75 75
 
76 76
         // session storage native
77
-        $serviceManager->setFactory('session.storage.native', function ($serviceManager) use ($storageOptions) {
77
+        $serviceManager->setFactory('session.storage.native', function($serviceManager) use ($storageOptions) {
78 78
 
79 79
             // We need to strip out keys with a null value so symfony doesn't try and set things with a blank value
80 80
             $storageOptions = array_filter($storageOptions);
@@ -83,19 +83,19 @@  discard block
 block discarded – undo
83 83
         });
84 84
 
85 85
         // session flash bag
86
-        $serviceManager->setFactory('session.flash_bag', function ($serviceManager) {
86
+        $serviceManager->setFactory('session.flash_bag', function($serviceManager) {
87 87
             return new FlashBag();
88 88
         });
89 89
 
90 90
         // session attribute bag
91
-        $serviceManager->setFactory('session.attribute_bag', function ($serviceManager) {
91
+        $serviceManager->setFactory('session.attribute_bag', function($serviceManager) {
92 92
             return new AttributeBag();
93 93
         });
94 94
 
95 95
         $that = $this;
96 96
 
97 97
         // session handler native file
98
-        $serviceManager->setFactory('session.handler.native_file', function ($serviceManager) use ($that, $storageOptions) {
98
+        $serviceManager->setFactory('session.handler.native_file', function($serviceManager) use ($that, $storageOptions) {
99 99
 
100 100
             // We want absolute paths if we can
101 101
             if (null !== $storageOptions['save_path'] && !$that->isAbsolutePath($storageOptions['save_path'])) {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         });
113 113
 
114 114
         // session
115
-        $serviceManager->setFactory('session', function ($serviceManager) {
115
+        $serviceManager->setFactory('session', function($serviceManager) {
116 116
 
117 117
             $session = new Session(
118 118
                 $serviceManager->get('session.storage.native'),
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/Factory/ConfigFactory.php 2 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
48 48
         $parametersBag = $serviceLocator->get('ApplicationParameters');
49 49
 
50 50
         $config['parameters'] = isset($config['parameters']) ?
51
-            ArrayUtils::merge($parametersBag->all(), $config['parameters']) :
52
-            $config['parameters'] = $parametersBag->all();
51
+            ArrayUtils::merge($parametersBag->all(), $config['parameters']) : $config['parameters'] = $parametersBag->all();
53 52
 
54 53
         return $parametersBag->resolveArray($config);
55 54
     }
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-2016 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-2016 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\Module\Controller;
12 12
 
Please login to merge, or discard this patch.
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/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/Smarty/Extension/RouterExtension.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 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\Smarty\Extension;
12 12
 
13 13
 use NoiseLabs\Bundle\SmartyBundle\Extension\RoutingExtension as BaseRoutingExtension;
14 14
 
15
- /**
16
-  * Provides integration of the Routing component with Smarty[Bundle].
17
-  *
18
-  * @author     Vítor Brandão <[email protected]>
19
-  */
20
- class RouterExtension extends BaseRoutingExtension
21
- {
22
- }
15
+    /**
16
+     * Provides integration of the Routing component with Smarty[Bundle].
17
+     *
18
+     * @author     Vítor Brandão <[email protected]>
19
+     */
20
+    class RouterExtension extends BaseRoutingExtension
21
+    {
22
+    }
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/Config/AppFileLocator.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/Config/Loader/DelegatingLoader.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.