Completed
Push — develop ( 60c2a6...7c4b2f )
by Carsten
61:42 queued 47:32
created
module/Core/src/Core/Listener/ErrorHandlerListener.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
     /**
44 44
      * @param LoggerInterface $log
45
-     * @param null $redirect
45
+     * @param \Closure $redirect
46 46
      */
47 47
     public function __construct(LoggerInterface $log, $redirect = null)
48 48
     {
Please login to merge, or discard this patch.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @param  EventManagerInterface $events
68 68
      * @param  integer $priority
69
-    */
69
+     */
70 70
     public function attach(EventManagerInterface $events, $priority = 1)
71 71
     {
72 72
         $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, array($this, 'handleError'), $priority);
@@ -147,19 +147,19 @@  discard block
 block discarded – undo
147 147
         $error = error_get_last();
148 148
         
149 149
         if ($error) {
150
-             $this->log->err(
151
-                 $error['message'],
152
-                 array(
153
-                 'errno' => $error['type'],
154
-                 'file' => $error['file'],
155
-                 'line' => $error['line']
156
-                 )
157
-             );
158
-             if ($this->redirect &&
150
+                $this->log->err(
151
+                    $error['message'],
152
+                    array(
153
+                    'errno' => $error['type'],
154
+                    'file' => $error['file'],
155
+                    'line' => $error['line']
156
+                    )
157
+                );
158
+                if ($this->redirect &&
159 159
                  ($error['type'] & (E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR))
160
-             ) {
161
-                 if (is_callable($this->redirect)) {
162
-                     call_user_func($this->redirect);
160
+                ) {
161
+                    if (is_callable($this->redirect)) {
162
+                        call_user_func($this->redirect);
163 163
                     }
164 164
                 }
165 165
         }
Please login to merge, or discard this patch.
module/Core/src/Core/Listener/LanguageRouteListener.php 3 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -199,6 +199,10 @@
 block discarded – undo
199 199
         return $lang;
200 200
     }
201 201
     
202
+    /**
203
+     * @param \Zend\Stdlib\ResponseInterface $response
204
+     * @param string $uri
205
+     */
202 206
     protected function redirect($response, $uri)
203 207
     {
204 208
         $response->setStatusCode(302);
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
     protected $defaultLanguage;
23 23
     
24 24
     /**
25
-    * @todo: get this from \Core\Options\ModuleOptions.
26
-    */
25
+     * @todo: get this from \Core\Options\ModuleOptions.
26
+     */
27 27
     protected $availableLanguages = array(
28 28
             'en' => 'en_EN',
29 29
             'de' => 'de_DE',
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         }
107 107
         
108 108
         $router = $e->getRouter();
109
-        $basePath=$router->getBaseUrl();
109
+        $basePath = $router->getBaseUrl();
110 110
         
111 111
         
112 112
         if (preg_match('~^' . $basePath . '/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $headers = $e->getRequest()->getHeaders();
182 182
         if ($headers->has('Accept-Language')) {
183 183
             $locales = $headers->get('Accept-Language')->getPrioritized();
184
-            $localeFound=false;
184
+            $localeFound = false;
185 185
             foreach ($locales as $locale) {
186 186
                 if (array_key_exists($locale->type, $this->availableLanguages)) {
187 187
                     $lang = $locale->type;
Please login to merge, or discard this patch.
module/Core/src/Core/Mail/HTMLTemplateMessage.php 2 patches
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      *
135 135
      * @param  string $name
136 136
      * @param  mixed $value
137
-     * @return ViewModel
137
+     * @return HTMLTemplateMessage
138 138
      */
139 139
     public function setVariable($name, $value)
140 140
     {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      *
196 196
      * Resets the internal variable container to an empty container.
197 197
      *
198
-     * @return ViewModel
198
+     * @return HTMLTemplateMessage
199 199
      */
200 200
     public function clearVariables()
201 201
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     /**
207 207
      *
208 208
      *
209
-     * @param $template
209
+     * @param string $template
210 210
      *
211 211
      * @return self
212 212
      */
@@ -216,6 +216,9 @@  discard block
 block discarded – undo
216 216
         return $this;
217 217
     }
218 218
 
219
+    /**
220
+     * @return string
221
+     */
219 222
     public function getTemplate()
220 223
     {
221 224
         return $this->template;
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
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- * @author    [email protected]
9
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     * @author    [email protected]
9
+     */
10 10
 
11 11
 namespace Organizations\Form;
12 12
 
Please login to merge, or discard this patch.
module/Core/src/Core/Mail/MailService.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     /**
124 124
      * Gets the default from address
125 125
      *
126
-     * @return null|String|Address|AddressList|array
126
+     * @return string
127 127
      */
128 128
     public function getFrom()
129 129
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $self = $this;
81 81
 
82 82
         $this->addInitializer(
83
-            function ($instance) use ($self) {
83
+            function($instance) use ($self) {
84 84
                 if ($instance instanceof TranslatorAwareInterface) {
85 85
                     $translator = $self->getServiceLocator()->get('translator');
86 86
                     $instance->setTranslator($translator);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             false
94 94
         );
95 95
         $this->addInitializer(
96
-            function ($instance) {
96
+            function($instance) {
97 97
                 if (method_exists($instance, 'init')) {
98 98
                     $instance->init();
99 99
                 }
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license       MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license       MIT
8
+     */
9 9
 
10 10
 namespace Organizations\Factory\Controller;
11 11
 
Please login to merge, or discard this patch.
module/Core/src/Core/Mail/StringTemplateMessage.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -104,6 +104,9 @@
 block discarded – undo
104 104
         return $body;
105 105
     }
106 106
     
107
+    /**
108
+     * @param string $body
109
+     */
107 110
     protected function parseVariables($body)
108 111
     {
109 112
         if (null === $this->variables) {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Core/src/Core/ModuleManager/ModuleConfigLoader.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@
 block discarded – undo
34 34
     {
35 35
     }
36 36
     
37
+    /**
38
+     * @param string $directory
39
+     */
37 40
     public static function load($directory)
38 41
     {
39 42
         $directory = rtrim($directory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Core/src/Core/Paginator/PaginatorFactoryAbstract.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     /**
26 26
      * @param ServiceLocatorInterface $serviceLocator
27
-     * @return mixed|Paginator
27
+     * @return Paginator
28 28
      */
29 29
     public function createService(ServiceLocatorInterface $serviceLocator)
30 30
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@
 block discarded – undo
33 33
         $queryBuilder   = $repository->createQueryBuilder();
34 34
         $filter         = $serviceLocator->getServiceLocator()->get('filterManager')->get($this->getFilter());
35 35
 
36
-        $adapter       = new \Core\Paginator\Adapter\DoctrineMongoLateCursor($queryBuilder, $filter);
36
+        $adapter = new \Core\Paginator\Adapter\DoctrineMongoLateCursor($queryBuilder, $filter);
37 37
 
38
-        $service        = new Paginator($adapter);
38
+        $service = new Paginator($adapter);
39 39
         return $service;
40 40
     }
41 41
 
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
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- * @author    [email protected]
9
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     * @author    [email protected]
9
+     */
10 10
 
11 11
 namespace Organizations\Form;
12 12
 
Please login to merge, or discard this patch.
Repository/DoctrineMongoODM/Event/AbstractUpdatePermissionsSubscriber.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -108,6 +108,9 @@
 block discarded – undo
108 108
         return $entities;
109 109
     }
110 110
     
111
+    /**
112
+     * @return string
113
+     */
111 114
     protected function getRepositoryName()
112 115
     {
113 116
         if (0 === strpos($this->repositoryName, '\\')) {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/DoctrineMongoODM/PersistenceListener.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
      * Attach to an event manager
30 30
      *
31 31
      * @param  EventManagerInterface $events
32
-     * @param  integer $priority
33 32
      */
34 33
     public function attach(EventManagerInterface $events)
35 34
     {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.