Completed
Push — master ( b56016...3d433d )
by Pavel
04:25
created
src/ImageAsset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 use yii\web\AssetBundle;
13 13
 
14
-class ImageAsset extends AssetBundle{
14
+class ImageAsset extends AssetBundle {
15 15
     public $sourcePath = '@inblank/image/assets';
16 16
     public $css = [
17 17
         'styles.css',
Please login to merge, or discard this patch.
src/ImageUploadWidget.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -39,22 +39,22 @@
 block discarded – undo
39 39
         if (!isset($form->options['enctype'])) {
40 40
             $form->options['enctype'] = 'multipart/form-data';
41 41
         }
42
-        $str = '<div class="upload-image-preview" style="background-image: url(' . $this->model->imageUrl . ')"></div>' .
42
+        $str = '<div class="upload-image-preview" style="background-image: url('.$this->model->imageUrl.')"></div>'.
43 43
 
44
-            '<div class="upload-image-control">' .
44
+            '<div class="upload-image-control">'.
45 45
 
46
-            '<a class="btn btn-primary upload-image-change" title="' . $this->messages['change'] . '">' .
47
-            Html::activeFileInput($this->model, $this->attribute, $this->options) .
48
-            '<span class="glyphicon glyphicon-save"></span>' .
49
-            '</a>' .
46
+            '<a class="btn btn-primary upload-image-change" title="'.$this->messages['change'].'">'.
47
+            Html::activeFileInput($this->model, $this->attribute, $this->options).
48
+            '<span class="glyphicon glyphicon-save"></span>'.
49
+            '</a>'.
50 50
 
51
-            '<a class="btn btn-danger upload-image-clear" title="' . $this->messages['clear'] . '">' .
52
-            '<span class="glyphicon glyphicon-trash"></span>' .
53
-            '</a>' .
51
+            '<a class="btn btn-danger upload-image-clear" title="'.$this->messages['clear'].'">'.
52
+            '<span class="glyphicon glyphicon-trash"></span>'.
53
+            '</a>'.
54 54
 
55
-            '<a class="btn btn-success upload-image-reset" title="' . $this->messages['reset'] . '">' .
56
-            '<span class="glyphicon glyphicon-repeat"></span>' .
57
-            '</a>' .
55
+            '<a class="btn btn-success upload-image-reset" title="'.$this->messages['reset'].'">'.
56
+            '<span class="glyphicon glyphicon-repeat"></span>'.
57
+            '</a>'.
58 58
 
59 59
             '</div>';
60 60
 
Please login to merge, or discard this patch.