Completed
Pull Request — develop (#329)
by Carsten
07:08
created
module/Auth/src/Auth/Form/UserInfoContainer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     
33 33
     /**
34 34
      * {@inheritDoc}
35
-     * @return UserInfoContainer
35
+     * @return string
36 36
      * @see \Core\Form\ViewPartialProviderInterface::getViewPartial()
37 37
      */
38 38
     public function getViewPartial()
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/TokenListener.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      * Detach all our listeners from the event manager
50 50
      *
51 51
      * @param  SharedEventManagerInterface $events
52
-     * @return void
52
+     * @return boolean
53 53
      */
54 54
     public function detachShared(SharedEventManagerInterface $events)
55 55
     {
Please login to merge, or discard this patch.
module/Auth/src/Auth/Options/ModuleOptions.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
     /**
122 122
      * Sets the From: of the mail header
123 123
      *
124
-     * @param $fromName
124
+     * @param string $fromName
125 125
      * @return $this
126 126
      */
127 127
     public function setFromName($fromName)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      *
62 62
      * @var array()
63 63
      */
64
-    protected $enableLogins = ['facebook','xing','linkedin','google','github'];
64
+    protected $enableLogins = ['facebook', 'xing', 'linkedin', 'google', 'github'];
65 65
 
66 66
     /**
67 67
      * Enable Registration
Please login to merge, or discard this patch.
module/Auth/src/Auth/Service/Register.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     }
114 114
 
115 115
     /**
116
-     * @param $user
116
+     * @param \Core\Entity\EntityInterface $user
117 117
      * @return $this
118 118
      */
119 119
     protected function setUser($user)
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     /**
206 206
      * Email-Address
207 207
      * @param $email string
208
-     * @return mixed
208
+     * @return Register
209 209
      */
210 210
     protected function setEmail($email)
211 211
     {
Please login to merge, or discard this patch.
module/Auth/src/Auth/View/Helper/BuildReferer.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
     
24 24
     protected $filter;
25 25
     
26
+    /**
27
+     * @param StripQueryParamsFilter $filter
28
+     */
26 29
     public function setFilter($filter)
27 30
     {
28 31
         $this->filter = $filter;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         }
50 50
         
51 51
         if (null === $uri && isset($_SERVER['REQUEST_URI'])) {
52
-            $uri = preg_replace('~^' . $this->getView()->basePath() . '~', '', $_SERVER['REQUEST_URI']);
52
+            $uri = preg_replace('~^'.$this->getView()->basePath().'~', '', $_SERVER['REQUEST_URI']);
53 53
         }
54 54
         
55 55
         if (null === $stripParams) {
Please login to merge, or discard this patch.
module/Auth/src/Auth/View/Helper/StripQueryParams.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@  discard block
 block discarded – undo
23 23
     
24 24
     protected $filter;
25 25
     
26
+    /**
27
+     * @param StripQueryParamsFilter $filter
28
+     */
26 29
     public function setFilter($filter)
27 30
     {
28 31
         $this->filter = $filter;
@@ -44,7 +47,6 @@  discard block
 block discarded – undo
44 47
      * Returns a property value of the authenticated user or null, if
45 48
      * no user is authenticated or the property does not exists.
46 49
      *
47
-     * @param string $property
48 50
      * @return \Auth\View\Helper\Auth|NULL
49 51
      */
50 52
     public function __invoke($uri, array $stripParams = null)
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/ConfigFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      * Create the settings service
15 15
      *
16 16
      * @param  ServiceLocatorInterface $serviceLocator
17
-     * @return ControllerManager
17
+     * @return Config
18 18
      */
19 19
     public function createService(ServiceLocatorInterface $serviceLocator)
20 20
     {
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/EntitySnapshot.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     }
79 79
 
80 80
     /**
81
-     * @return mixed
81
+     * @return RepositoryInterface
82 82
      */
83 83
     public function getRepositories()
84 84
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                 $target->__invoke($data);
150 150
                 $className = get_class($this->entity);
151 151
                 // @TODO, have to be abstract
152
-                $snapShotMetaClassName = '\\' . $className . 'SnapshotMeta';
152
+                $snapShotMetaClassName = '\\'.$className.'SnapshotMeta';
153 153
                 $meta = new $snapShotMetaClassName;
154 154
                 $meta->setEntity($target);
155 155
                 $meta->setSourceId($this->entity->id);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             if (empty($dataHead) || empty($targetClass)) {
178 178
                 return null;
179 179
             }
180
-            $repositorySnapshotMeta = $this->getRepositories()->getRepository($targetClass . "Meta");
180
+            $repositorySnapshotMeta = $this->getRepositories()->getRepository($targetClass."Meta");
181 181
             $snapshot = $repositorySnapshotMeta->findSnapshot($this->entity);
182 182
             // an snapshot has to be so simple that there is no need for a special hydrator
183 183
             $hydrator = new EntityHydrator();
@@ -247,8 +247,8 @@  discard block
 block discarded – undo
247 247
             // the snapshotgenerator is a service defined by the name of the entity
248 248
             // this is the highest means, all subsequent means just add what is not set
249 249
             $className = get_class($this->entity);
250
-            if ($serviceLocator->has('snapshotgenerator' . $className)) {
251
-                $generator = $this->serviceLocator->get('snapshotgenerator' . $className);
250
+            if ($serviceLocator->has('snapshotgenerator'.$className)) {
251
+                $generator = $this->serviceLocator->get('snapshotgenerator'.$className);
252 252
                 if (is_array($generator)) {
253 253
                     $this->options = ArrayUtils::merge($generator, $this->options);
254 254
                     $generator = null;
@@ -348,13 +348,13 @@  discard block
 block discarded – undo
348 348
                         }
349 349
                     } else {
350 350
                         if ($array1[$key] != $array2[$key]) {
351
-                            $result[$key] = array( $array1[$key], $array2[$key]);
351
+                            $result[$key] = array($array1[$key], $array2[$key]);
352 352
                         }
353 353
                     }
354 354
                     if (!empty($subResult)) {
355 355
                         foreach ($subResult as $subKey => $subValue) {
356 356
                             if (!empty($subKey) && is_string($subKey)) {
357
-                                $result[$key . '.' . $subKey] = $subValue;
357
+                                $result[$key.'.'.$subKey] = $subValue;
358 358
                             }
359 359
                         }
360 360
                     }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/Service/EntitySnapshotFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * and the configuration to get the services for Hydrator
24 24
      *
25 25
      * @param ServiceLocatorInterface $serviceLocator
26
-     * @return $this|mixed
26
+     * @return EntitySnapshot
27 27
      */
28 28
 
29 29
     public function createService(ServiceLocatorInterface $serviceLocator)
Please login to merge, or discard this patch.