Passed
Push — master ( d04c5a...d84490 )
by Mathias
24:28 queued 14:22
created
module/Core/config/module.config.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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(
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     ],
73 73
 
74 74
     'options' => [
75
-        'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ],
75
+        'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'],
76 76
     ],
77 77
 
78 78
     'Core' => array(
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                     'name' => 'stream',
136 136
                     'priority' => 1000,
137 137
                     'options' => [
138
-                        'stream' => getcwd() . '/var/log/mailqueue.log',
138
+                        'stream' => getcwd().'/var/log/mailqueue.log',
139 139
                         'formatter'  => [
140 140
                             'name' => 'simple',
141 141
                             'options' => [
@@ -371,19 +371,19 @@  discard block
 block discarded – undo
371 371
             'modules/Core/jsonEntityHydrator' => 'Core\Entity\Hydrator\JsonEntityHydratorFactory',
372 372
             'Core/EntityHydrator' => 'Core\Entity\Hydrator\EntityHydratorFactory',
373 373
             'Core/Options' => 'Core\Factory\ModuleOptionsFactory',
374
-            'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class,'factory'],
375
-            'DefaultListeners' => ['Core\Listener\DefaultListener','factory'],
376
-            'templateProviderStrategy'   => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy','factory'],
377
-            'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class,'factory'],
374
+            'Core/DoctrineMongoODM/RepositoryEvents' => [\Core\Repository\DoctrineMongoODM\Event\RepositoryEventsSubscriber::class, 'factory'],
375
+            'DefaultListeners' => ['Core\Listener\DefaultListener', 'factory'],
376
+            'templateProviderStrategy'   => ['Core\Form\Hydrator\Strategy\TemplateProviderStrategy', 'factory'],
377
+            'Core/Listener/DeferredListenerAggregate' => [\Core\Listener\DeferredListenerAggregate::class, 'factory'],
378 378
             'Core/Listener/CreatePaginator' => 'Core\Listener\CreatePaginatorListener::factory',
379 379
             'Core/Locale' => 'Core\I18n\LocaleFactory',
380 380
             \Core\Listener\AjaxRouteListener::class => \Core\Factory\Listener\AjaxRouteListenerFactory::class,
381 381
             \Core\Listener\DeleteImageSetListener::class => \Core\Factory\Listener\DeleteImageSetListenerFactory::class,
382 382
             'Imagine' => \Core\Factory\Service\ImagineFactory::class,
383
-            'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class,'factory'],
384
-            'Tracy' => [Tracy::class,'factory'],
383
+            'Core/Listener/Notification' => [\Core\Listener\NotificationListener::class, 'factory'],
384
+            'Tracy' => [Tracy::class, 'factory'],
385 385
             Service\EntityEraser\DefaultEntityLoaderListener::class => Service\EntityEraser\DefaultEntityLoaderListenerFactory::class,
386
-            ClearCacheService::class => [ClearCacheService::class,'factory'],
386
+            ClearCacheService::class => [ClearCacheService::class, 'factory'],
387 387
             Listener\ModuleVersionAdminWidgetProvider::class => Listener\ModuleVersionAdminWidgetProviderFactory::class,
388 388
             Queue\Worker\MongoWorker::class => \SlmQueue\Factory\WorkerFactory::class,
389 389
             'Core/HtmlPurifier' => \Core\Factory\Service\HtmlPurifierFactory::class
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
         'translation_file_patterns' => array(
410 410
             [
411 411
                 'type' => 'gettext',
412
-                'base_dir' => __DIR__ . '/../language',
412
+                'base_dir' => __DIR__.'/../language',
413 413
                 'pattern' => '%s.mo',
414 414
             ],
415 415
             [
@@ -454,8 +454,8 @@  discard block
 block discarded – undo
454 454
             'Core/File'    => FileControllerFactory::class,
455 455
             'Core/Content' => LazyControllerFactory::class,
456 456
             Controller\Console\PurgeController::class => Controller\Console\PurgeControllerFactory::class,
457
-            AssetsInstallController::class => [AssetsInstallController::class,'factory'],
458
-            ClearCacheController::class => [ClearCacheController::class,'factory'],
457
+            AssetsInstallController::class => [AssetsInstallController::class, 'factory'],
458
+            ClearCacheController::class => [ClearCacheController::class, 'factory'],
459 459
             Queue\Controller\MongoQueueController::class => Queue\Controller\MongoQueueControllerFactory::class,
460 460
             Queue\Controller\MongoQueueListController::class => Queue\Controller\MongoQueueListControllerFactory::class,
461 461
 
@@ -470,9 +470,9 @@  discard block
 block discarded – undo
470 470
             'Core/SearchForm' => 'Core\Factory\Controller\Plugin\SearchFormFactory',
471 471
             'listquery' => 'Core\Controller\Plugin\ListQuery::factory',
472 472
             'mail' => 'Core\Controller\Plugin\Mail::factory',
473
-            'Core/Mailer' => ['Core\Controller\Plugin\Mailer','factory'],
474
-            'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class,'factory'],
475
-            'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class,'factory'],
473
+            'Core/Mailer' => ['Core\Controller\Plugin\Mailer', 'factory'],
474
+            'Core/CreatePaginator' => [\Core\Controller\Plugin\CreatePaginator::class, 'factory'],
475
+            'Core/PaginatorService' => [\Core\Controller\Plugin\CreatePaginatorService::class, 'factory'],
476 476
             Controller\Plugin\EntityEraser::class => Controller\Plugin\EntityEraserFactory::class,
477 477
         ),
478 478
         'invokables' => array(
@@ -503,32 +503,32 @@  discard block
 block discarded – undo
503 503
         'exception_template' => 'error/index',
504 504
         // Map template to files. Speeds up the lookup through the template stack.
505 505
         'template_map' => array(
506
-            'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml',
507
-            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
508
-            'error/404' => __DIR__ . '/../view/error/404.phtml',
509
-            'error/403' => __DIR__ . '/../view/error/403.phtml',
510
-            'error/index' => __DIR__ . '/../view/error/index.phtml',
511
-            'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml',
512
-            'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml',
513
-            'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml',
514
-            'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml',
515
-            'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml',
516
-            'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml',
517
-            'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml',
518
-            'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml',
519
-            'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml',
520
-            'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml',
521
-            'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml',
522
-            'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml',
523
-            'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml',
524
-            'mail/header' =>  __DIR__ . '/../view/mail/header.phtml',
525
-            'mail/footer' =>  __DIR__ . '/../view/mail/footer.phtml',
526
-            'mail/footer.en' =>  __DIR__ . '/../view/mail/footer.en.phtml',
506
+            'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml',
507
+            'layout/layout' => __DIR__.'/../view/layout/layout.phtml',
508
+            'error/404' => __DIR__.'/../view/error/404.phtml',
509
+            'error/403' => __DIR__.'/../view/error/403.phtml',
510
+            'error/index' => __DIR__.'/../view/error/index.phtml',
511
+            'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml',
512
+            'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml',
513
+            'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml',
514
+            'core/notifications' => __DIR__.'/../view/partial/notifications.phtml',
515
+            'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml',
516
+            'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml',
517
+            'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml',
518
+            'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml',
519
+            'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml',
520
+            'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml',
521
+            'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml',
522
+            'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml',
523
+            'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml',
524
+            'mail/header' =>  __DIR__.'/../view/mail/header.phtml',
525
+            'mail/footer' =>  __DIR__.'/../view/mail/footer.phtml',
526
+            'mail/footer.en' =>  __DIR__.'/../view/mail/footer.en.phtml',
527 527
             //'startpage' => __DIR__ . '/../view/layout/startpage.phtml',
528 528
         ),
529 529
         // Where to look for view templates not mapped above
530 530
         'template_path_stack' => array(
531
-            __DIR__ . '/../view',
531
+            __DIR__.'/../view',
532 532
         ),
533 533
     ),
534 534
     'view_helpers' => array(
Please login to merge, or discard this patch.
module/Core/src/Queue/Strategy/SendMailStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         if (!$job instanceof MailSenderInterface) {
56 56
             $event->setResult(ProcessJobEvent::JOB_STATUS_FAILURE);
57 57
             if ($job instanceof ResultProviderInterface) {
58
-                $job->setResult(JobResult::failure('This queue can only consume Jobs which implement the ' . MailSenderInterface::class));
58
+                $job->setResult(JobResult::failure('This queue can only consume Jobs which implement the '.MailSenderInterface::class));
59 59
             }
60 60
         }
61 61
 
Please login to merge, or discard this patch.
module/Core/src/Mail/MailService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     );
82 82
 
83 83
     protected $factories = array(
84
-        'htmltemplate'   => [HTMLTemplateMessage::class,'factory'],
84
+        'htmltemplate'   => [HTMLTemplateMessage::class, 'factory'],
85 85
     );
86 86
 
87 87
     protected $queue;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         parent::__construct($container, $configuration);
102 102
 
103 103
         $this->addInitializer(
104
-            function ($context, $instance) {
104
+            function($context, $instance) {
105 105
                 if ($instance instanceof TranslatorAwareInterface) {
106 106
                     $translator = $context->get('translator');
107 107
                     $instance->setTranslator($translator);
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         //);
127 127
 
128 128
         $this->addInitializer(
129
-            function ($context, $instance) {
129
+            function($context, $instance) {
130 130
                 if (method_exists($instance, 'init')) {
131 131
                     $instance->init();
132 132
                 }
@@ -220,11 +220,11 @@  discard block
 block discarded – undo
220 220
         if ($this->overrideRecipient instanceof AddressList) {
221 221
             $originalRecipient = $headers->get('to')->toString();
222 222
             if ($headers->has('cc')) {
223
-                $originalRecipient .= '; ' . $headers->get('cc')->toString();
223
+                $originalRecipient .= '; '.$headers->get('cc')->toString();
224 224
                 $headers->removeHeader('cc');
225 225
             }
226 226
             if ($headers->has('bcc')) {
227
-                $originalRecipient .= '; ' . $headers->get('bcc')->toString();
227
+                $originalRecipient .= '; '.$headers->get('bcc')->toString();
228 228
                 $headers->removeHeader('bcc');
229 229
             }
230 230
             $headers->addHeaderLine('X-Original-Recipients', $originalRecipient);
Please login to merge, or discard this patch.
module/Applications/src/Listener/StatusChange.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,13 +97,13 @@  discard block
 block discarded – undo
97 97
                 $key = 'mailRejectionText';
98 98
                 break;
99 99
             default:
100
-                throw new \InvalidArgumentException('Unknown status value: ' .$status);
100
+                throw new \InvalidArgumentException('Unknown status value: '.$status);
101 101
         }
102
-        $mailText      = $settings->$key ? $settings->$key : '';
102
+        $mailText = $settings->$key ? $settings->$key : '';
103 103
         $mail->setBody($mailText);
104 104
         $mail->setApplication($this->application);
105 105
         $mailText = $mail->getBodyText();
106
-        $mailSubject   = sprintf(
106
+        $mailSubject = sprintf(
107 107
             $this->translator->translate('Your application dated %s'),
108 108
             strftime('%x', $this->application->getDateCreated()->getTimestamp())
109 109
         );
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         if ($this->options->getDelayApplicantRejectMail()
173 173
             && $status == Status::REJECTED
174 174
         ) {
175
-            $this->mailService->queue($mail, [ 'delay' => $this->options->getDelayApplicantRejectMail() ]);
175
+            $this->mailService->queue($mail, ['delay' => $this->options->getDelayApplicantRejectMail()]);
176 176
         } else {
177 177
             $this->mailService->send($mail);
178 178
         }
@@ -198,6 +198,6 @@  discard block
 block discarded – undo
198 198
         $email = $recipient->getEmail();
199 199
         $name  = $recipient->getDisplayName(false);
200 200
 
201
-        return $name ? [ $email => $name ] : [ $email ];
201
+        return $name ? [$email => $name] : [$email];
202 202
     }
203 203
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Mail/MailServiceFactoryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@
 block discarded – undo
55 55
             ->method('get')
56 56
             ->willReturnMap(
57 57
                 [
58
-                    ['Config',[]],
59
-                    ['Auth/Options',$authOptions],
60
-                    ['Core/MailServiceOptions',$mailOptions],
61
-                    [QueuePluginManager::class,$queues],
58
+                    ['Config', []],
59
+                    ['Auth/Options', $authOptions],
60
+                    ['Core/MailServiceOptions', $mailOptions],
61
+                    [QueuePluginManager::class, $queues],
62 62
             ]
63 63
         );
64 64
 
Please login to merge, or discard this patch.