@@ -16,17 +16,17 @@ |
||
| 16 | 16 | $modules = array('Install'); |
| 17 | 17 | } else { |
| 18 | 18 | $modules = array( |
| 19 | - 'DoctrineModule', |
|
| 20 | - 'DoctrineMongoODMModule', |
|
| 21 | - 'Core', |
|
| 22 | - 'Auth', |
|
| 23 | - 'Cv', |
|
| 24 | - 'Applications', |
|
| 25 | - 'Jobs', |
|
| 26 | - 'Settings', |
|
| 27 | - 'Pdf', |
|
| 28 | - 'Geo', |
|
| 29 | - 'Organizations', |
|
| 19 | + 'DoctrineModule', |
|
| 20 | + 'DoctrineMongoODMModule', |
|
| 21 | + 'Core', |
|
| 22 | + 'Auth', |
|
| 23 | + 'Cv', |
|
| 24 | + 'Applications', |
|
| 25 | + 'Jobs', |
|
| 26 | + 'Settings', |
|
| 27 | + 'Pdf', |
|
| 28 | + 'Geo', |
|
| 29 | + 'Organizations', |
|
| 30 | 30 | ); |
| 31 | 31 | |
| 32 | 32 | if (!isset($allModules)) { |
@@ -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( |
@@ -57,9 +57,9 @@ discard block |
||
| 57 | 57 | if ($exception instanceof UnauthorizedImageAccessException) { |
| 58 | 58 | $image = __DIR__ . '/../../../../../public/images/unauthorized-access.png'; |
| 59 | 59 | $response->setStatusCode(403) |
| 60 | - ->setContent(file_get_contents($image)) |
|
| 61 | - ->getHeaders() |
|
| 62 | - ->addHeaderLine('Content-Type', 'image/png'); |
|
| 60 | + ->setContent(file_get_contents($image)) |
|
| 61 | + ->getHeaders() |
|
| 62 | + ->addHeaderLine('Content-Type', 'image/png'); |
|
| 63 | 63 | $e->stopPropagation(); |
| 64 | 64 | $response->sendHeaders(); |
| 65 | 65 | //echo file_get_contents($image); |
@@ -99,10 +99,10 @@ discard block |
||
| 99 | 99 | $model->setTemplate($this->getExceptionTemplate()); |
| 100 | 100 | $e->setResult($model); |
| 101 | 101 | |
| 102 | - // $statusCode = $response->getStatusCode(); |
|
| 103 | - // if ($statusCode === 200) { |
|
| 102 | + // $statusCode = $response->getStatusCode(); |
|
| 103 | + // if ($statusCode === 200) { |
|
| 104 | 104 | $response->setStatusCode(403); |
| 105 | - // } |
|
| 105 | + // } |
|
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | } |
@@ -13,9 +13,9 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | class mail extends Message implements PluginInterface |
| 15 | 15 | { |
| 16 | - protected $controller; |
|
| 17 | - protected $param; |
|
| 18 | - protected $config; |
|
| 16 | + protected $controller; |
|
| 17 | + protected $param; |
|
| 18 | + protected $config; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Set the current controller instance |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | } elseif (isset($this->config['templateHalf'])) { |
| 142 | 142 | $template = $this->config['templateHalf']; |
| 143 | 143 | } else { |
| 144 | - throw new \InvalidArgumentException('Not template provided for Mail.'); |
|
| 144 | + throw new \InvalidArgumentException('Not template provided for Mail.'); |
|
| 145 | 145 | } |
| 146 | 146 | return $template; |
| 147 | 147 | } |
@@ -154,19 +154,19 @@ discard block |
||
| 154 | 154 | $from = $this->config['from']; |
| 155 | 155 | } else { |
| 156 | 156 | $log->err('A from email address must be provided (Variable $from) in Template: ' . $template); |
| 157 | - throw new \InvalidArgumentException('A from email address must be provided (Variable $from) in Template: ' . $template); |
|
| 157 | + throw new \InvalidArgumentException('A from email address must be provided (Variable $from) in Template: ' . $template); |
|
| 158 | 158 | } |
| 159 | 159 | if (isset($this->config['fromName'])) { |
| 160 | 160 | $fromName = $this->config['fromName']; |
| 161 | 161 | } else { |
| 162 | 162 | $log->err('A from name must be provided (Variable $fromName) in Template: ' . $template); |
| 163 | - throw new \InvalidArgumentException('A from name must be provided (Variable $fromName) in Template: ' . $template); |
|
| 163 | + throw new \InvalidArgumentException('A from name must be provided (Variable $fromName) in Template: ' . $template); |
|
| 164 | 164 | } |
| 165 | 165 | if (isset($this->config['subject'])) { |
| 166 | 166 | $subject = $this->config['subject']; |
| 167 | 167 | } else { |
| 168 | 168 | $log->err('A subject must be provided (Variable $subject) in Template: ' . $template); |
| 169 | - throw new \InvalidArgumentException('A subject must be provided (Variable $subject) in Template: ' . $template); |
|
| 169 | + throw new \InvalidArgumentException('A subject must be provided (Variable $subject) in Template: ' . $template); |
|
| 170 | 170 | } |
| 171 | 171 | $this->setFrom($from, $fromName); |
| 172 | 172 | $this->setSubject($subject); |
@@ -118,9 +118,9 @@ |
||
| 118 | 118 | $entity = $this->getTargetEntity(); |
| 119 | 119 | |
| 120 | 120 | $entity->setUser($value['user']) |
| 121 | - ->setName($value['name']) |
|
| 122 | - ->setType($value['type']) |
|
| 123 | - ->setFile($value['file']); |
|
| 121 | + ->setName($value['name']) |
|
| 122 | + ->setType($value['type']) |
|
| 123 | + ->setFile($value['file']); |
|
| 124 | 124 | |
| 125 | 125 | return $entity; |
| 126 | 126 | } |
@@ -31,9 +31,9 @@ |
||
| 31 | 31 | protected $id; |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * @var EntityInterface |
|
| 35 | - * @ODM\EmbedOne |
|
| 36 | - * @ODM\Index |
|
| 34 | + * @var EntityInterface |
|
| 35 | + * @ODM\EmbedOne |
|
| 36 | + * @ODM\Index |
|
| 37 | 37 | */ |
| 38 | 38 | protected $entity; |
| 39 | 39 | |