@@ -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 |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | - * @param $file |
|
| 132 | + * @param string $file |
|
| 133 | 133 | * @return string |
| 134 | 134 | * @codeCoverageIgnore |
| 135 | 135 | */ |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | - * @param $file |
|
| 144 | + * @param string $file |
|
| 145 | 145 | * @return string |
| 146 | 146 | * @codeCoverageIgnore |
| 147 | 147 | */ |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Faulancer\Http\Request; |
| 14 | 14 | use Faulancer\Http\Response; |
| 15 | 15 | use Faulancer\Exception\MethodNotFoundException; |
| 16 | -use Faulancer\Service\AuthenticatorPlugin; |
|
| 17 | 16 | use Faulancer\Service\AuthenticatorService; |
| 18 | 17 | use Faulancer\Service\Config; |
| 19 | 18 | use Faulancer\Service\SessionManagerService; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @param string $location The path as string |
| 22 | 22 | * @param integer $code The status code |
| 23 | - * @return mixed |
|
| 23 | + * @return boolean |
|
| 24 | 24 | * @throws InvalidArgumentException |
| 25 | 25 | */ |
| 26 | 26 | public function redirect(string $location, int $code = 301) |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * @param $request |
|
| 79 | + * @param Request $request |
|
| 80 | 80 | * @param $e |
| 81 | 81 | * @return Http\Response |
| 82 | 82 | * @codeCoverageIgnore |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | namespace Faulancer\ORM; |
| 9 | 9 | |
| 10 | 10 | use Faulancer\Service\AbstractControllerService; |
| 11 | -use Faulancer\Service\DbService; |
|
| 12 | 11 | use Faulancer\ServiceLocator\ServiceLocator; |
| 13 | 12 | use \ORM\EntityManager; |
| 14 | 13 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | /** |
| 95 | 95 | * Get response body and set headers |
| 96 | 96 | * |
| 97 | - * @return mixed |
|
| 97 | + * @return string |
|
| 98 | 98 | */ |
| 99 | 99 | public function getContent() |
| 100 | 100 | { |
@@ -302,7 +302,7 @@ |
||
| 302 | 302 | } |
| 303 | 303 | |
| 304 | 304 | /** |
| 305 | - * @param $type |
|
| 305 | + * @param string $type |
|
| 306 | 306 | * @return bool |
| 307 | 307 | */ |
| 308 | 308 | private function translateType($type) |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Faulancer\Service\SessionManagerService; |
| 14 | 14 | use Faulancer\ServiceLocator\ServiceLocator; |
| 15 | 15 | use Faulancer\Form\Validator\ValidatorChain; |
| 16 | -use Faulancer\ServiceLocator\ServiceLocatorAwareInterface; |
|
| 17 | 16 | use Faulancer\ServiceLocator\ServiceLocatorInterface; |
| 18 | 17 | use Faulancer\Session\SessionManager; |
| 19 | 18 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * @param $dom |
| 31 | 31 | * @param $data |
| 32 | - * @return bool|\DOMElement |
|
| 32 | + * @return \DOMNode |
|
| 33 | 33 | */ |
| 34 | 34 | protected function generateXmlElement(\DOMDocument $dom, $data ) |
| 35 | 35 | { |
@@ -131,6 +131,9 @@ discard block |
||
| 131 | 131 | return $this; |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | + /** |
|
| 135 | + * @param string $file |
|
| 136 | + */ |
|
| 134 | 137 | protected function minifyAsset($file) |
| 135 | 138 | { |
| 136 | 139 | |
@@ -191,7 +194,7 @@ discard block |
||
| 191 | 194 | * Get a single variable |
| 192 | 195 | * |
| 193 | 196 | * @param string $key |
| 194 | - * @return string|array |
|
| 197 | + * @return string |
|
| 195 | 198 | */ |
| 196 | 199 | public function getVariable(string $key) |
| 197 | 200 | { |
@@ -7,14 +7,10 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace Faulancer\View; |
| 9 | 9 | |
| 10 | -use Faulancer\Exception\ClassNotFoundException; |
|
| 11 | 10 | use Faulancer\Exception\ConstantMissingException; |
| 12 | -use Faulancer\Exception\Exception; |
|
| 13 | 11 | use Faulancer\Exception\FileNotFoundException; |
| 14 | 12 | use Faulancer\Exception\ViewHelperException; |
| 15 | -use Faulancer\Exception\ViewHelperIncompatibleException; |
|
| 16 | 13 | use Faulancer\Service\Config; |
| 17 | -use Faulancer\Service\ResponseService; |
|
| 18 | 14 | use Faulancer\ServiceLocator\ServiceLocator; |
| 19 | 15 | |
| 20 | 16 | /** |