@@ -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 | |