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N'|'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'|'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 | - * @return AddressInterface |
|
60 | - */ |
|
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'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'|'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 | } |
@@ -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 | ); |
@@ -34,6 +34,9 @@ |
||
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; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | public static function load($directory) |
38 | 38 | { |
39 | - $directory = rtrim($directory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
39 | + $directory = rtrim($directory, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
40 | 40 | $env = getenv('APPLICATION_ENV') ?: 'production'; |
41 | 41 | $pattern = sprintf('%s{,*.}{config,%s}.php', $directory, $env); |
42 | 42 | $config = array(); |
@@ -108,6 +108,9 @@ |
||
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, '\\')) { |
@@ -98,7 +98,7 @@ |
||
98 | 98 | $repository = $dm->getRepository($repositoryName); |
99 | 99 | |
100 | 100 | $criteria = array( |
101 | - 'permissions.assigned.' . $resourceId => array( |
|
101 | + 'permissions.assigned.'.$resourceId => array( |
|
102 | 102 | '$exists' => true |
103 | 103 | ) |
104 | 104 | ); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | /** |
33 | 33 | * @param mixed $value |
34 | - * @param null $queryBuilder |
|
34 | + * @param \Doctrine\ODM\MongoDB\Query\Builder $queryBuilder |
|
35 | 35 | * @return mixed |
36 | 36 | * @throws \DomainException |
37 | 37 | */ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | if ($this->repositoryName) { |
45 | 45 | $nameParts = explode('/', $this->repositoryName); |
46 | - $entityClass = $nameParts[0] . '\\Entity\\' . $nameParts[1]; |
|
46 | + $entityClass = $nameParts[0].'\\Entity\\'.$nameParts[1]; |
|
47 | 47 | $queryBuilder->find($entityClass); |
48 | 48 | } |
49 | 49 | return $this->createQuery($value, $queryBuilder); |
@@ -33,6 +33,9 @@ |
||
33 | 33 | return $this; |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $name |
|
38 | + */ |
|
36 | 39 | public function setNamespace($name) |
37 | 40 | { |
38 | 41 | $this->namespace = $name; |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | $config = $this->serviceManager->get('Config'); |
90 | 90 | $appConfig = $this->serviceManager->get('ApplicationConfig'); |
91 | 91 | foreach ($appConfig['modules'] as $module) { |
92 | - $this->config[$module] = array_key_exists($module, $config)?$config[$module]:array(); |
|
92 | + $this->config[$module] = array_key_exists($module, $config) ? $config[$module] : array(); |
|
93 | 93 | } |
94 | 94 | } |
95 | 95 | if (isset($namespace)) { |
96 | - return array_key_exists($namespace, $this->config)?$this->config[$namespace]: array(); |
|
96 | + return array_key_exists($namespace, $this->config) ? $this->config[$namespace] : array(); |
|
97 | 97 | } |
98 | 98 | return $this->config; |
99 | 99 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | if (!empty($this->map[$key])) { |
108 | 108 | $module = $this->getNamespace(); |
109 | - return isset($this->map[$key][$module])?$this->map[$key][$module]:array(); |
|
109 | + return isset($this->map[$key][$module]) ? $this->map[$key][$module] : array(); |
|
110 | 110 | } |
111 | 111 | return array(); |
112 | 112 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | /** |
90 | 90 | * @throws \RuntimeException |
91 | - * @return mixed |
|
91 | + * @return ZendClient |
|
92 | 92 | */ |
93 | 93 | protected function authetificate() |
94 | 94 | { |
@@ -92,8 +92,8 @@ |
||
92 | 92 | */ |
93 | 93 | protected function authetificate() |
94 | 94 | { |
95 | - $auth = array_key_exists('user', $this->config)?$this->config['user']:''; |
|
96 | - $pass = array_key_exists('pass', $this->config)?$this->config['pass']:''; |
|
95 | + $auth = array_key_exists('user', $this->config) ? $this->config['user'] : ''; |
|
96 | + $pass = array_key_exists('pass', $this->config) ? $this->config['pass'] : ''; |
|
97 | 97 | return $this->setAuth($auth, $pass); |
98 | 98 | } |
99 | 99 |
@@ -160,7 +160,7 @@ |
||
160 | 160 | /** |
161 | 161 | * Starts content capturing. |
162 | 162 | * |
163 | - * @param string|array $type |
|
163 | + * @param string|null $type |
|
164 | 164 | * @param array $options see {@łink render()} for information. |
165 | 165 | * |
166 | 166 | * @return self |
@@ -52,7 +52,6 @@ discard block |
||
52 | 52 | * @method warning() |
53 | 53 | * @method success() |
54 | 54 | * @method danger() |
55 | - |
|
56 | 55 | * |
57 | 56 | *@author Mathias Gelhausen <[email protected]> |
58 | 57 | */ |
@@ -149,7 +148,7 @@ discard block |
||
149 | 148 | ) { |
150 | 149 | $class .= ' alert-dismissable'; |
151 | 150 | $content = '<button type="button" class="close" data-dismiss="alert">×</button>' |
152 | - . '<span class="notification-content">' . $content . '</span>'; |
|
151 | + . '<span class="notification-content">' . $content . '</span>'; |
|
153 | 152 | } |
154 | 153 | |
155 | 154 | $target = array_key_exists('target', $options)?' target="' . $options['target'] . '"':''; |
@@ -142,18 +142,18 @@ discard block |
||
142 | 142 | return $this->start($type, $options); |
143 | 143 | } |
144 | 144 | |
145 | - $id = isset($options['id']) ? ' id="' . $options['id'] . '"' : ''; |
|
146 | - $class = isset($options['class']) ? ' ' . $options['class'] : ''; |
|
145 | + $id = isset($options['id']) ? ' id="'.$options['id'].'"' : ''; |
|
146 | + $class = isset($options['class']) ? ' '.$options['class'] : ''; |
|
147 | 147 | if ((isset($options['dismissable']) && $options['dismissable']) |
148 | 148 | || !isset($options['dismissable']) |
149 | 149 | ) { |
150 | 150 | $class .= ' alert-dismissable'; |
151 | 151 | $content = '<button type="button" class="close" data-dismiss="alert">×</button>' |
152 | - . '<span class="notification-content">' . $content . '</span>'; |
|
152 | + . '<span class="notification-content">'.$content.'</span>'; |
|
153 | 153 | } |
154 | 154 | |
155 | - $target = array_key_exists('target', $options)?' target="' . $options['target'] . '"':''; |
|
156 | - $markup = '<div ' . $id . ' class="alert alert-' . $type . $class . '" ' . $target . '>' . $content . '</div>' . PHP_EOL; |
|
155 | + $target = array_key_exists('target', $options) ? ' target="'.$options['target'].'"' : ''; |
|
156 | + $markup = '<div '.$id.' class="alert alert-'.$type.$class.'" '.$target.'>'.$content.'</div>'.PHP_EOL; |
|
157 | 157 | return $markup; |
158 | 158 | } |
159 | 159 | |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | public function __call($method, $args) |
192 | 192 | { |
193 | 193 | if (!in_array($method, array(self::TYPE_INFO, self::TYPE_DANGER, self::TYPE_SUCCESS, self::TYPE_WARNING))) { |
194 | - throw new \BadMethodCallException('Unknown method: ' . $method); |
|
194 | + throw new \BadMethodCallException('Unknown method: '.$method); |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | // We know that $method is one of the valid types, so we can safely use it as "type"-parameter for the |
@@ -53,7 +53,6 @@ |
||
53 | 53 | * |
54 | 54 | * @see \Zend\I18n\View\Helper\DateFormat::__invoke() |
55 | 55 | * |
56 | - * @param \DateTime $data|string |
|
57 | 56 | * @param string $dateType |
58 | 57 | * @return string |
59 | 58 | */ |
@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | const FULL = 'full'; |
42 | 42 | const LONG = 'long'; |
43 | - const MEDIUM= 'medium'; |
|
43 | + const MEDIUM = 'medium'; |
|
44 | 44 | const SHORT = 'short'; |
45 | 45 | const NONE = 'none'; |
46 | 46 |