@@ -27,5 +27,5 @@ |
||
27 | 27 | |
28 | 28 | private $target = FatalJobException::class; |
29 | 29 | |
30 | - private $inheritance = [ AbstractJobException::class ]; |
|
30 | + private $inheritance = [AbstractJobException::class]; |
|
31 | 31 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | '@testConstruction' => false, |
32 | 32 | ]; |
33 | 33 | |
34 | - private $inheritance = [ JobExceptionInterface::class, \RuntimeException::class ]; |
|
34 | + private $inheritance = [JobExceptionInterface::class, \RuntimeException::class]; |
|
35 | 35 | |
36 | 36 | public function provideConstructionTestData() |
37 | 37 | { |
@@ -41,12 +41,12 @@ |
||
41 | 41 | private $target = [ |
42 | 42 | MongoWorker::class, |
43 | 43 | 'setupConstructorArgs', |
44 | - '@testInheritance' => [ 'as_reflection' => true ] |
|
44 | + '@testInheritance' => ['as_reflection' => true] |
|
45 | 45 | ]; |
46 | 46 | |
47 | 47 | private $eventsMock; |
48 | 48 | |
49 | - private $inheritance = [ AbstractWorker::class ]; |
|
49 | + private $inheritance = [AbstractWorker::class]; |
|
50 | 50 | |
51 | 51 | private function setupConstructorArgs() |
52 | 52 | { |
@@ -30,5 +30,5 @@ |
||
30 | 30 | 'as_reflection' => true, |
31 | 31 | ]; |
32 | 32 | |
33 | - private $inheritance = [ AbstractWorkerController::class ]; |
|
33 | + private $inheritance = [AbstractWorkerController::class]; |
|
34 | 34 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | private $target = MongoQueueControllerFactory::class; |
34 | 34 | |
35 | - private $inheritance = [ FactoryInterface::class ]; |
|
35 | + private $inheritance = [FactoryInterface::class]; |
|
36 | 36 | |
37 | 37 | public function testCreateService() |
38 | 38 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | private $target = MongoQueueListControllerFactory::class; |
32 | 32 | |
33 | - private $inheritance = [ FactoryInterface::class ]; |
|
33 | + private $inheritance = [FactoryInterface::class]; |
|
34 | 34 | |
35 | 35 | public function testCreateService() |
36 | 36 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | $queueName = 'test'; |
113 | 113 | $queue = $this->getMockBuilder(MongoQueue::class)->disableOriginalConstructor() |
114 | - ->setMethods(['listing'])->getMock(); |
|
114 | + ->setMethods(['listing'])->getMock(); |
|
115 | 115 | $this->queueManager->expects($this->once())->method('get')->with($queueName)->willReturn($queue); |
116 | 116 | $params = $this->setupParamsMock([ |
117 | 117 | ['queue', null, $queueName], |
@@ -135,13 +135,13 @@ discard block |
||
135 | 135 | $date = new \DateTime(); |
136 | 136 | $date->setTimezone(new \DateTimeZone('UTC')); |
137 | 137 | $jobs = [ |
138 | - [ |
|
139 | - 'job' => $job, |
|
140 | - 'created' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
141 | - 'executed' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
142 | - 'scheduled' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
143 | - 'tried' => 10, |
|
144 | - ], |
|
138 | + [ |
|
139 | + 'job' => $job, |
|
140 | + 'created' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
141 | + 'executed' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
142 | + 'scheduled' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
143 | + 'tried' => 10, |
|
144 | + ], |
|
145 | 145 | ]; |
146 | 146 | |
147 | 147 | $queue->expects($this->once())->method('listing')->with(['limit' => 10, 'status' => 1])->willReturn($jobs); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | ], |
45 | 45 | ]; |
46 | 46 | |
47 | - private $inheritance = [ AbstractConsoleController::class ]; |
|
47 | + private $inheritance = [AbstractConsoleController::class]; |
|
48 | 48 | |
49 | 49 | private function injectConstructorDependencies() |
50 | 50 | { |
@@ -149,11 +149,11 @@ discard block |
||
149 | 149 | $lineTmpl = '%-20s %s'; |
150 | 150 | $console = $this->target->getConsole(); |
151 | 151 | $console->expects($this->exactly(7))->method('writeLine')->withConsecutive( |
152 | - [ get_class($job) . ' [ test ]' ], |
|
153 | - [ sprintf($lineTmpl, 'Created', $date->format('Y-m-d H:i:s')) ], |
|
154 | - [ sprintf($lineTmpl, 'Executed', $date->format('Y-m-d H:i:s')) ], |
|
155 | - [ sprintf($lineTmpl, 'Scheduled', $date->format('Y-m-d H:i:s')) ], |
|
156 | - [ sprintf($lineTmpl, 'Tries', $jobs[0]['tried']) ] |
|
152 | + [get_class($job).' [ test ]'], |
|
153 | + [sprintf($lineTmpl, 'Created', $date->format('Y-m-d H:i:s'))], |
|
154 | + [sprintf($lineTmpl, 'Executed', $date->format('Y-m-d H:i:s'))], |
|
155 | + [sprintf($lineTmpl, 'Scheduled', $date->format('Y-m-d H:i:s'))], |
|
156 | + [sprintf($lineTmpl, 'Tries', $jobs[0]['tried'])] |
|
157 | 157 | )->willReturn(null); |
158 | 158 | |
159 | 159 | $this->assertEmpty($this->target->listAction()); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | private $target = ProcessId::class; |
29 | 29 | |
30 | - private $inheritance = [ ProcessorInterface::class ]; |
|
30 | + private $inheritance = [ProcessorInterface::class]; |
|
31 | 31 | |
32 | 32 | public function testProcessAddsProcessIdToEventArray() |
33 | 33 | { |
@@ -76,25 +76,25 @@ |
||
76 | 76 | 'log' => array( |
77 | 77 | 'Core/Log' => array( |
78 | 78 | 'writers' => array( |
79 | - array( |
|
80 | - 'name' => 'stream', |
|
79 | + array( |
|
80 | + 'name' => 'stream', |
|
81 | 81 | 'priority' => 1000, |
82 | 82 | 'options' => array( |
83 | - 'stream' => getcwd().'/var/log/yawik.log', |
|
83 | + 'stream' => getcwd().'/var/log/yawik.log', |
|
84 | + ), |
|
84 | 85 | ), |
85 | - ), |
|
86 | 86 | ), |
87 | 87 | ), |
88 | 88 | 'Log/Core/Mail' => array( |
89 | 89 | 'writers' => array( |
90 | - array( |
|
91 | - 'name' => 'stream', |
|
90 | + array( |
|
91 | + 'name' => 'stream', |
|
92 | 92 | 'priority' => 1000, |
93 | 93 | 'options' => array( |
94 | - 'stream' => getcwd().'/var/log/mails.log', |
|
94 | + 'stream' => getcwd().'/var/log/mails.log', |
|
95 | 95 | ), |
96 | 96 | |
97 | - ), |
|
97 | + ), |
|
98 | 98 | ), |
99 | 99 | ), |
100 | 100 | 'Log/Core/Queue' => array( |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | use Core\Service\Tracy; |
24 | 24 | use Laminas\I18n\Translator\Resources; |
25 | 25 | |
26 | -$doctrineConfig = include __DIR__ . '/doctrine.config.php'; |
|
26 | +$doctrineConfig = include __DIR__.'/doctrine.config.php'; |
|
27 | 27 | |
28 | 28 | |
29 | 29 | return array( |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | ], |
64 | 64 | |
65 | 65 | 'options' => [ |
66 | - 'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ], |
|
66 | + 'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'], |
|
67 | 67 | ], |
68 | 68 | |
69 | 69 | 'Core' => array( |
@@ -341,19 +341,19 @@ discard block |
||
341 | 341 | 'modules/Core/jsonEntityHydrator' => 'Core\Entity\Hydrator\JsonEntityHydratorFactory', |
342 | 342 | 'Core/EntityHydrator' => 'Core\Entity\Hydrator\EntityHydratorFactory', |
343 | 343 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
344 | - 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class,'factory'], |
|
345 | - 'DefaultListeners' => ['Core\Listener\DefaultListener','factory'], |
|
346 | - 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy','factory'], |
|
347 | - 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class,'factory'], |
|
344 | + 'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class, 'factory'], |
|
345 | + 'DefaultListeners' => ['Core\Listener\DefaultListener', 'factory'], |
|
346 | + 'templateProviderStrategy' => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy', 'factory'], |
|
347 | + 'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class, 'factory'], |
|
348 | 348 | 'Core/Listener/CreatePaginator' => 'Core\Listener\CreatePaginatorListener::factory', |
349 | 349 | 'Core/Locale' => 'Core\I18n\LocaleFactory', |
350 | 350 | \Core\Listener\AjaxRouteListener::class => \Core\Factory\Listener\AjaxRouteListenerFactory::class, |
351 | 351 | \Core\Listener\DeleteImageSetListener::class => \Core\Factory\Listener\DeleteImageSetListenerFactory::class, |
352 | 352 | 'Imagine' => \Core\Factory\Service\ImagineFactory::class, |
353 | - 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class,'factory'], |
|
354 | - 'Tracy' => [Tracy::class,'factory'], |
|
353 | + 'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class, 'factory'], |
|
354 | + 'Tracy' => [Tracy::class, 'factory'], |
|
355 | 355 | Service\EntityEraser\DefaultEntityLoaderListener::class => Service\EntityEraser\DefaultEntityLoaderListenerFactory::class, |
356 | - ClearCacheService::class => [ClearCacheService::class,'factory'], |
|
356 | + ClearCacheService::class => [ClearCacheService::class, 'factory'], |
|
357 | 357 | Listener\ModuleVersionAdminWidgetProvider::class => Listener\ModuleVersionAdminWidgetProviderFactory::class, |
358 | 358 | Queue\Worker\MongoWorker::class => \SlmQueue\Factory\WorkerFactory::class, |
359 | 359 | 'Core/HtmlPurifier' => \Core\Factory\Service\HtmlPurifierFactory::class |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | 'translation_file_patterns' => array( |
380 | 380 | [ |
381 | 381 | 'type' => 'gettext', |
382 | - 'base_dir' => __DIR__ . '/../language', |
|
382 | + 'base_dir' => __DIR__.'/../language', |
|
383 | 383 | 'pattern' => '%s.mo', |
384 | 384 | ], |
385 | 385 | [ |
@@ -424,8 +424,8 @@ discard block |
||
424 | 424 | 'Core/File' => FileControllerFactory::class, |
425 | 425 | 'Core/Content' => LazyControllerFactory::class, |
426 | 426 | Controller\Console\PurgeController::class => Controller\Console\PurgeControllerFactory::class, |
427 | - AssetsInstallController::class => [AssetsInstallController::class,'factory'], |
|
428 | - ClearCacheController::class => [ClearCacheController::class,'factory'], |
|
427 | + AssetsInstallController::class => [AssetsInstallController::class, 'factory'], |
|
428 | + ClearCacheController::class => [ClearCacheController::class, 'factory'], |
|
429 | 429 | Queue\Controller\MongoQueueController::class => Queue\Controller\MongoQueueControllerFactory::class, |
430 | 430 | Queue\Controller\MongoQueueListController::class => Queue\Controller\MongoQueueListControllerFactory::class, |
431 | 431 | |
@@ -440,9 +440,9 @@ discard block |
||
440 | 440 | 'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory', |
441 | 441 | 'listquery' => 'Core\Controller\Plugin\ListQuery::factory', |
442 | 442 | 'mail' => 'Core\Controller\Plugin\Mail::factory', |
443 | - 'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'], |
|
444 | - 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'], |
|
445 | - 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'], |
|
443 | + 'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'], |
|
444 | + 'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'], |
|
445 | + 'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'], |
|
446 | 446 | Controller\Plugin\EntityEraser::class => Controller\Plugin\EntityEraserFactory::class, |
447 | 447 | ), |
448 | 448 | 'invokables' => array( |
@@ -473,32 +473,32 @@ discard block |
||
473 | 473 | 'exception_template' => 'error/index', |
474 | 474 | // Map template to files. Speeds up the lookup through the template stack. |
475 | 475 | 'template_map' => array( |
476 | - 'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml', |
|
477 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
478 | - 'error/404' => __DIR__ . '/../view/error/404.phtml', |
|
479 | - 'error/403' => __DIR__ . '/../view/error/403.phtml', |
|
480 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
481 | - 'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml', |
|
482 | - 'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml', |
|
483 | - 'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml', |
|
484 | - 'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml', |
|
485 | - 'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml', |
|
486 | - 'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml', |
|
487 | - 'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml', |
|
488 | - 'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml', |
|
489 | - 'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml', |
|
490 | - 'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml', |
|
491 | - 'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml', |
|
492 | - 'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml', |
|
493 | - 'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml', |
|
494 | - 'mail/header' => __DIR__ . '/../view/mail/header.phtml', |
|
495 | - 'mail/footer' => __DIR__ . '/../view/mail/footer.phtml', |
|
496 | - 'mail/footer.en' => __DIR__ . '/../view/mail/footer.en.phtml', |
|
476 | + 'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml', |
|
477 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
478 | + 'error/404' => __DIR__.'/../view/error/404.phtml', |
|
479 | + 'error/403' => __DIR__.'/../view/error/403.phtml', |
|
480 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
481 | + 'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml', |
|
482 | + 'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml', |
|
483 | + 'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml', |
|
484 | + 'core/notifications' => __DIR__.'/../view/partial/notifications.phtml', |
|
485 | + 'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml', |
|
486 | + 'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml', |
|
487 | + 'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml', |
|
488 | + 'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml', |
|
489 | + 'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml', |
|
490 | + 'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml', |
|
491 | + 'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml', |
|
492 | + 'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml', |
|
493 | + 'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml', |
|
494 | + 'mail/header' => __DIR__.'/../view/mail/header.phtml', |
|
495 | + 'mail/footer' => __DIR__.'/../view/mail/footer.phtml', |
|
496 | + 'mail/footer.en' => __DIR__.'/../view/mail/footer.en.phtml', |
|
497 | 497 | //'startpage' => __DIR__ . '/../view/layout/startpage.phtml', |
498 | 498 | ), |
499 | 499 | // Where to look for view templates not mapped above |
500 | 500 | 'template_path_stack' => array( |
501 | - __DIR__ . '/../view', |
|
501 | + __DIR__.'/../view', |
|
502 | 502 | ), |
503 | 503 | ), |
504 | 504 | 'view_helpers' => array( |