Completed
Pull Request — master (#2)
by David
01:16
created
src/Cacher.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -130,6 +130,9 @@  discard block
 block discarded – undo
130 130
         return in_array($image->getType(), ['gif', 'png']);
131 131
     }
132 132
 
133
+    /**
134
+     * @return resource
135
+     */
133 136
     protected function getImageResource(Image $image)
134 137
     {
135 138
         if ($image->getType() === 'jpeg') {
@@ -166,6 +169,9 @@  discard block
 block discarded – undo
166 169
         return [$cutEdgeWidth, $cutEdgeHeight];
167 170
     }
168 171
 
172
+    /**
173
+     * @param resource $layout
174
+     */
169 175
     protected function saveImage(Image $image, $layout, $width, $height): string
170 176
     {
171 177
         $this->createCacheDirectoryIfNotExists($image, $width, $height);
Please login to merge, or discard this patch.