@@ -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 | } |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | */ |
| 234 | 234 | public function getParent($returnSelf = false) |
| 235 | 235 | { |
| 236 | - return $this->parent ? : ($returnSelf ? $this : null); |
|
| 236 | + return $this->parent ?: ($returnSelf ? $this : null); |
|
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | /** |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | */ |
| 466 | 466 | public function getPermissionsResourceId() |
| 467 | 467 | { |
| 468 | - return 'organization:' . $this->getId(); |
|
| 468 | + return 'organization:'.$this->getId(); |
|
| 469 | 469 | } |
| 470 | 470 | |
| 471 | 471 | /** |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * |
| 35 | 35 | * @var array $attachmentsMimeType |
| 36 | 36 | */ |
| 37 | - protected $attachmentsMimeType = array('image','applications/pdf', |
|
| 37 | + protected $attachmentsMimeType = array('image', 'applications/pdf', |
|
| 38 | 38 | 'application/x-pdf', |
| 39 | 39 | 'application/acrobat', |
| 40 | 40 | 'applications/vnd.pdf', |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | $hidden = ''; |
| 71 | 71 | $displayNames = array(); |
| 72 | 72 | foreach ($elements as $element) { |
| 73 | - $hidden .= '<input type="hidden" name="elements[]" value="' . $element . '">'; |
|
| 73 | + $hidden .= '<input type="hidden" name="elements[]" value="'.$element.'">'; |
|
| 74 | 74 | $application = $repository->find($element); |
| 75 | 75 | $isAllowed = $this->acl()->test($application, 'change'); |
| 76 | 76 | if ($isAllowed) { |
@@ -89,12 +89,12 @@ discard block |
||
| 89 | 89 | array( |
| 90 | 90 | 'ok' => true, |
| 91 | 91 | 'header' => $translator->translate('reject the applicants'), |
| 92 | - 'content' => '<form action="' . $actionUrl . '">' . |
|
| 93 | - $hidden . |
|
| 92 | + 'content' => '<form action="'.$actionUrl.'">'. |
|
| 93 | + $hidden. |
|
| 94 | 94 | '<input class=" form-control " name="mail-subject" value="' |
| 95 | - . $mailSubject . '"><br /><br />' . |
|
| 95 | + . $mailSubject.'"><br /><br />'. |
|
| 96 | 96 | '<textarea class=" form-control " id="mail-content" name="mail-content">' |
| 97 | - . $mailText . '</textarea></form>' |
|
| 97 | + . $mailText.'</textarea></form>' |
|
| 98 | 98 | ) |
| 99 | 99 | ); |
| 100 | 100 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | $repositoryService->store($application); |
| 143 | 143 | unset($mail); |
| 144 | 144 | } |
| 145 | - return new JsonModel(array('ok' => true, )); |
|
| 145 | + return new JsonModel(array('ok' => true,)); |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | public function moveAction() |
| 154 | 154 | { |
| 155 | - $ids = (array)$this->params()->fromPost('ids'); |
|
| 155 | + $ids = (array) $this->params()->fromPost('ids'); |
|
| 156 | 156 | $moved = 0; |
| 157 | 157 | |
| 158 | 158 | if ($ids) { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $name = $this->default; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - if (!isset(static::$orderMap[ $name ])) { |
|
| 85 | + if (!isset(static::$orderMap[$name])) { |
|
| 86 | 86 | throw new \InvalidArgumentException(sprintf( |
| 87 | 87 | 'Unknown status name "%s" for "%s"', |
| 88 | 88 | $name, static::class |
@@ -90,6 +90,6 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | $this->name = $name; |
| 93 | - $this->order = static::$orderMap[ $name ]; |
|
| 93 | + $this->order = static::$orderMap[$name]; |
|
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | \ No newline at end of file |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | protected $targetDocument = Cv::class; |
| 26 | 26 | |
| 27 | - protected $filesProperties = [ 'attachments' ]; |
|
| 27 | + protected $filesProperties = ['attachments']; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | public function getSubscribedEvents() |
| 51 | 51 | { |
| 52 | - return [ Events::onFlush ]; |
|
| 52 | + return [Events::onFlush]; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | $this->add([ |
| 28 | 28 | 'name' => 'endDate', |
| 29 | - 'required' => ! $data['currentIndicator'] |
|
| 29 | + 'required' => !$data['currentIndicator'] |
|
| 30 | 30 | ]); |
| 31 | 31 | |
| 32 | 32 | return parent::setData($data); |