Completed
Push — master ( 70accb...c646aa )
by Vytautas
05:00 queued 02:15
created
src/Controller/ImageController.php 3 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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Router/ImageRoute.php 1 patch
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\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]>
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/Parser/UriParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
         )) {
Please login to merge, or discard this patch.