@@ -26,7 +26,7 @@ |
||
26 | 26 | throw new \InvalidArgumentException( |
27 | 27 | sprintf( |
28 | 28 | 'Expected $options to be an array or \Traversable, but received %s', |
29 | - (is_object($options) ? 'instance of ' . get_class($options) : 'skalar') |
|
29 | + (is_object($options) ? 'instance of '.get_class($options) : 'skalar') |
|
30 | 30 | ) |
31 | 31 | ); |
32 | 32 | } |
@@ -53,10 +53,10 @@ |
||
53 | 53 | |
54 | 54 | if ($emailOrAddressOrList instanceOf UserInterface) { |
55 | 55 | parent::updateAddressList( |
56 | - $addressList, |
|
57 | - $emailOrAddressOrList->getInfo()->getEmail(), |
|
58 | - $emailOrAddressOrList->getInfo()->getDisplayName(false), |
|
59 | - $callingMethod |
|
56 | + $addressList, |
|
57 | + $emailOrAddressOrList->getInfo()->getEmail(), |
|
58 | + $emailOrAddressOrList->getInfo()->getDisplayName(false), |
|
59 | + $callingMethod |
|
60 | 60 | ); |
61 | 61 | return; |
62 | 62 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $recipients->add($match[1]); |
70 | 70 | } |
71 | 71 | } else { |
72 | - trigger_error('invalid address format ("' . $recipient . '") in mails.develop.override_recipient', E_USER_WARNING); |
|
72 | + trigger_error('invalid address format ("'.$recipient.'") in mails.develop.override_recipient', E_USER_WARNING); |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | return $recipients; |
@@ -16,6 +16,9 @@ discard block |
||
16 | 16 | |
17 | 17 | class MailServiceConfig extends Config |
18 | 18 | { |
19 | + /** |
|
20 | + * @return \Zend\Mail\Transport\TransportInterface |
|
21 | + */ |
|
19 | 22 | public function getTransport() |
20 | 23 | { |
21 | 24 | return isset($this->config['transport']) |
@@ -40,6 +43,9 @@ discard block |
||
40 | 43 | return null; |
41 | 44 | } |
42 | 45 | |
46 | + /** |
|
47 | + * @return string |
|
48 | + */ |
|
43 | 49 | public function getMailer() |
44 | 50 | { |
45 | 51 | return isset($this->data['mailer']) |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function getUri() |
31 | 31 | { |
32 | - return '/file/Auth.UserImage/' . $this->id; |
|
32 | + return '/file/Auth.UserImage/'.$this->id; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | public function filter($value) |
11 | 11 | { |
12 | - $weird = sha1(md5($value) . md5(strrev($value))); |
|
12 | + $weird = sha1(md5($value).md5(strrev($value))); |
|
13 | 13 | return $weird; |
14 | 14 | } |
15 | 15 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | public function getId() |
74 | 74 | { |
75 | 75 | if (!$this->id) { |
76 | - $this->setId('token:' . $this->getToken()); |
|
76 | + $this->setId('token:'.$this->getToken()); |
|
77 | 77 | } |
78 | 78 | return $this->id; |
79 | 79 | } |
@@ -97,7 +97,7 @@ |
||
97 | 97 | |
98 | 98 | public function getPermissionsResourceId() |
99 | 99 | { |
100 | - return 'group:' . $this->getId(); |
|
100 | + return 'group:'.$this->getId(); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | /** |
@@ -36,10 +36,10 @@ discard block |
||
36 | 36 | { |
37 | 37 | $return = array(); |
38 | 38 | if (isset($data['start-date'])) { |
39 | - $return['startDate'] = $data['start-date']['year'] . '-' . $data['start-date']['month'] . '-' . $data['start-date']['day']; |
|
39 | + $return['startDate'] = $data['start-date']['year'].'-'.$data['start-date']['month'].'-'.$data['start-date']['day']; |
|
40 | 40 | } |
41 | 41 | if (isset($data['end-date'])) { |
42 | - $return['endDate'] = $data['end-date']['year'] . '-' . $data['end-date']['month'] . '-' . $data['end-date']['day']; |
|
42 | + $return['endDate'] = $data['end-date']['year'].'-'.$data['end-date']['month'].'-'.$data['end-date']['day']; |
|
43 | 43 | } |
44 | 44 | if (isset($data['school-name'])) { |
45 | 45 | $return['organizationName'] = $data['school-name']; |
@@ -56,10 +56,10 @@ discard block |
||
56 | 56 | $data = $data['positions'][0]; |
57 | 57 | |
58 | 58 | if (isset($data['start-date'])) { |
59 | - $return['startDate'] = $data['start-date']['year'] . '-' . $data['start-date']['month'] . '-' . $data['start-date']['day']; |
|
59 | + $return['startDate'] = $data['start-date']['year'].'-'.$data['start-date']['month'].'-'.$data['start-date']['day']; |
|
60 | 60 | } |
61 | 61 | if (isset($data['end-date'])) { |
62 | - $return['endDate'] = $data['end-date']['year'] . '-' . $data['end-date']['month'] . '-' . $data['end-date']['day']; |
|
62 | + $return['endDate'] = $data['end-date']['year'].'-'.$data['end-date']['month'].'-'.$data['end-date']['day']; |
|
63 | 63 | } elseif (isset($data['is-current']) && 'true' == $data['is-current']) { |
64 | 64 | $return['currentIndicator'] = true; |
65 | 65 | } |
@@ -223,13 +223,13 @@ discard block |
||
223 | 223 | $collection = new ArrayCollection(); |
224 | 224 | $key = $this->config[$type]['key']; |
225 | 225 | $hydrator = $this->getHydrator($type); |
226 | - $filter = 'filter' . rtrim($type, 's'); |
|
226 | + $filter = 'filter'.rtrim($type, 's'); |
|
227 | 227 | $entity = $this->getEntity($type); |
228 | 228 | $dataArray = $this->getData($key); |
229 | 229 | |
230 | 230 | if ($dataArray) { |
231 | 231 | foreach ($dataArray as $data) { |
232 | - $data = $this->$filter($data); |
|
232 | + $data = $this->$filter($data); |
|
233 | 233 | if (!count($data)) { |
234 | 234 | continue; |
235 | 235 | } |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | { |
285 | 285 | $entity = isset($this->config[$type]['entity']) |
286 | 286 | ? $this->config[$type]['entity'] |
287 | - : '\Cv\Entity\\'. ucfirst(rtrim($type, 's')); |
|
287 | + : '\Cv\Entity\\'.ucfirst(rtrim($type, 's')); |
|
288 | 288 | |
289 | 289 | if (is_string($entity)) { |
290 | 290 | $this->config[$type]['entity'] = $entity = new $entity(); |
@@ -45,6 +45,6 @@ |
||
45 | 45 | if (!$loginSuffixResponseCollection->isEmpty()) { |
46 | 46 | $suffix = $loginSuffixResponseCollection->last(); |
47 | 47 | } |
48 | - return $value . $suffix; |
|
48 | + return $value.$suffix; |
|
49 | 49 | } |
50 | 50 | } |