Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
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/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/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.
module/Core/src/Controller/ContentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function indexAction()
29 29
     {
30 30
         $view = $this->params('view');
31
-        $view = 'content/' . $view;
31
+        $view = 'content/'.$view;
32 32
 
33 33
         $viewModel = new ViewModel();
34 34
         $viewModel->setTemplate($view);
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/PaginationParams.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     public function getList($namespace, $callback)
136 136
     {
137 137
         $session = new Container($namespace);
138
-        $params  = $session->params?:array();
138
+        $params  = $session->params ?: array();
139 139
         if (!$session->list) {
140 140
             $session->list = is_array($callback)
141 141
             ? call_user_func($callback, $session->params)
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/EntityEraser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 
112 112
         $event = $this->loadEntitiesEvents->getEvent($entity, $this, $params);
113 113
         $responses = $this->loadEntitiesEvents->triggerEventUntil(
114
-            function ($response) {
114
+            function($response) {
115 115
                 return (is_array($response) || $response instanceof \Traversable) && count($response);
116 116
             },
117 117
             $event
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/SearchForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,11 +72,11 @@
 block discarded – undo
72 72
     public function get($form, $options = null, $params = null)
73 73
     {
74 74
         if (!is_object($form)) {
75
-            $form             = $this->formElementManager->get($form, $options);
75
+            $form = $this->formElementManager->get($form, $options);
76 76
         }
77 77
 
78 78
         /** @noinspection PhpUndefinedMethodInspection */
79
-        $params           = $params ?: clone $this->getController()->getRequest()->getQuery();
79
+        $params = $params ?: clone $this->getController()->getRequest()->getQuery();
80 80
 
81 81
         /* I tried using form methods (bind, isValid)...
82 82
          * but because the search form could be in an invalidated state
Please login to merge, or discard this patch.