| @@ -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 | } | 
| @@ -35,10 +35,10 @@ | ||
| 35 | 35 | 'applications list' => 'list view scripts.', | 
| 36 | 36 | 'applications reset-files-permissions [--filter=]' => 'Resets (means: Set again) the permissions of attachments and contact images', | 
| 37 | 37 |              array('--filter=JSON', "available keys:\n" | 
| 38 | - . "- before ISODate only applications before the given date\n" | |
| 39 | - . "- after ISODate only applications after the given date\n" | |
| 40 | - . "- id String Mongo ID of the application\n" | |
| 41 | - . "- isDraft Boolean "), | |
| 38 | + . "- before ISODate only applications before the given date\n" | |
| 39 | + . "- after ISODate only applications after the given date\n" | |
| 40 | + . "- id String Mongo ID of the application\n" | |
| 41 | + . "- isDraft Boolean "), | |
| 42 | 42 | ); | 
| 43 | 43 | } | 
| 44 | 44 | |
| @@ -157,7 +157,7 @@ discard block | ||
| 157 | 157 | |
| 158 | 158 | $table = new Table( | 
| 159 | 159 |              array('columnWidths' => array(40, 40, 40), | 
| 160 | - 'decorator' => 'ascii') | |
| 160 | + 'decorator' => 'ascii') | |
| 161 | 161 | ); | 
| 162 | 162 | |
| 163 | 163 |          $table->appendRow(array('Module', 'Name', 'Description')); | 
| @@ -238,8 +238,8 @@ discard block | ||
| 238 | 238 | $attachments = $app->getAttachments(); | 
| 239 | 239 |              foreach ($attachments as $attachment) { | 
| 240 | 240 | $attachment->getPermissions() | 
| 241 | - ->clear() | |
| 242 | - ->inherit($permissions); | |
| 241 | + ->clear() | |
| 242 | + ->inherit($permissions); | |
| 243 | 243 | } | 
| 244 | 244 | $contact = $app->getContact(); | 
| 245 | 245 |              if ($contact) { | 
| @@ -247,8 +247,8 @@ discard block | ||
| 247 | 247 | |
| 248 | 248 |                  if ($image) { | 
| 249 | 249 | $image->getPermissions() | 
| 250 | - ->clear() | |
| 251 | - ->inherit($permissions); | |
| 250 | + ->clear() | |
| 251 | + ->inherit($permissions); | |
| 252 | 252 | } | 
| 253 | 253 | } | 
| 254 | 254 | } | 
| @@ -97,9 +97,9 @@ | ||
| 97 | 97 | |
| 98 | 98 | $event = new AssertionEvent(null, $this); | 
| 99 | 99 | $event->setAcl($acl) | 
| 100 | - ->setRole($role) | |
| 101 | - ->setResource($resource) | |
| 102 | - ->setPrivilege($privilege); | |
| 100 | + ->setRole($role) | |
| 101 | + ->setResource($resource) | |
| 102 | + ->setPrivilege($privilege); | |
| 103 | 103 | |
| 104 | 104 | $events = $this->getEventManager(); | 
| 105 | 105 | |
| @@ -20,8 +20,8 @@ | ||
| 20 | 20 | public function init() | 
| 21 | 21 |      { | 
| 22 | 22 |          $this->setName('base'); | 
| 23 | - //->setLabel( /* @translate */ 'General'); | |
| 24 | - //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); | |
| 23 | + //->setLabel( /* @translate */ 'General'); | |
| 24 | + //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); | |
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | $this->add( | 
| @@ -66,7 +66,7 @@ discard block | ||
| 66 | 66 | * | 
| 67 | 67 | * @param EventManagerInterface $events | 
| 68 | 68 | * @param integer $priority | 
| 69 | - */ | |
| 69 | + */ | |
| 70 | 70 | public function attach(EventManagerInterface $events, $priority = 1) | 
| 71 | 71 |      { | 
| 72 | 72 | $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, array($this, 'handleError'), $priority); | 
| @@ -147,19 +147,19 @@ discard block | ||
| 147 | 147 | $error = error_get_last(); | 
| 148 | 148 | |
| 149 | 149 |          if ($error) { | 
| 150 | - $this->log->err( | |
| 151 | - $error['message'], | |
| 152 | - array( | |
| 153 | - 'errno' => $error['type'], | |
| 154 | - 'file' => $error['file'], | |
| 155 | - 'line' => $error['line'] | |
| 156 | - ) | |
| 157 | - ); | |
| 158 | - if ($this->redirect && | |
| 150 | + $this->log->err( | |
| 151 | + $error['message'], | |
| 152 | + array( | |
| 153 | + 'errno' => $error['type'], | |
| 154 | + 'file' => $error['file'], | |
| 155 | + 'line' => $error['line'] | |
| 156 | + ) | |
| 157 | + ); | |
| 158 | + if ($this->redirect && | |
| 159 | 159 | ($error['type'] & (E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR)) | 
| 160 | -             ) { | |
| 161 | -                 if (is_callable($this->redirect)) { | |
| 162 | - call_user_func($this->redirect); | |
| 160 | +                ) { | |
| 161 | +                    if (is_callable($this->redirect)) { | |
| 162 | + call_user_func($this->redirect); | |
| 163 | 163 | } | 
| 164 | 164 | } | 
| 165 | 165 | } | 
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | |
| 9 | 9 | class StringListener implements ListenerAggregateInterface | 
| 10 | 10 |  { | 
| 11 | - protected $listeners = array(); | |
| 11 | + protected $listeners = array(); | |
| 12 | 12 | |
| 13 | 13 | /** | 
| 14 | 14 | * Attach to an event manager | 
| @@ -60,7 +60,7 @@ | ||
| 60 | 60 |          foreach ($this->fileNames as $obj) { | 
| 61 | 61 |              if (is_string($obj)) { | 
| 62 | 62 |                  if (array_key_exists($obj, $this->fileObjects)) { | 
| 63 | - $erg[] = $this->fileObjects[$obj]; | |
| 63 | + $erg[] = $this->fileObjects[$obj]; | |
| 64 | 64 | } | 
| 65 | 65 |              } else { | 
| 66 | 66 | $erg[] = $obj; | 
| @@ -26,8 +26,8 @@ | ||
| 26 | 26 |  { | 
| 27 | 27 | |
| 28 | 28 | protected $identifiers = array( | 
| 29 | - 'Jobs/Acl/Assertions', | |
| 30 | - 'Jobs/Acl/Assertion/Create', | |
| 29 | + 'Jobs/Acl/Assertions', | |
| 30 | + 'Jobs/Acl/Assertion/Create', | |
| 31 | 31 | ); | 
| 32 | 32 | |
| 33 | 33 | protected function preAssert( |