@@ -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'] |
@@ -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 |
@@ -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 | )) { |