Passed
Push — master ( a8ef92...644c03 )
by Andrey
04:11
created
traits/ThumbnailTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @return mixed
28 28
      */
29
-    public function getDefaultThumbImage(array $options = [])
29
+    public function getDefaultThumbImage(array $options = [ ])
30 30
     {
31 31
         $url = $this->getDefaultThumbUrl();
32 32
 
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
             return null;
35 35
         }
36 36
 
37
-        if (empty($options['alt'])) {
38
-            $options['alt'] = $this->thumbnailModel->alt;
37
+        if (empty($options[ 'alt' ])) {
38
+            $options[ 'alt' ] = $this->thumbnailModel->alt;
39 39
         }
40 40
 
41 41
         return Html::img($url, $options);
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function getDefaultThumbUrl()
50 50
     {
51
-        if (null == $this->getThumbnailModel()){
51
+        if (null == $this->getThumbnailModel()) {
52 52
             return null;
53 53
         }
54 54
 
Please login to merge, or discard this patch.