@@ -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]> |
@@ -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'] |
@@ -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\Router\Exception\InvalidArgumentException; |
|
| 10 | 11 | use Zend\Router\Http\RouteInterface; |
| 11 | -use Zend\Stdlib\RequestInterface as Request; |
|
| 12 | 12 | use Zend\Stdlib\ArrayUtils; |
| 13 | -use Zend\Router\Exception\InvalidArgumentException; |
|
| 13 | +use Zend\Stdlib\RequestInterface as Request; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * @author Vytautas Stankus <[email protected]> |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | if ($options instanceof \Traversable) { |
| 40 | 40 | $options = ArrayUtils::iteratorToArray($options); |
| 41 | 41 | } elseif (!is_array($options)) { |
| 42 | - throw new InvalidArgumentException(__METHOD__ . ' expects an array or Traversable set of options'); |
|
| 42 | + throw new InvalidArgumentException(__METHOD__.' expects an array or Traversable set of options'); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | $this->options = array_merge($this->options, $options); |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | namespace SvImages\Transformer\Factory; |
| 3 | 3 | |
| 4 | 4 | use Psr\Container\ContainerInterface; |
| 5 | -use SvImages\Transformer\TransformersManager; |
|
| 6 | 5 | use SvImages\Options\ModuleOptions; |
| 6 | +use SvImages\Transformer\TransformersManager; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * @author Vytautas Stankus <[email protected]> |
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function getConfig() |
| 17 | 17 | { |
| 18 | - return include __DIR__ . '/../config/module.config.php'; |
|
| 18 | + return include __DIR__.'/../config/module.config.php'; |
|
| 19 | 19 | } |
| 20 | 20 | } |