@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace Faulancer\Service; |
4 | 4 | |
5 | 5 | use Faulancer\Controller\Controller; |
6 | -use Faulancer\Exception\DbException; |
|
7 | -use Faulancer\Exception\InvalidArgumentException; |
|
8 | 6 | use Faulancer\ORM\User\Entity; |
9 | 7 | use Faulancer\Security\Crypt; |
10 | 8 | use Faulancer\ServiceLocator\ServiceInterface; |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | public function getVariable(string $key) |
166 | 166 | { |
167 | - if(isset($this->variable[$key])) { |
|
167 | + if (isset($this->variable[$key])) { |
|
168 | 168 | return $this->variable[$key]; |
169 | 169 | } |
170 | 170 | |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | */ |
180 | 180 | public function hasVariable(string $key) :bool |
181 | 181 | { |
182 | - if(isset($this->variable[$key])) { |
|
182 | + if (isset($this->variable[$key])) { |
|
183 | 183 | return true; |
184 | 184 | } |
185 | 185 | |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | */ |
195 | 195 | public function setVariables(array $variables = []) |
196 | 196 | { |
197 | - foreach($variables AS $key=>$value) { |
|
197 | + foreach ($variables AS $key=>$value) { |
|
198 | 198 | $this->setVariable($key, $value); |
199 | 199 | } |
200 | 200 | |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | |
270 | 270 | } catch (\Exception $e) { |
271 | 271 | |
272 | - while(ob_get_level() > 1) { |
|
272 | + while (ob_get_level() > 1) { |
|
273 | 273 | ob_end_clean(); |
274 | 274 | } |
275 | 275 | |
@@ -353,8 +353,8 @@ discard block |
||
353 | 353 | */ |
354 | 354 | public function __destruct() |
355 | 355 | { |
356 | - unset( $this->variable ); |
|
357 | - unset( $this->template ); |
|
356 | + unset($this->variable); |
|
357 | + unset($this->template); |
|
358 | 358 | } |
359 | 359 | |
360 | 360 | } |
361 | 361 | \ No newline at end of file |