@@ -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) |
@@ -55,7 +55,6 @@ |
||
55 | 55 | * Two-letter codes from the ISO 3166 standard as implemented by The Internet Assigned |
56 | 56 | * Numbers Authority. |
57 | 57 | * |
58 | - * @param string $postalCode {'AC'|'AD'|'AE'|'AF'|'AG'|'AI'|'AL'|'AM'|'AN'|'AO'|'AQ'|'AR'|'AS'|'AT'|'AU'|'AW'|'AX'|'AZ'|'BA'|'BB'|'BD'|'BE'|'BF'|'BG'|'BH'|'BI'|'BJ'|'BL'|'BM'|'BN'|'BO'|'BR'|'BS'|'BT'|'BV'|'BW'|'BY'|'BZ'|'CA'|'CC'|'CD'|'CF'|'CG'|'CH'|'CI'|'CK'|'CL'|'CM'|'CN'|'CO'|'CR'|'CU'|'CV'|'CX'|'CY'|'CZ'|'DE'|'DJ'|'DK'|'DM'|'DO'|'DZ'|'EC'|'EE'|'EG'|'EH'|'ER'|'ES'|'ET'|'EU'|'FI'|'FJ'|'FK'|'FM'|'FO'|'FR'|'GA'|'GB'|'GD'|'GE'|'GF'|'GG'|'GH'|'GI'|'GL'|'GM'|'GN'|'GP'|'GQ'|'GR'|'GS'|'GT'|'GU'|'GW'|'GY'|'HK'|'HM'|'HN'|'HR'|'HT'|'HU'|'ID'|'IE'|'IL'|'IM'|'IN'|'IO'|'IQ'|'IR'|'IS'|'IT'|'JE'|'JM'|'JO'|'JP'|'KE'|'KG'|'KH'|'KI'|'KM'|'KN'|'KP'|'KR'|'KW'|'KY'|'KZ'|'LA'|'LB'|'LC'|'LI'|'LK'|'LR'|'LS'|'LT'|'LU'|'LV'|'LY'|'MA'|'MC'|'MD'|'ME'|'MF'|'MG'|'MH'|'MK'|'ML'|'MM'|'MN'|'MO'|'MP'|'MQ'|'MR'|'MS'|'MT'|'MU'|'MV'|'MW'|'MX'|'MY'|'MZ'|'NA'|'NC'|'NE'|'NF'|'NG'|'NI'|'NL'|'NO'|'NP'|'NR'|'NU'|'NZ'|'OM'|'PA'|'PE'|'PF'|'PG'|'PH'|'PK'|'PL'|'PM'|'PN'|'PR'|'PS'|'PT'|'PW'|'PY'|'QA'|'RE'|'RO'|'RS'|'RU'|'RW'|'SA'|'SB'|'SC'|'SD'|'SE'|'SG'|'SH'|'SI'|'SJ'|'SK'|'SL'|'SM'|'SN'|'SO'|'SR'|'ST'|'SU'|'SV'|'SY'|'SZ'|'TC'|'TD'|'TF'|'TG'|'TH'|'TJ'|'TK'|'TL'|'TM'|'TN'|'TO'|'TP'|'TR'|'TT'|'TV'|'TW'|'TZ'|'UA'|'UG'|'UK'|'UM'|'US'|'UY'|'UZ'|'VA'|'VC'|'VE'|'VG'|'VI'|'VN'|'VU'|'WF'|'WS'|'YE'|'YT'|'YU'|'ZA'|'ZM'|'ZW'} |
|
59 | 58 | * @return AddressInterface |
60 | 59 | */ |
61 | 60 | public function setCountryCode($countryCode); |
@@ -14,50 +14,50 @@ |
||
14 | 14 | interface AddressInterface extends EntityInterface |
15 | 15 | { |
16 | 16 | |
17 | - /** |
|
18 | - * Postal Code of the Address. |
|
19 | - * |
|
20 | - * @param string $postalCode |
|
21 | - * @return AddressInterface |
|
22 | - */ |
|
17 | + /** |
|
18 | + * Postal Code of the Address. |
|
19 | + * |
|
20 | + * @param string $postalCode |
|
21 | + * @return AddressInterface |
|
22 | + */ |
|
23 | 23 | public function setPostalCode($postalCode); |
24 | 24 | public function getPostalCode(); |
25 | 25 | |
26 | - /** |
|
27 | - * Identifies the town or the city |
|
28 | - * |
|
29 | - * @param string $cityName |
|
30 | - * @return AddressInterface |
|
31 | - */ |
|
26 | + /** |
|
27 | + * Identifies the town or the city |
|
28 | + * |
|
29 | + * @param string $cityName |
|
30 | + * @return AddressInterface |
|
31 | + */ |
|
32 | 32 | public function setCityName($cityName); |
33 | 33 | public function getCityName(); |
34 | 34 | |
35 | - /** |
|
36 | - * The Street Name where the building/ house is located |
|
37 | - * |
|
38 | - * @param string $streetName |
|
39 | - * @return AddressInterface |
|
40 | - */ |
|
35 | + /** |
|
36 | + * The Street Name where the building/ house is located |
|
37 | + * |
|
38 | + * @param string $streetName |
|
39 | + * @return AddressInterface |
|
40 | + */ |
|
41 | 41 | public function setStreetName($streetName); |
42 | 42 | public function getStreetName(); |
43 | 43 | |
44 | - /** |
|
45 | - * The Number of the building or house on the street that identifies where |
|
46 | - * to deliver mail. For example, Building 300 on Standards Parkway |
|
47 | - * |
|
48 | - * @param string $buildingNumber |
|
49 | - * @return AddressInterface |
|
50 | - */ |
|
44 | + /** |
|
45 | + * The Number of the building or house on the street that identifies where |
|
46 | + * to deliver mail. For example, Building 300 on Standards Parkway |
|
47 | + * |
|
48 | + * @param string $buildingNumber |
|
49 | + * @return AddressInterface |
|
50 | + */ |
|
51 | 51 | public function setBuildingNumber($buildingNumber); |
52 | 52 | public function getBuildingNumber(); |
53 | 53 | |
54 | - /** |
|
55 | - * Two-letter codes from the ISO 3166 standard as implemented by The Internet Assigned |
|
56 | - * Numbers Authority. |
|
57 | - * |
|
58 | - * @param string $postalCode {'AC'|'AD'|'AE'|'AF'|'AG'|'AI'|'AL'|'AM'|'AN'|'AO'|'AQ'|'AR'|'AS'|'AT'|'AU'|'AW'|'AX'|'AZ'|'BA'|'BB'|'BD'|'BE'|'BF'|'BG'|'BH'|'BI'|'BJ'|'BL'|'BM'|'BN'|'BO'|'BR'|'BS'|'BT'|'BV'|'BW'|'BY'|'BZ'|'CA'|'CC'|'CD'|'CF'|'CG'|'CH'|'CI'|'CK'|'CL'|'CM'|'CN'|'CO'|'CR'|'CU'|'CV'|'CX'|'CY'|'CZ'|'DE'|'DJ'|'DK'|'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|'QA'|'RE'|'RO'|'RS'|'RU'|'RW'|'SA'|'SB'|'SC'|'SD'|'SE'|'SG'|'SH'|'SI'|'SJ'|'SK'|'SL'|'SM'|'SN'|'SO'|'SR'|'ST'|'SU'|'SV'|'SY'|'SZ'|'TC'|'TD'|'TF'|'TG'|'TH'|'TJ'|'TK'|'TL'|'TM'|'TN'|'TO'|'TP'|'TR'|'TT'|'TV'|'TW'|'TZ'|'UA'|'UG'|'UK'|'UM'|'US'|'UY'|'UZ'|'VA'|'VC'|'VE'|'VG'|'VI'|'VN'|'VU'|'WF'|'WS'|'YE'|'YT'|'YU'|'ZA'|'ZM'|'ZW'} |
|
59 | + * @return AddressInterface |
|
60 | + */ |
|
61 | 61 | public function setCountryCode($countryCode); |
62 | 62 | public function getCountryCode(); |
63 | 63 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * Create the Json Entity Hydrator |
22 | 22 | * |
23 | 23 | * @param ServiceLocatorInterface $serviceLocator |
24 | - * @return JsonEntityHydrator |
|
24 | + * @return EntityHydrator |
|
25 | 25 | */ |
26 | 26 | public function createService(ServiceLocatorInterface $serviceLocator) |
27 | 27 | { |
@@ -73,7 +73,7 @@ |
||
73 | 73 | * |
74 | 74 | * Proxies to {@link render()}. |
75 | 75 | * |
76 | - * @param null|ElementInterface $element |
|
76 | + * @param null|ElementInterface $elements |
|
77 | 77 | * @param null|string $labelPosition |
78 | 78 | * @param bool $renderErrors |
79 | 79 | * @return string|FormRow |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | |
64 | 64 | return sprintf( |
65 | - '<div class="controls controls-row ' . $form_row_class . '">%s%s</div>', |
|
65 | + '<div class="controls controls-row '.$form_row_class.'">%s%s</div>', |
|
66 | 66 | $labelMarkup, |
67 | 67 | $markups |
68 | 68 | ); |
@@ -26,7 +26,6 @@ |
||
26 | 26 | * Attach to an event manager |
27 | 27 | * |
28 | 28 | * @param EventManagerInterface $events |
29 | - * @param integer $priority |
|
30 | 29 | */ |
31 | 30 | public function attach(EventManagerInterface $events) |
32 | 31 | { |
@@ -77,7 +77,7 @@ |
||
77 | 77 | } |
78 | 78 | $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver'); |
79 | 79 | |
80 | - $template = $viewModel->getTemplate() . '.ajax'; |
|
80 | + $template = $viewModel->getTemplate().'.ajax'; |
|
81 | 81 | if ($resolver->resolve($template)) { |
82 | 82 | $viewModel->setTemplate($template); |
83 | 83 | } else { |