Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
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/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.
module/Core/src/Controller/AdminControllerEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      *
62 62
      * @return self
63 63
      */
64
-    public function addViewModel($name, $model, $priority=0)
64
+    public function addViewModel($name, $model, $priority = 0)
65 65
     {
66 66
         $this->models->insert($name, $model, $priority);
67 67
 
Please login to merge, or discard this patch.
module/Core/src/Controller/Console/PurgeController.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -69,13 +69,13 @@  discard block
 block discarded – undo
69 69
         }
70 70
 
71 71
         if (!$this->params('no-check')) {
72
-            $console->writeLine('Checking dependencies ... ' . PHP_EOL);
72
+            $console->writeLine('Checking dependencies ... '.PHP_EOL);
73 73
 
74 74
             $eraser = $this->plugin(EntityEraser::class);
75 75
             $counts = [];
76 76
             $totalCount = 0;
77 77
             foreach ($entities as $entity) {
78
-                $console->writeLine('    ' . $this->entityToString($entity));
78
+                $console->writeLine('    '.$this->entityToString($entity));
79 79
                 $totalCount += 1;
80 80
                 $dependencies = $eraser->checkDependencies($entity);
81 81
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                         $entitiesCount = count($dependendEntities);
89 89
                     }
90 90
 
91
-                    $console->writeLine('        ' . $entitiesCount . ' ' . $dependencyList->getName() . ': ' . $dependencyList->getDescription());
91
+                    $console->writeLine('        '.$entitiesCount.' '.$dependencyList->getName().': '.$dependencyList->getDescription());
92 92
 
93 93
                     $totalCount += $entitiesCount;
94 94
                     if (!isset($counts[$dependencyList->getName()])) {
@@ -97,17 +97,17 @@  discard block
 block discarded – undo
97 97
                     $counts[$dependencyList->getName()] += $entitiesCount;
98 98
 
99 99
                     foreach ($dependendEntities as $dependendEntity) {
100
-                        $console->writeLine('        - ' . $this->entityToString($dependendEntity));
100
+                        $console->writeLine('        - '.$this->entityToString($dependendEntity));
101 101
                     }
102 102
                     $console->writeLine(' ');
103 103
                 }
104 104
                 $console->writeLine('');
105 105
             }
106 106
 
107
-            $console->writeLine($totalCount . ' entities affected:');
108
-            $console->writeLine('    ' . count($entities) . ' ' . $this->params('entity'));
107
+            $console->writeLine($totalCount.' entities affected:');
108
+            $console->writeLine('    '.count($entities).' '.$this->params('entity'));
109 109
             foreach ($counts as $name => $count) {
110
-                $console->writeLine('    ' . $count . ' ' . $name);
110
+                $console->writeLine('    '.$count.' '.$name);
111 111
             }
112 112
 
113 113
             $console->writeLine('');
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         $totalCount = 0;
124 124
         $counts = [];
125 125
 
126
-        $progress     = new ProgressBar(count($entities));
126
+        $progress = new ProgressBar(count($entities));
127 127
         $i = 0;
128 128
         foreach ($entities as $entity) {
129 129
             $progress->update(++$i, $entity->getId());
@@ -142,10 +142,10 @@  discard block
 block discarded – undo
142 142
 
143 143
         $progress->finish();
144 144
         $console->writeLine('');
145
-        $console->writeLine('Processed ' . $totalCount . ' entities.');
146
-        $console->writeLine('    ' . count($entities) . ' ' . $this->params('entity') . ' deleted.');
145
+        $console->writeLine('Processed '.$totalCount.' entities.');
146
+        $console->writeLine('    '.count($entities).' '.$this->params('entity').' deleted.');
147 147
         foreach ($counts as $name => $count) {
148
-            $console->writeLine('    ' . $count[0] . ' ' . $name . ' ' . $count[1]);
148
+            $console->writeLine('    '.$count[0].' '.$name.' '.$count[1]);
149 149
         }
150 150
     }
151 151
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         $str = get_class($entity);
193 193
 
194 194
         if ($entity instanceof \Core\Entity\IdentifiableEntityInterface) {
195
-            $str .= '( ' . $entity->getId() . ' )';
195
+            $str .= '( '.$entity->getId().' )';
196 196
         }
197 197
 
198 198
         return $str;
Please login to merge, or discard this patch.