@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $application->changeStatus( |
164 | 164 | $application->getStatus(), |
165 | 165 | sprintf(/*@translate*/ 'Application was read by %s', |
166 | - $this->auth()->getUser()->getInfo()->getDisplayName() |
|
166 | + $this->auth()->getUser()->getInfo()->getDisplayName() |
|
167 | 167 | ) |
168 | 168 | ); |
169 | 169 | } |
@@ -192,8 +192,8 @@ discard block |
||
192 | 192 | $viewModel->setVariables( |
193 | 193 | /*array( |
194 | 194 | 'application' => */$this->builders |
195 | - ->get('JsonApplication') |
|
196 | - ->unbuild($application) |
|
195 | + ->get('JsonApplication') |
|
196 | + ->unbuild($application) |
|
197 | 197 | ); |
198 | 198 | $viewModel->setVariable('isUnread', $applicationIsUnread); |
199 | 199 | $return = $viewModel; |
@@ -358,12 +358,12 @@ discard block |
||
358 | 358 | /* @var ApplicationEvent $event */ |
359 | 359 | $event = $events->getEvent( |
360 | 360 | ApplicationEvent::EVENT_APPLICATION_STATUS_CHANGE, |
361 | - $this, |
|
362 | - [ |
|
363 | - 'application' => $application, |
|
364 | - 'status' => $status, |
|
365 | - 'user' => $this->auth()->getUser(), |
|
366 | - ] |
|
361 | + $this, |
|
362 | + [ |
|
363 | + 'application' => $application, |
|
364 | + 'status' => $status, |
|
365 | + 'user' => $this->auth()->getUser(), |
|
366 | + ] |
|
367 | 367 | ); |
368 | 368 | |
369 | 369 | $event->setIsPostRequest($request->isPost()); |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | $emailAddress = $this->params()->fromQuery('email'); |
413 | 413 | /* @var \Applications\Entity\Application $application */ |
414 | 414 | $application = $this->repositories->get('Applications/Application') |
415 | - ->find($this->params('id')); |
|
415 | + ->find($this->params('id')); |
|
416 | 416 | |
417 | 417 | $this->acl($application, 'forward'); |
418 | 418 |
@@ -137,8 +137,8 @@ |
||
137 | 137 | $application->changeStatus( |
138 | 138 | Status::REJECTED, |
139 | 139 | sprintf( |
140 | - /*@translate */ 'Mail was sent to %s', |
|
141 | - $application->contact->email |
|
140 | + /*@translate */ 'Mail was sent to %s', |
|
141 | + $application->contact->email |
|
142 | 142 | ) |
143 | 143 | ); |
144 | 144 | $repositoryService->store($application); |
@@ -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 | } |
@@ -26,11 +26,11 @@ |
||
26 | 26 | // 'driver' => 'odm_default', |
27 | 27 | // |
28 | 28 | // 'generate_proxies' => true, |
29 | - 'proxy_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Proxy', |
|
29 | + 'proxy_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Proxy', |
|
30 | 30 | // 'proxy_namespace' => 'DoctrineMongoODMModule\Proxy', |
31 | 31 | // |
32 | 32 | // 'generate_hydrators' => true, |
33 | - 'hydrator_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Hydrator', |
|
33 | + 'hydrator_dir' => getcwd().'/var/cache/DoctrineMongoODMModule/Hydrator', |
|
34 | 34 | // 'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator', |
35 | 35 | // |
36 | 36 | // 'default_db' => '', |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'entity' => $snapshot |
125 | 125 | ]); |
126 | 126 | $this->dm->getEventManager() |
127 | - ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs); |
|
127 | + ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs); |
|
128 | 128 | |
129 | 129 | $this->copy($source, $snapshot); |
130 | 130 | |
@@ -200,12 +200,12 @@ discard block |
||
200 | 200 | public function findLatest($sourceId, $isDraft = false) |
201 | 201 | { |
202 | 202 | $entity = $this->createQueryBuilder() |
203 | - ->field('snapshotEntity')->equals(new \MongoId($sourceId)) |
|
204 | - ->field('snapshotMeta.isDraft')->equals($isDraft) |
|
205 | - ->sort('snapshotMeta.dateCreated.date', 'desc') |
|
206 | - ->limit(1) |
|
207 | - ->getQuery() |
|
208 | - ->getSingleResult() |
|
203 | + ->field('snapshotEntity')->equals(new \MongoId($sourceId)) |
|
204 | + ->field('snapshotMeta.isDraft')->equals($isDraft) |
|
205 | + ->sort('snapshotMeta.dateCreated.date', 'desc') |
|
206 | + ->limit(1) |
|
207 | + ->getQuery() |
|
208 | + ->getSingleResult() |
|
209 | 209 | ; |
210 | 210 | if ($entity) { |
211 | 211 | $this->dm->getEventManager()->dispatchEvent( |
@@ -158,8 +158,8 @@ |
||
158 | 158 | if ($mimetypes) { |
159 | 159 | $mimeTypeValidator = new MimeType(); |
160 | 160 | $mimeTypeValidator->setMagicFile(false) |
161 | - ->disableMagicFile(true) |
|
162 | - ->setMimeType($this->getAllowedTypes()); |
|
161 | + ->disableMagicFile(true) |
|
162 | + ->setMimeType($this->getAllowedTypes()); |
|
163 | 163 | |
164 | 164 | $validators[] = $mimeTypeValidator; |
165 | 165 | } |
@@ -14,10 +14,10 @@ |
||
14 | 14 | protected $validator; |
15 | 15 | |
16 | 16 | /** |
17 | - * Get a validator if none has been set. |
|
18 | - * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | - * @return RegexValidator |
|
20 | - */ |
|
17 | + * Get a validator if none has been set. |
|
18 | + * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | + * @return RegexValidator |
|
20 | + */ |
|
21 | 21 | public function getValidator() |
22 | 22 | { |
23 | 23 | if (null === $this->validator) { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | public function init() |
52 | 52 | { |
53 | - $this->setName('items'); |
|
53 | + $this->setName('items'); |
|
54 | 54 | $this->add([ |
55 | 55 | 'type' => 'Collection', |
56 | 56 | 'name' => 'items', |
@@ -134,8 +134,8 @@ |
||
134 | 134 | $elementOptions = $element->getOptions(); |
135 | 135 | if (array_key_exists('placeholder', $elementOptions) && !empty($elementOptions['placeholder'])) { |
136 | 136 | $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' . |
137 | - (empty($content)?'':'display:none;') . |
|
138 | - '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
137 | + (empty($content)?'':'display:none;') . |
|
138 | + '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
139 | 139 | } |
140 | 140 | return |
141 | 141 | $placeHolder |