@@ -40,8 +40,7 @@ |
||
| 40 | 40 | if (strpos($addModule, '-') === 0) { |
| 41 | 41 | $remove = substr($addModule,1); |
| 42 | 42 | $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); }); |
| 43 | - } |
|
| 44 | - else { |
|
| 43 | + } else { |
|
| 45 | 44 | if (!in_array($addModule, $modules)) { |
| 46 | 45 | $modules[] = $addModule; |
| 47 | 46 | } |
@@ -197,10 +197,10 @@ |
||
| 197 | 197 | public function setOption($name,$value){ |
| 198 | 198 | if (array_key_exists($name, $this->options)) { |
| 199 | 199 | $this->options[$name] = $value; |
| 200 | - }elseif ('language' == $name or 'language_url' == $name ) { |
|
| 200 | + } elseif ('language' == $name or 'language_url' == $name ) { |
|
| 201 | 201 | $this->options[$name] = $value; |
| 202 | 202 | |
| 203 | - }else{ |
|
| 203 | + } else{ |
|
| 204 | 204 | throw new \InvalidArgumentException('Unknown Option ' . $name . ' in ' . __FILE__ . ' Line ' . __LINE__ ); |
| 205 | 205 | } |
| 206 | 206 | } |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | if ($this->value['params']['status'] != 'all'){ |
| 63 | 63 | $queryBuilder->field('status.name')->equals($this->value['params']['status']); |
| 64 | 64 | } |
| 65 | - }else{ |
|
| 65 | + } else{ |
|
| 66 | 66 | $queryBuilder->field('status.name')->equals(Status::CREATED); |
| 67 | 67 | } |
| 68 | 68 | |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | if (method_exists($events, 'setEventPrototype')) { |
| 55 | 55 | $event = $serviceLocator->has($config['event']) ? $serviceLocator->get($config['event']) : new $config['event'](); |
| 56 | 56 | $events->setEventPrototype($event); |
| 57 | - } |
|
| 58 | - else { |
|
| 57 | + } else { |
|
| 59 | 58 | $events->setEventClass($config['event']); |
| 60 | 59 | } |
| 61 | 60 | |
@@ -124,9 +124,9 @@ |
||
| 124 | 124 | public function getOrganizationAdmin(){ |
| 125 | 125 | if ($this->getRecruiter()->getOrganization()->isOwner()){ |
| 126 | 126 | return $this->getRecruiter(); |
| 127 | - }elseif($this->getRecruiter()->getOrganization()->hasAssociation()) { |
|
| 127 | + } elseif($this->getRecruiter()->getOrganization()->hasAssociation()) { |
|
| 128 | 128 | return $this->getRecruiter()->getOrganization()->getOrganization()->getUser(); |
| 129 | - }else{ |
|
| 129 | + } else{ |
|
| 130 | 130 | return false; |
| 131 | 131 | } |
| 132 | 132 | } |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | */ |
| 78 | 78 | if (isset($this->value['params']['by']) && 'me' == $this->value['params']['by']) { |
| 79 | 79 | $queryBuilder->field('user')->equals($this->user->id); |
| 80 | - }else{ |
|
| 80 | + } else{ |
|
| 81 | 81 | $queryBuilder->field('permissions.view')->equals($this->user->id); |
| 82 | 82 | } |
| 83 | 83 | if ( |