Passed
Push — master ( 0dfe52...1cd536 )
by Evgenii
03:38
created
src/views/default/_single.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             <?= Html::hiddenInput($name ?: ((new ReflectionClass($model->class))->getShortName() . "[{$model->field}_ids][]"), $model->id) ?>
42 42
         </div>
43 43
 
44
-    <?php else: ?>
44
+    <?php else : ?>
45 45
 
46 46
         <div data-title="<?= $model->title ?>"
47 47
              id="yii2-file-object-<?= $model->id ?>"
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,8 +18,9 @@  discard block
 block discarded – undo
18 18
 use yii\helpers\Html;
19 19
 use yii\web\View;
20 20
 
21
-if (is_array($model))
21
+if (is_array($model)) {
22 22
     $model = $model[array_key_first($model)];
23
+}
23 24
 
24 25
 $doc_contents = [
25 26
     'application/msword',
@@ -41,7 +42,8 @@  discard block
 block discarded – undo
41 42
             <?= Html::hiddenInput($name ?: ((new ReflectionClass($model->class))->getShortName() . "[{$model->field}_ids][]"), $model->id) ?>
42 43
         </div>
43 44
 
44
-    <?php else: ?>
45
+    <?php else {
46
+    : ?>
45 47
 
46 48
         <div data-title="<?= $model->title ?>"
47 49
              id="yii2-file-object-<?= $model->id ?>"
@@ -56,7 +58,9 @@  discard block
 block discarded – undo
56 58
             <?php if ($model->type != FileType::IMAGE): ?>
57 59
                 <?= $model->icon ?>
58 60
                 <?= $model->title ?>
59
-            <?php endif; ?>
61
+            <?php endif;
62
+}
63
+?>
60 64
         </div>
61 65
     <?php endif; ?>
62 66
 
Please login to merge, or discard this patch.
src/components/PictureListWidget.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,9 @@
 block discarded – undo
37 37
 
38 38
         $renderedPictures = [];
39 39
 
40
-        if ($this->passFirst && sizeof($this->models) > 0)
41
-            $this->models = array_slice($this->models, 1);
40
+        if ($this->passFirst && sizeof($this->models) > 0) {
41
+                    $this->models = array_slice($this->models, 1);
42
+        }
42 43
 
43 44
         $lightboxKey = $this->models[0]->field . '-' . $this->models[0]->object_id;
44 45
 
Please login to merge, or discard this patch.