Completed
Pull Request — master (#16)
by Flo
07:29
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/Controller.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 namespace Faulancer\Controller;
9 9
 
10 10
 use Faulancer\Http\Request;
11
-use Faulancer\Http\Uri;
12 11
 use Faulancer\Service\AuthenticatorService;
13 12
 use Faulancer\Service\DbService;
14 13
 use Faulancer\Service\HttpService;
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/Service/AuthenticatorService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Faulancer\Controller\Controller;
10 10
 use Faulancer\ORM\User\Entity as UserEntity;
11 11
 use Faulancer\ServiceLocator\ServiceInterface;
12
-use Faulancer\Session\SessionManager;
13 12
 
14 13
 /**
15 14
  * Class AuthenticatorService
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.