Completed
Push — master ( a86af1...40ca22 )
by Freek
02:57
created
src/Spatie/Glide/Controller/GlideImageController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Spatie/Glide/GlideImage.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,9 +102,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Spatie/Glide/GlideServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.