@@ -45,13 +45,13 @@ discard block |
||
45 | 45 | */ |
46 | 46 | protected function validateSignature() |
47 | 47 | { |
48 | - foreach($this->request->all() as $parameter => $value) { |
|
49 | - if(empty($value) === true) { |
|
48 | + foreach ($this->request->all() as $parameter => $value) { |
|
49 | + if (empty($value) === true) { |
|
50 | 50 | $this->request->query->remove($parameter); |
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
54 | - if($this->glideConfig['useSecureURLs']) { |
|
54 | + if ($this->glideConfig['useSecureURLs']) { |
|
55 | 55 | SignatureFactory::create($this->app['config']->get('app.key')) |
56 | 56 | ->validateRequest($this->request); |
57 | 57 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | protected function setGlideServer($source, $cache, $api) |
94 | 94 | { |
95 | - $server = new Server($source, $cache,$api); |
|
95 | + $server = new Server($source, $cache, $api); |
|
96 | 96 | |
97 | 97 | $server->setBaseUrl($this->glideConfig['baseURL']); |
98 | 98 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | private function createCacheFolder() |
117 | 117 | { |
118 | - if( ! is_dir($this->glideConfig['cache']['path'])) |
|
118 | + if (!is_dir($this->glideConfig['cache']['path'])) |
|
119 | 119 | { |
120 | 120 | mkdir($this->glideConfig['cache']['path'], 0777, true); |
121 | 121 | } |
@@ -102,9 +102,9 @@ |
||
102 | 102 | |
103 | 103 | file_put_contents($outputFile, $outputImageData); |
104 | 104 | |
105 | - /** |
|
106 | - * Triggering the garbage collection solves a memory leak in an underlying package. |
|
107 | - */ |
|
105 | + /** |
|
106 | + * Triggering the garbage collection solves a memory leak in an underlying package. |
|
107 | + */ |
|
108 | 108 | gc_collect_cycles(); |
109 | 109 | |
110 | 110 | return $this->getURL(); |
@@ -154,7 +154,7 @@ |
||
154 | 154 | */ |
155 | 155 | private function getPathToImage() |
156 | 156 | { |
157 | - if( $this->useAbsolutePath) |
|
157 | + if ($this->useAbsolutePath) |
|
158 | 158 | { |
159 | 159 | return $this->sourceFile; |
160 | 160 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function register() |
39 | 39 | { |
40 | - $this->app->bind('laravel-glide-image', function () { |
|
40 | + $this->app->bind('laravel-glide-image', function() { |
|
41 | 41 | |
42 | 42 | $glideImage = new GlideImage(); |
43 | 43 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function getSignKey($glideConfig) |
83 | 83 | { |
84 | - if(! isset($glideConfig['useSecureURLs'])) |
|
84 | + if (!isset($glideConfig['useSecureURLs'])) |
|
85 | 85 | { |
86 | 86 | return Config::get('app.key'); |
87 | 87 | } |