@@ -50,11 +50,11 @@ |
||
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 |
@@ -25,7 +25,7 @@ |
||
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)); |
@@ -40,7 +40,7 @@ |
||
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"; |
@@ -26,8 +26,8 @@ |
||
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 |
@@ -160,7 +160,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -8,7 +8,6 @@ |
||
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; |
@@ -16,7 +16,6 @@ |
||
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 |
@@ -9,7 +9,6 @@ |
||
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 |
@@ -11,8 +11,6 @@ |
||
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 |