@@ -32,7 +32,7 @@ |
||
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() |
@@ -49,7 +49,7 @@ |
||
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 | { |
@@ -121,7 +121,7 @@ |
||
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) |
@@ -61,7 +61,7 @@ |
||
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 |
@@ -113,7 +113,7 @@ discard block |
||
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 |
||
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 | { |
@@ -23,6 +23,9 @@ |
||
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; |
@@ -49,7 +49,7 @@ |
||
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) { |
@@ -23,6 +23,9 @@ discard block |
||
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 |
||
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) |
@@ -14,7 +14,7 @@ |
||
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 | { |
@@ -78,7 +78,7 @@ |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
81 | - * @return mixed |
|
81 | + * @return RepositoryInterface |
|
82 | 82 | */ |
83 | 83 | public function getRepositories() |
84 | 84 | { |
@@ -149,7 +149,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -23,7 +23,7 @@ |
||
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) |