Completed
Push — master ( 31cc4f...634a76 )
by Flo
42:08 queued 28:30
created
src/Http/Uri.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
         if (in_array($code, array_keys(Response::HTTP_STATUS_CODES))) {
29 29
 
30 30
             header('HTTP/2 ' . $code . ' ' . Response::HTTP_STATUS_CODES[$code]);
31
-            header('Location: ' .  $location);
31
+            header('Location: ' . $location);
32 32
             return $this->terminate();
33 33
 
34 34
         }
Please login to merge, or discard this patch.
src/Console/ArgumentParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@
 block discarded – undo
50 50
 
51 51
             if (strpos($args[$i], '-') === false) {
52 52
                 continue;
53
-            } else if (empty($args[$i+1])) {
53
+            } else if (empty($args[$i + 1])) {
54 54
                 break;
55 55
             }
56 56
 
57
-            $this->set(str_replace('-', '', $args[$i]), $args[$i+1]);
57
+            $this->set(str_replace('-', '', $args[$i]), $args[$i + 1]);
58 58
 
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/View/ViewController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getVariable($key)
119 119
     {
120
-        if(isset($this->variable[$key])) {
120
+        if (isset($this->variable[$key])) {
121 121
             return $this->variable[$key];
122 122
         }
123 123
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function hasVariable(string $key) :bool
133 133
     {
134
-        if(isset($this->variable[$key])) {
134
+        if (isset($this->variable[$key])) {
135 135
             return true;
136 136
         }
137 137
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function setVariables(array $variables = []) :self
147 147
     {
148
-        foreach($variables AS $key=>$value) {
148
+        foreach ($variables AS $key=>$value) {
149 149
             $this->setVariable($key, $value);
150 150
         }
151 151
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 
206 206
         ob_end_clean();
207 207
 
208
-        if( $this->getParentTemplate() instanceof ViewController ) {
208
+        if ($this->getParentTemplate() instanceof ViewController) {
209 209
             return $this->cleanOutput($this->getParentTemplate()->setVariables($this->getVariables())->render());
210 210
         } else {
211 211
             return $this->cleanOutput($content);
@@ -253,8 +253,8 @@  discard block
 block discarded – undo
253 253
      */
254 254
     public function __destruct()
255 255
     {
256
-        unset( $this->variable );
257
-        unset( $this->template );
256
+        unset($this->variable);
257
+        unset($this->template);
258 258
     }
259 259
 
260 260
 }
261 261
\ No newline at end of file
Please login to merge, or discard this patch.
src/View/Helper/RenderBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function __invoke(ViewController $view, string $block, string $defaultValue = '')
27 27
     {
28
-        if($view->getVariable($block) === '') {
28
+        if ($view->getVariable($block) === '') {
29 29
             return $defaultValue;
30 30
         }
31 31
         return trim($view->getVariable($block));
Please login to merge, or discard this patch.
src/View/Helper/AssetList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         }
41 41
 
42 42
         /** @var array $files */
43
-        $files = $view->getVariable('assets'.ucfirst($type));
43
+        $files = $view->getVariable('assets' . ucfirst($type));
44 44
 
45 45
         foreach ($files AS $file) {
46 46
             $result .= sprintf($pattern, $file) . "\n";
Please login to merge, or discard this patch.
src/View/Helper/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         foreach ($routes as $routeName => $data) {
40 40
 
41 41
             if ($routeName === $name) {
42
-                $path = preg_replace('|/\((.*)\)|', '', $data['path']);;
42
+                $path = preg_replace('|/\((.*)\)|', '', $data['path']); ;
43 43
                 break;
44 44
             }
45 45
 
Please login to merge, or discard this patch.
src/View/Helper/RenderView.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     public function __invoke(ViewController $view, string $template = '', array $variables = [])
27 27
     {
28 28
         $view = new ViewController();
29
-        $view->setTemplate( $template );
30
-        $view->setVariables( $variables );
29
+        $view->setTemplate($template);
30
+        $view->setVariables($variables);
31 31
         return $view->render();
32 32
     }
33 33
 
Please login to merge, or discard this patch.
src/Mail/Mailer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     protected function sendMail($headers, $message)
162 162
     {
163
-        if (mail(implode(',', $this->recipients), $this->subject,$headers, $message)) {
163
+        if (mail(implode(',', $this->recipients), $this->subject, $headers, $message)) {
164 164
             return true;
165 165
         }
166 166
         return false;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         $headers  = 'MIME-Version: 1.0' . PHP_EOL;
187 187
 
188 188
         if (!empty($this->from)) {
189
-            $headers .= 'From: ' .$this->from . PHP_EOL;
189
+            $headers .= 'From: ' . $this->from . PHP_EOL;
190 190
         }
191 191
 
192 192
         if (!empty($this->replyTo)) {
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
                 }
245 245
 
246 246
                 $body .= 'Content-Transfer-Encoding: base64' . PHP_EOL;
247
-                $body .= 'X-Attachment-Id: ' . rand(1000,99999) . PHP_EOL . PHP_EOL;
247
+                $body .= 'X-Attachment-Id: ' . rand(1000, 99999) . PHP_EOL . PHP_EOL;
248 248
                 $body .= $encodedContent;
249 249
 
250 250
             }
Please login to merge, or discard this patch.