Completed
Pull Request — master (#9)
by Vytautas
10:39 queued 07:17
created
src/Controller/ImageController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
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]>
Please login to merge, or discard this patch.
src/Transformer/Fit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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']
Please login to merge, or discard this patch.
src/Router/ImageRoute.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
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]>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Transformer/Factory/TransformersManagerFactory.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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]>
Please login to merge, or discard this patch.
src/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.