Completed
Push — master ( 5ccb75...f18251 )
by Flo
33s
created
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/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/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.
src/Controller/Dispatcher.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Faulancer\Service\Config;
17 17
 use Faulancer\Service\ResponseService;
18 18
 use Faulancer\ServiceLocator\ServiceLocator;
19
-use Faulancer\Session\SessionManager;
20 19
 
21 20
 /**
22 21
  * Class Dispatcher
Please login to merge, or discard this patch.
src/Translate/Translator.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 use Faulancer\Service\Config;
12 12
 use Faulancer\Service\SessionManagerService;
13 13
 use Faulancer\ServiceLocator\ServiceLocator;
14
-use Faulancer\Session\SessionManager;
15
-use Symfony\Component\EventDispatcher\Tests\Service;
16 14
 
17 15
 /**
18 16
  * Class Translator
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(string $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
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function hasVariable(string $key) :bool
134 134
     {
135
-        if(isset($this->variable[$key])) {
135
+        if (isset($this->variable[$key])) {
136 136
             return true;
137 137
         }
138 138
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public function setVariables(array $variables = []) :self
149 149
     {
150
-        foreach($variables AS $key=>$value) {
150
+        foreach ($variables AS $key=>$value) {
151 151
             $this->setVariable($key, $value);
152 152
         }
153 153
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
         ob_end_clean();
214 214
 
215
-        if( $this->getParentTemplate() instanceof ViewController ) {
215
+        if ($this->getParentTemplate() instanceof ViewController) {
216 216
             return $this->cleanOutput($this->getParentTemplate()->setVariables($this->getVariables())->render());
217 217
         } else {
218 218
             return $this->cleanOutput($content);
@@ -263,8 +263,8 @@  discard block
 block discarded – undo
263 263
      */
264 264
     public function __destruct()
265 265
     {
266
-        unset( $this->variable );
267
-        unset( $this->template );
266
+        unset($this->variable);
267
+        unset($this->template);
268 268
     }
269 269
 
270 270
 }
271 271
\ No newline at end of file
Please login to merge, or discard this patch.
src/Http/Http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     protected function triggerRedirect($location = '/', $code = 301)
46 46
     {
47 47
         header('HTTP/2 ' . $code . ' ' . Response::HTTP_STATUS_CODES[$code]);
48
-        header('Location: ' .  $location);
48
+        header('Location: ' . $location);
49 49
 
50 50
         exit(0);
51 51
     }
Please login to merge, or discard this patch.