Completed
Push — master ( dc4dd2...16100a )
by Mathias
08:39
created
module/Core/src/Entity/MetaDataProviderTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function setMetaData($key, $value = null)
32 32
     {
33 33
         if (is_array($key)) {
34
-            $this->metaData  = $key;
34
+            $this->metaData = $key;
35 35
         } else {
36 36
             $this->metaData[$key] = $value;
37 37
         }
Please login to merge, or discard this patch.
module/Core/src/Entity/AbstractStatusEntity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $name = $this->default;
83 83
         }
84 84
 
85
-        if (!isset(static::$orderMap[ $name ])) {
85
+        if (!isset(static::$orderMap[$name])) {
86 86
             throw new \InvalidArgumentException(sprintf(
87 87
                 'Unknown status name "%s" for "%s"',
88 88
                 $name,
@@ -91,6 +91,6 @@  discard block
 block discarded – undo
91 91
         }
92 92
 
93 93
         $this->name  = $name;
94
-        $this->order = static::$orderMap[ $name ];
94
+        $this->order = static::$orderMap[$name];
95 95
     }
96 96
 }
Please login to merge, or discard this patch.
module/Core/src/Mail/HTMLTemplateMessage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             }
234 234
 
235 235
             /* @var \Zend\Mvc\View\Http\ViewManager $viewManager */
236
-            $viewManager  = $this->serviceManager->get('ViewManager');
236
+            $viewManager = $this->serviceManager->get('ViewManager');
237 237
             $resolver = $this->serviceManager->get('ViewResolver');
238 238
 
239 239
             /* @var \Zend\Mvc\MvcEvent $event */
@@ -241,13 +241,13 @@  discard block
 block discarded – undo
241 241
             $lang = $forceLanguage ?: $event->getRouteMatch()->getParam('lang');
242 242
 
243 243
 
244
-            if ($resolver->resolve($this->getTemplate() . '.' . $lang)) {
245
-                $viewModel->setTemplate($this->getTemplate() . '.' . $lang);
244
+            if ($resolver->resolve($this->getTemplate().'.'.$lang)) {
245
+                $viewModel->setTemplate($this->getTemplate().'.'.$lang);
246 246
             } else {
247 247
                 $viewModel->setTemplate($this->getTemplate());
248 248
             }
249 249
 
250
-            $view         = $viewManager->getView();
250
+            $view = $viewManager->getView();
251 251
 
252 252
             $viewModel->setVariables($this->getVariables());
253 253
             $viewModel->setVariable('mail', $this);
Please login to merge, or discard this patch.
module/Core/src/Mail/Message.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
52 52
 
53 53
         if ($emailOrAddressOrList instanceof UserInterface) {
54 54
             parent::updateAddressList(
55
-                         $addressList,
56
-                         $emailOrAddressOrList->getInfo()->getEmail(),
57
-                         $emailOrAddressOrList->getInfo()->getDisplayName(false),
58
-                         $callingMethod
55
+                            $addressList,
56
+                            $emailOrAddressOrList->getInfo()->getEmail(),
57
+                            $emailOrAddressOrList->getInfo()->getDisplayName(false),
58
+                            $callingMethod
59 59
             );
60 60
             return;
61 61
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             throw new \InvalidArgumentException(
27 27
                 sprintf(
28 28
                     'Expected $options to be an array or \Traversable, but received %s',
29
-                    (is_object($options) ? 'instance of ' . get_class($options) : 'skalar')
29
+                    (is_object($options) ? 'instance of '.get_class($options) : 'skalar')
30 30
                 )
31 31
             );
32 32
         }
Please login to merge, or discard this patch.
module/Core/src/Mail/StringTemplateMessage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                 throw new \InvalidArgumentException(
40 40
                     sprintf(
41 41
                         'Expect an array or an instance of \Traversable, but received %s',
42
-                        is_object($variables) ? 'instance of ' . get_class($variables) : 'skalar'
42
+                        is_object($variables) ? 'instance of '.get_class($variables) : 'skalar'
43 43
                     )
44 44
                 );
45 45
             }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                 throw new \InvalidArgumentException(
70 70
                     sprintf(
71 71
                         'Expect an array or an instance of \Traversable, but received %s',
72
-                        is_object($callbacks) ? 'instance of ' . get_class($callbacks) : 'skalar'
72
+                        is_object($callbacks) ? 'instance of '.get_class($callbacks) : 'skalar'
73 73
                     )
74 74
                 );
75 75
             }
@@ -141,6 +141,6 @@  discard block
 block discarded – undo
141 141
     
142 142
     protected function getNamePattern($name)
143 143
     {
144
-        return '~##' . preg_quote($name) . '##~is';
144
+        return '~##'.preg_quote($name).'##~is';
145 145
     }
146 146
 }
Please login to merge, or discard this patch.
module/Core/src/Mail/MailServiceConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                     $recipients->add($match[1]);
70 70
                 }
71 71
             } else {
72
-                trigger_error('invalid address format ("' . $recipient . '") in mails.develop.override_recipient', E_USER_WARNING);
72
+                trigger_error('invalid address format ("'.$recipient.'") in mails.develop.override_recipient', E_USER_WARNING);
73 73
             }
74 74
         }
75 75
         return $recipients;
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
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     );
79 79
 
80 80
     protected $factories = array(
81
-        'htmltemplate'   => [HTMLTemplateMessage::class,'factory'],
81
+        'htmltemplate'   => [HTMLTemplateMessage::class, 'factory'],
82 82
     );
83 83
 
84 84
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         parent::__construct($container, $configuration);
97 97
         
98 98
         $this->addInitializer(
99
-            function ($context, $instance) {
99
+            function($context, $instance) {
100 100
                 if ($instance instanceof TranslatorAwareInterface) {
101 101
                     $translator = $context->get('translator');
102 102
                     $instance->setTranslator($translator);
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         //);
122 122
         
123 123
         $this->addInitializer(
124
-            function ($context, $instance) {
124
+            function($context, $instance) {
125 125
                 if (method_exists($instance, 'init')) {
126 126
                     $instance->init();
127 127
                 }
@@ -215,11 +215,11 @@  discard block
 block discarded – undo
215 215
         if ($this->overrideRecipient instanceof AddressList) {
216 216
             $originalRecipient = $headers->get('to')->toString();
217 217
             if ($headers->has('cc')) {
218
-                $originalRecipient .= '; ' . $headers->get('cc')->toString();
218
+                $originalRecipient .= '; '.$headers->get('cc')->toString();
219 219
                 $headers->removeHeader('cc');
220 220
             }
221 221
             if ($headers->has('bcc')) {
222
-                $originalRecipient .= '; ' . $headers->get('bcc')->toString();
222
+                $originalRecipient .= '; '.$headers->get('bcc')->toString();
223 223
                 $headers->removeHeader('bcc');
224 224
             }
225 225
             $headers->addHeaderLine('X-Original-Recipients', $originalRecipient);
Please login to merge, or discard this patch.
module/Core/src/Mail/FileTransport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         $options  = $this->options;
34 34
         $filename = call_user_func($options->getCallback(), $this);
35
-        $file     = $options->getPath() . DIRECTORY_SEPARATOR . $filename;
35
+        $file     = $options->getPath().DIRECTORY_SEPARATOR.$filename;
36 36
 
37 37
 
38 38
         $contents = $message->toString();
Please login to merge, or discard this patch.
module/Core/src/Mail/MailServiceFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,12 +48,12 @@
 block discarded – undo
48 48
         $configArray = array_merge($configArray, $mails);
49 49
         
50 50
         $config = new MailServiceConfig($configArray);
51
-        $service   = new MailService($container, $config->toArray());
51
+        $service = new MailService($container, $config->toArray());
52 52
         $config->configureServiceManager($service);
53 53
         foreach ($config->toArray() as $name=>$value) {
54 54
             $method = 'set'.$name;
55 55
             if (method_exists($service, $method)) {
56
-                call_user_func([$service,$method], $value);
56
+                call_user_func([$service, $method], $value);
57 57
             }
58 58
         }
59 59
         
Please login to merge, or discard this patch.