@@ -48,7 +48,7 @@ |
||
48 | 48 | /* @var $serviceLocator \Core\Mail\MailService */ |
49 | 49 | /* @var $owner \Auth\Entity\UserInterface */ |
50 | 50 | /* @var $user \Auth\Entity\UserInterface */ |
51 | - $this->setCreationOptions($options); |
|
51 | + $this->setCreationOptions($options); |
|
52 | 52 | $auth = $container->get('AuthenticationService'); |
53 | 53 | $router = $container->get('Router'); |
54 | 54 |
@@ -62,10 +62,10 @@ |
||
62 | 62 | |
63 | 63 | public function query($term, array $params = []) |
64 | 64 | { |
65 | - /* @TODO: [ZF3] overriding $term value because it always returns null */ |
|
66 | - if(is_null($term)){ |
|
67 | - $term = $_REQUEST['q']; |
|
68 | - } |
|
65 | + /* @TODO: [ZF3] overriding $term value because it always returns null */ |
|
66 | + if(is_null($term)){ |
|
67 | + $term = $_REQUEST['q']; |
|
68 | + } |
|
69 | 69 | $cacheId = md5($term); |
70 | 70 | |
71 | 71 | if ($this->cache && ($result = $this->cache->getItem($cacheId))) { |
@@ -188,12 +188,12 @@ |
||
188 | 188 | public function findLatest($sourceId, $isDraft = false) |
189 | 189 | { |
190 | 190 | return $this->createQueryBuilder() |
191 | - ->field('snapshotEntity')->equals(new \MongoId($sourceId)) |
|
192 | - ->field('snapshotMeta.isDraft')->equals($isDraft) |
|
193 | - ->sort('snapshotMeta.dateCreated.date', 'desc') |
|
194 | - ->limit(1) |
|
195 | - ->getQuery() |
|
196 | - ->getSingleResult(); |
|
191 | + ->field('snapshotEntity')->equals(new \MongoId($sourceId)) |
|
192 | + ->field('snapshotMeta.isDraft')->equals($isDraft) |
|
193 | + ->sort('snapshotMeta.dateCreated.date', 'desc') |
|
194 | + ->limit(1) |
|
195 | + ->getQuery() |
|
196 | + ->getSingleResult(); |
|
197 | 197 | |
198 | 198 | } |
199 | 199 |
@@ -138,14 +138,14 @@ |
||
138 | 138 | if (!$this->test($resource, $privilege)) { |
139 | 139 | $msg = null === $privilege |
140 | 140 | ? sprintf( |
141 | - 'You are not allowed to access resource "%s"', |
|
142 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
143 | - ) |
|
141 | + 'You are not allowed to access resource "%s"', |
|
142 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
143 | + ) |
|
144 | 144 | : sprintf( |
145 | - 'You are not allowed to execute operation "%s" on resource "%s"', |
|
146 | - $privilege, |
|
147 | - is_object($resource) ? $resource->getResourceId() : $resource |
|
148 | - ); |
|
145 | + 'You are not allowed to execute operation "%s" on resource "%s"', |
|
146 | + $privilege, |
|
147 | + is_object($resource) ? $resource->getResourceId() : $resource |
|
148 | + ); |
|
149 | 149 | |
150 | 150 | if ($resource instanceof FileInterface && 0 == strpos($resource->getType(), 'image/')) { |
151 | 151 | throw new UnauthorizedImageAccessException(str_replace('resource', 'image', $msg)); |
@@ -274,9 +274,9 @@ discard block |
||
274 | 274 | ], |
275 | 275 | 'factories' => [ |
276 | 276 | 'Jobs/Import' => [ Controller\ImportController::class, 'factory'], |
277 | - 'Jobs/Console' => [ConsoleController::class,'factory'], |
|
278 | - 'Jobs/AdminCategories' => [AdminCategoriesController::class,'factory'], |
|
279 | - 'Jobs/Admin' => [AdminController::class,'factory'], |
|
277 | + 'Jobs/Console' => [ConsoleController::class,'factory'], |
|
278 | + 'Jobs/AdminCategories' => [AdminCategoriesController::class,'factory'], |
|
279 | + 'Jobs/Admin' => [AdminController::class,'factory'], |
|
280 | 280 | 'Jobs/Template' => 'Jobs\Factory\Controller\TemplateControllerFactory', |
281 | 281 | 'Jobs/Index' => 'Jobs\Factory\Controller\IndexControllerFactory', |
282 | 282 | 'Jobs/Approval' => 'Jobs\Factory\Controller\ApprovalControllerFactory', |
@@ -428,15 +428,15 @@ discard block |
||
428 | 428 | 'invokables' => [ |
429 | 429 | 'Jobs/Location/New' => 'Jobs\Form\InputFilter\JobLocationNew', |
430 | 430 | //'Jobs/Location/Edit' => 'Jobs\Form\InputFilter\JobLocationEdit', |
431 | - JobLocationEdit::class => JobLocationEdit::class, |
|
431 | + JobLocationEdit::class => JobLocationEdit::class, |
|
432 | 432 | 'Jobs/Company' => 'Jobs\Form\InputFilter\CompanyName', |
433 | 433 | ], |
434 | 434 | 'factories' => [ |
435 | 435 | 'Jobs/AtsMode' => 'Jobs\Factory\Form\InputFilter\AtsModeFactory', |
436 | 436 | ], |
437 | - 'aliases' => [ |
|
438 | - 'Jobs/Location/Edit' => JobLocationEdit::class |
|
439 | - ] |
|
437 | + 'aliases' => [ |
|
438 | + 'Jobs/Location/Edit' => JobLocationEdit::class |
|
439 | + ] |
|
440 | 440 | ], |
441 | 441 | |
442 | 442 | 'filters' => [ |
@@ -191,9 +191,9 @@ |
||
191 | 191 | $location = new Location(); |
192 | 192 | $coords = array_map(function ($i) { return (float) $i; }, $locData['coordinates']); |
193 | 193 | $location->setCountry($locData['country']) |
194 | - ->setRegion($locData['region']) |
|
195 | - ->setCity($locData['city']) |
|
196 | - ->setCoordinates(new Point($coords)); |
|
194 | + ->setRegion($locData['region']) |
|
195 | + ->setCity($locData['city']) |
|
196 | + ->setCoordinates(new Point($coords)); |
|
197 | 197 | |
198 | 198 | $jobLocations->add($location); |
199 | 199 | } |
@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | $content = $this->renderElements($form, $colMap, $buttonsSpan); |
68 | 68 | |
69 | 69 | return $this->openTag($form) |
70 | - . '<div class="row" style="padding: 0 15px;">' |
|
71 | - . $content . '</div>' . $this->closeTag(); |
|
70 | + . '<div class="row" style="padding: 0 15px;">' |
|
71 | + . $content . '</div>' . $this->closeTag(); |
|
72 | 72 | |
73 | 73 | } |
74 | 74 | |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | $attrs = $helper->createAttributesString($button->getAttributes()); |
83 | 83 | |
84 | 84 | $content.= '<button ' . $attrs . '>' |
85 | - . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain()) |
|
86 | - . '</button>'; |
|
85 | + . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain()) |
|
86 | + . '</button>'; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | return $content; |
@@ -120,15 +120,15 @@ discard block |
||
120 | 120 | |
121 | 121 | if ($element->getName() == $form->getButtonElement()) { |
122 | 122 | $content.='<div class="input-group col-md-' . $cols . '">' |
123 | - . $formElement($element) |
|
124 | - . '<div class="input-group-btn search-form-buttons" style="width: 1px;">' |
|
125 | - . $this->renderButtons($form->getButtons()) . '</div>' |
|
126 | - . '</div>'; |
|
123 | + . $formElement($element) |
|
124 | + . '<div class="input-group-btn search-form-buttons" style="width: 1px;">' |
|
125 | + . $this->renderButtons($form->getButtons()) . '</div>' |
|
126 | + . '</div>'; |
|
127 | 127 | $buttonsRendered = true; |
128 | 128 | } else { |
129 | 129 | $content .= '<div class="input-group col-md-' . $cols . '">' |
130 | - . $formElement($element) |
|
131 | - . '</div>'; |
|
130 | + . $formElement($element) |
|
131 | + . '</div>'; |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | $i += 1; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $buttonsSpan = $form->getOption('buttons_span') ?: 12; |
140 | 140 | } |
141 | 141 | $content .= '<div class="input-group search-form-buttons col-md-' . $buttonsSpan . ' text-right">' |
142 | - . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>'; |
|
142 | + . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>'; |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | return $content; |
@@ -39,24 +39,24 @@ discard block |
||
39 | 39 | 'log' => array( |
40 | 40 | 'Core/Log' => array( |
41 | 41 | 'writers' => array( |
42 | - array( |
|
43 | - 'name' => 'stream', |
|
42 | + array( |
|
43 | + 'name' => 'stream', |
|
44 | 44 | 'priority' => 1000, |
45 | 45 | 'options' => array( |
46 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
46 | + 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
47 | + ), |
|
47 | 48 | ), |
48 | - ), |
|
49 | 49 | ), |
50 | 50 | ), |
51 | 51 | 'Log/Core/Mail' => array( |
52 | 52 | 'writers' => array( |
53 | - array( |
|
54 | - 'name' => 'stream', |
|
53 | + array( |
|
54 | + 'name' => 'stream', |
|
55 | 55 | 'priority' => 1000, |
56 | 56 | 'options' => array( |
57 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
57 | + 'stream' => __DIR__ .'/../../../log/mails.log', |
|
58 | + ), |
|
58 | 59 | ), |
59 | - ), |
|
60 | 60 | ), |
61 | 61 | ), |
62 | 62 | ), |
@@ -248,17 +248,17 @@ discard block |
||
248 | 248 | // Defines the Core/Navigation. |
249 | 249 | 'navigation' => array( |
250 | 250 | 'default' => array( |
251 | - 'home' => array( |
|
252 | - 'label' => /*@translate*/ 'Home', |
|
253 | - 'route' => 'lang', |
|
254 | - 'visible' => false |
|
255 | - ), |
|
256 | - 'admin' => array( |
|
257 | - 'label ' => /*@translate*/ 'Admin', |
|
258 | - 'route' => 'lang/admin', |
|
259 | - 'resource' => 'route/lang/admin', |
|
260 | - 'order' => 200, |
|
261 | - ), |
|
251 | + 'home' => array( |
|
252 | + 'label' => /*@translate*/ 'Home', |
|
253 | + 'route' => 'lang', |
|
254 | + 'visible' => false |
|
255 | + ), |
|
256 | + 'admin' => array( |
|
257 | + 'label ' => /*@translate*/ 'Admin', |
|
258 | + 'route' => 'lang/admin', |
|
259 | + 'resource' => 'route/lang/admin', |
|
260 | + 'order' => 200, |
|
261 | + ), |
|
262 | 262 | ), |
263 | 263 | ), |
264 | 264 | // Configuration of the controller service manager (Which loads controllers) |
@@ -266,14 +266,14 @@ discard block |
||
266 | 266 | 'invokables' => array( |
267 | 267 | 'Core\Controller\Content' => 'Core\Controller\ContentController', |
268 | 268 | ), |
269 | - 'factories' => [ |
|
270 | - // @TODO: improve this factory |
|
271 | - 'Core\Controller\Index' => [\Core\Controller\IndexController::class,'factory'], |
|
272 | - 'Core/Admin' => [\Core\Controller\AdminController::class,'factory'], |
|
273 | - 'Core\Controller\File' => [\Core\Controller\FileController::class,'factory'], |
|
274 | - ], |
|
269 | + 'factories' => [ |
|
270 | + // @TODO: improve this factory |
|
271 | + 'Core\Controller\Index' => [\Core\Controller\IndexController::class,'factory'], |
|
272 | + 'Core/Admin' => [\Core\Controller\AdminController::class,'factory'], |
|
273 | + 'Core\Controller\File' => [\Core\Controller\FileController::class,'factory'], |
|
274 | + ], |
|
275 | 275 | 'abstract_factories' => [ |
276 | - \Core\Factory\Controller\LazyControllerFactory::class |
|
276 | + \Core\Factory\Controller\LazyControllerFactory::class |
|
277 | 277 | ], |
278 | 278 | ), |
279 | 279 | // Configuration of the controller plugin service manager |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | 'paginatorservice' => 'Core/PaginatorService', |
305 | 305 | 'paginationParams' => 'Core/PaginationParams', |
306 | 306 | 'searchform' => 'Core/SearchForm', |
307 | - 'notification' => 'Notification', |
|
307 | + 'notification' => 'Notification', |
|
308 | 308 | ) |
309 | 309 | ), |
310 | 310 | // Configure the view service manager |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | ), |
403 | 403 | 'aliases' => [ |
404 | 404 | 'snippet' => \Core\View\Helper\Snippet::class, |
405 | - 'ajaxUrl' => \Core\View\Helper\AjaxUrl::class, |
|
405 | + 'ajaxUrl' => \Core\View\Helper\AjaxUrl::class, |
|
406 | 406 | 'proxy' => \Core\View\Helper\Proxy::class, |
407 | 407 | 'form_element' => 'formElement', |
408 | 408 | ], |
@@ -500,17 +500,17 @@ discard block |
||
500 | 500 | ], |
501 | 501 | |
502 | 502 | 'Core/Ajax/Events' => [ |
503 | - 'service' => 'Core/EventManager', |
|
504 | - 'event' => \Core\Listener\Events\AjaxEvent::class, |
|
503 | + 'service' => 'Core/EventManager', |
|
504 | + 'event' => \Core\Listener\Events\AjaxEvent::class, |
|
505 | 505 | ], |
506 | 506 | |
507 | - 'Core/File/Events' => [ |
|
508 | - 'service' => 'Core/EventManager', |
|
509 | - 'event' => \Core\Listener\Events\FileEvent::class, |
|
507 | + 'Core/File/Events' => [ |
|
508 | + 'service' => 'Core/EventManager', |
|
509 | + 'event' => \Core\Listener\Events\FileEvent::class, |
|
510 | 510 | 'listeners' => [ |
511 | 511 | \Core\Listener\DeleteImageSetListener::class => [\Core\Listener\Events\FileEvent::EVENT_DELETE, -1000], |
512 | 512 | ], |
513 | - ] |
|
513 | + ] |
|
514 | 514 | ], |
515 | 515 | |
516 | 516 | ); |
@@ -20,8 +20,8 @@ |
||
20 | 20 | * @ODM\HasLifecycleCallbacks |
21 | 21 | */ |
22 | 22 | class SnapshotMeta implements ModificationDateAwareEntityInterface, |
23 | - DraftableEntityInterface, |
|
24 | - Status\StatusAwareEntityInterface |
|
23 | + DraftableEntityInterface, |
|
24 | + Status\StatusAwareEntityInterface |
|
25 | 25 | { |
26 | 26 | use ModificationDateAwareEntityTrait, DraftableEntityTrait, Status\StatusAwareEntityTrait; |
27 | 27 | } |