@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | public function __call($method, $args) |
215 | 215 | { |
216 | 216 | if (0 !== strpos($method, 'do')) { |
217 | - throw new \BadMethodCallException('Unknown method "' . $method . '"'); |
|
217 | + throw new \BadMethodCallException('Unknown method "'.$method.'"'); |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | $name = substr($method, 2); |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | } |
249 | 249 | |
250 | 250 | if ($method && method_exists($listener, $method)) { |
251 | - return call_user_func_array([ $listener, $method ], $args); |
|
251 | + return call_user_func_array([$listener, $method], $args); |
|
252 | 252 | } |
253 | 253 | |
254 | 254 | if (is_callable($listener)) { |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | |
258 | 258 | throw new \UnexpectedValueException(sprintf( |
259 | 259 | 'Deferred listener %s%s is not callable.', |
260 | - get_class($listener), $method ? ' has no method "' . $method . '" and ' : '' |
|
260 | + get_class($listener), $method ? ' has no method "'.$method.'" and ' : '' |
|
261 | 261 | )); |
262 | 262 | } |
263 | 263 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function __construct(LoginFilterService $loginFilter) |
33 | 33 | { |
34 | - $this->loginFilter = $loginFilter;; |
|
34 | + $this->loginFilter = $loginFilter; ; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -57,7 +57,7 @@ |
||
57 | 57 | protected function filterArrayStrings($array, $search, $replace) |
58 | 58 | { |
59 | 59 | $return = array(); |
60 | - foreach ((array)$array as $key => $value) { |
|
60 | + foreach ((array) $array as $key => $value) { |
|
61 | 61 | $key = str_replace($search, $replace, $key); |
62 | 62 | $value = is_array($value) |
63 | 63 | ? $this->filterArrayStrings($value, $search, $replace) |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function getUri() |
35 | 35 | { |
36 | - return "/file/Cv.ContactImage/" . $this->id . "/" .urlencode($this->name); |
|
36 | + return "/file/Cv.ContactImage/".$this->id."/".urlencode($this->name); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -80,12 +80,12 @@ |
||
80 | 80 | $collection[] = $this->newEntry; |
81 | 81 | $form = $this->buildForm($key, $this->newEntry); |
82 | 82 | $eventManager = $form->getEventManager(); |
83 | - $eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) { |
|
83 | + $eventManager->attach(CoreForm::EVENT_IS_VALID, function(Event $event) use ($collection) { |
|
84 | 84 | if (!$event->getParam('isValid')) { |
85 | 85 | $collection->removeElement($this->newEntry); |
86 | 86 | } |
87 | 87 | }); |
88 | - $eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) { |
|
88 | + $eventManager->attach(CoreForm::EVENT_PREPARE, function(Event $event) use ($collection) { |
|
89 | 89 | $this->setupForm($event->getTarget(), $collection->indexOf($this->newEntry)); |
90 | 90 | }); |
91 | 91 |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function getKeys() |
118 | 118 | { |
119 | - return $this->collection->map(function ($element) { |
|
119 | + return $this->collection->map(function($element) { |
|
120 | 120 | return $this->getKey($element); |
121 | 121 | })->toArray(); |
122 | 122 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | */ |
310 | 310 | public function offsetExists($offset) |
311 | 311 | { |
312 | - return (bool)$this->getElement($offset); |
|
312 | + return (bool) $this->getElement($offset); |
|
313 | 313 | } |
314 | 314 | |
315 | 315 | /** |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | { |
360 | 360 | if (!isset($this->identityExtractor)) { |
361 | 361 | // default identity extractor |
362 | - $this->identityExtractor = function ($element) { |
|
362 | + $this->identityExtractor = function($element) { |
|
363 | 363 | if (!is_callable([$element, 'getId'])) { |
364 | 364 | throw new \LogicException('$element must have getId() method'); |
365 | 365 | } |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | */ |
387 | 387 | protected function getElement($key) |
388 | 388 | { |
389 | - return $this->collection->filter(function ($element) use ($key) { |
|
389 | + return $this->collection->filter(function($element) use ($key) { |
|
390 | 390 | return $this->getKey($element) == $key; |
391 | 391 | })->first(); |
392 | 392 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | public function __construct($status = self::NONPUBLIC) |
48 | 48 | { |
49 | 49 | if (!isset(static::$orderMap[$status])) { |
50 | - throw new \DomainException('Unknown status: ' . $status); |
|
50 | + throw new \DomainException('Unknown status: '.$status); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | $this->name = $status; |
@@ -16,9 +16,9 @@ |
||
16 | 16 | interface StatusInterface extends EntityInterface |
17 | 17 | { |
18 | 18 | |
19 | - const NONPUBLIC = /*@translate*/ 'private'; |
|
19 | + const NONPUBLIC = /*@translate*/ 'private'; |
|
20 | 20 | |
21 | - const PUBLIC_TO_ALL = /*@translate*/ 'public to all'; |
|
21 | + const PUBLIC_TO_ALL = /*@translate*/ 'public to all'; |
|
22 | 22 | |
23 | 23 | public function __construct($status = self::NONPUBLIC); |
24 | 24 |
@@ -125,16 +125,16 @@ |
||
125 | 125 | |
126 | 126 | public function setParams($params) |
127 | 127 | { |
128 | - if(is_array($params)){ |
|
129 | - if(isset($params['paginatorParams'])){ |
|
128 | + if (is_array($params)) { |
|
129 | + if (isset($params['paginatorParams'])) { |
|
130 | 130 | $this->setPaginatorParams($params['paginatorParams']); |
131 | 131 | unset($params['paginatorParams']); |
132 | 132 | } |
133 | - if(isset($params['paginators'])){ |
|
133 | + if (isset($params['paginators'])) { |
|
134 | 134 | $this->setPaginators($params['paginators']); |
135 | 135 | unset($params['paginators']); |
136 | 136 | } |
137 | - if(isset($params['paginatorName'])){ |
|
137 | + if (isset($params['paginatorName'])) { |
|
138 | 138 | $this->setPaginatorName($params['paginatorName']); |
139 | 139 | unset($params['paginatorName']); |
140 | 140 | } |