Completed
Pull Request — develop (#307)
by
unknown
09:17
created
module/Core/Module.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function init(ModuleManagerInterface $moduleManager)
44 44
     {
45
-        $moduleManager->getEventManager()->attach(ModuleEvent::EVENT_MERGE_CONFIG, function (ModuleEvent $event) {
45
+        $moduleManager->getEventManager()->attach(ModuleEvent::EVENT_MERGE_CONFIG, function(ModuleEvent $event) {
46 46
             $config = $event->getConfigListener()
47 47
                 ->getMergedConfig(false);
48 48
             
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function getConsoleBanner(Console $console)
56 56
     {
57 57
         $version = `git describe 2>/dev/null`;
58
-        $name = 'YAWIK ' . trim($version);
58
+        $name = 'YAWIK '.trim($version);
59 59
         $width = $console->getWidth();
60 60
         return sprintf(
61 61
             "==%1\$s==\n%2\$s%3\$s\n**%1\$s**\n",
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
         $sharedManager       = $eventManager->getSharedManager();
92 92
         
93 93
         if (!\Zend\Console\Console::isConsole()) {
94
-            $redirectCallback = function () use ($e) {
94
+            $redirectCallback = function() use ($e) {
95 95
                 $routeMatch = $e->getRouteMatch();
96 96
                 $lang = $routeMatch ? $routeMatch->getParam('lang', 'en') : 'en';
97
-                $uri    = $e->getRouter()->getBaseUrl() . '/' . $lang . '/error';
97
+                $uri = $e->getRouter()->getBaseUrl().'/'.$lang.'/error';
98 98
                 
99
-                header('Location: ' . $uri);
99
+                header('Location: '.$uri);
100 100
             };
101 101
             
102 102
             $errorHandlerListener = new ErrorHandlerListener($sm->get('ErrorLogger'), $redirectCallback);
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         
130 130
         $eventManager->attach(
131 131
             MvcEvent::EVENT_DISPATCH_ERROR,
132
-            function ($event) {
132
+            function($event) {
133 133
                 $application = $event->getApplication();
134 134
                 if ($application::ERROR_EXCEPTION == $event->getError()) {
135 135
                     $ex = $event->getParam('exception');
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         );
144 144
         $eventManager->attach(
145 145
             MvcEvent::EVENT_DISPATCH,
146
-            function ($event) use ($eventManager) {
146
+            function($event) use ($eventManager) {
147 147
                 $eventManager->trigger('postDispatch', $event);
148 148
             },
149 149
             -150
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function getConfig()
160 160
     {
161
-        $config = include __DIR__ . '/config/module.config.php';
161
+        $config = include __DIR__.'/config/module.config.php';
162 162
         return $config;
163 163
         if (\Zend\Console\Console::isConsole()) {
164 164
             $config['doctrine']['configuration']['odm_default']['generate_proxies'] = false;
@@ -178,9 +178,9 @@  discard block
 block discarded – undo
178 178
         return array(
179 179
             'Zend\Loader\StandardAutoloader' => array(
180 180
                 'namespaces' => array(
181
-                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
182
-                    'CoreTest' => __DIR__ . '/test/' . 'CoreTest',
183
-                    'CoreTestUtils' => __DIR__ . '/test/CoreTestUtils',
181
+                    __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
182
+                    'CoreTest' => __DIR__.'/test/'.'CoreTest',
183
+                    'CoreTestUtils' => __DIR__.'/test/CoreTestUtils',
184 184
                 ),
185 185
             ),
186 186
         );
Please login to merge, or discard this patch.