@@ -113,7 +113,7 @@ |
||
| 113 | 113 | /** |
| 114 | 114 | * Guess MimeType by extension |
| 115 | 115 | * |
| 116 | - * @param $filename |
|
| 116 | + * @param string $filename |
|
| 117 | 117 | * |
| 118 | 118 | * @return string |
| 119 | 119 | * @throws SvImagesException |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | use SvImages\Router\RouteMatch; |
| 8 | 8 | use SvImages\Service\CacheManager; |
| 9 | 9 | use SvImages\Service\ImageService; |
| 10 | -use Zend\Mvc\Controller\AbstractActionController; |
|
| 11 | 10 | use Zend\Http\Response; |
| 11 | +use Zend\Mvc\Controller\AbstractActionController; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * @author Vytautas Stankus <[email protected]> |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | ->addHeaderLine('Content-Length', $contentLength) |
| 104 | 104 | // fixme: maybe add cache options to config |
| 105 | 105 | ->addHeaderLine('Cache-Control', 'max-age=31536000, public') |
| 106 | - ->addHeaderLine('Expires', date_create('+1 years')->format('D, d M Y H:i:s').' GMT'); |
|
| 106 | + ->addHeaderLine('Expires', date_create('+1 years')->format('D, d M Y H:i:s') . ' GMT'); |
|
| 107 | 107 | |
| 108 | 108 | $response->setContent($content); |
| 109 | 109 | |
@@ -7,10 +7,10 @@ |
||
| 7 | 7 | use SvImages\Exception\UnexpectedValueException; |
| 8 | 8 | use SvImages\Parser\Result; |
| 9 | 9 | use SvImages\Parser\UriParser; |
| 10 | +use Zend\Mvc\Router\Exception\InvalidArgumentException; |
|
| 10 | 11 | use Zend\Mvc\Router\Http\RouteInterface; |
| 11 | -use Zend\Stdlib\RequestInterface as Request; |
|
| 12 | 12 | use Zend\Stdlib\ArrayUtils; |
| 13 | -use Zend\Mvc\Router\Exception\InvalidArgumentException; |
|
| 13 | +use Zend\Stdlib\RequestInterface as Request; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * @author Vytautas Stankus <[email protected]> |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $image->fit( |
| 58 | 58 | $options['width'], |
| 59 | 59 | $options['height'], |
| 60 | - function ($constraint) { |
|
| 60 | + function($constraint) { |
|
| 61 | 61 | $constraint->upsize(); |
| 62 | 62 | }, |
| 63 | 63 | $options['position'] |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $container = $this->options['container']; |
| 43 | 43 | if (!preg_match( |
| 44 | - '/^\/'.preg_quote($container, '/').'(?:\/(?<transformers>[a-zA-Z0-9_\-,\/]+))\/f_key(?<file_path>\/.+)$/', |
|
| 44 | + '/^\/' . preg_quote($container, '/') . '(?:\/(?<transformers>[a-zA-Z0-9_\-,\/]+))\/f_key(?<file_path>\/.+)$/', |
|
| 45 | 45 | $path, |
| 46 | 46 | $matches |
| 47 | 47 | )) { |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace SvImages\Transformer\Factory; |
| 3 | 3 | |
| 4 | -use SvImages\Transformer\TransformersManager; |
|
| 5 | 4 | use SvImages\Options\ModuleOptions; |
| 5 | +use SvImages\Transformer\TransformersManager; |
|
| 6 | 6 | use Zend\ServiceManager\FactoryInterface; |
| 7 | 7 | use Zend\ServiceManager\ServiceLocatorInterface; |
| 8 | 8 | |