Completed
Branch feature/scrutinizer (10e3c1)
by Tobias
05:25
created
src/modules/backend/assets/AdminAsset.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.yiiframework.com/
4
- *
5
- * @copyright Copyright (c) 2008 Yii Software LLC
6
- * @license http://www.yiiframework.com/license/
7
- */
3
+     * @link http://www.yiiframework.com/
4
+     *
5
+     * @copyright Copyright (c) 2008 Yii Software LLC
6
+     * @license http://www.yiiframework.com/license/
7
+     */
8 8
 namespace app\modules\backend\assets;
9 9
 
10 10
 use yii\helpers\FileHelper;
Please login to merge, or discard this patch.
src/modules/backend/controllers/DefaultController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
                     ],
29 29
                     [
30 30
                         'allow' => true,
31
-                        'matchCallback' => function ($rule, $action) {
31
+                        'matchCallback' => function($rule, $action) {
32 32
                             return \Yii::$app->user->can(
33 33
                                 $this->module->id.'_'.$this->id.'_'.$action->id,
34 34
                                 ['route' => true]
Please login to merge, or discard this patch.
src/modules/backend/views/layouts/_sidebar.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
 
61 61
     // check for module configuration and assign to favourites
62 62
     $moduleConfigItem = (is_object($module)) ?
63
-        (isset($module->params['menuItems']) ? $module->params['menuItems'] : []) :
64
-        (isset($module['params']['menuItems']) ? $module['params']['menuItems'] : []);
63
+        (isset($module->params['menuItems']) ? $module->params['menuItems'] : []) : (isset($module['params']['menuItems']) ? $module['params']['menuItems'] : []);
65 64
     switch (true) {
66 65
         case !empty($moduleConfigItem):
67 66
             $moduleConfigItem = array_merge($defaultItem, $moduleConfigItem);
Please login to merge, or discard this patch.
src/modules/prototype/controllers/api/LessController.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 {
14 14
     public $modelClass = 'app\modules\prototype\models\Less';
15 15
     /**
16
-    * @inheritdoc
17
-    */
16
+     * @inheritdoc
17
+     */
18 18
     public function behaviors()
19 19
     {
20 20
         return ArrayHelper::merge(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                     'rules' => [
26 26
                         [
27 27
                             'allow' => true,
28
-                            'matchCallback' => function ($rule, $action) {return \Yii::$app->user->can($this->module->id . '_' . $this->id . '_' . $action->id, ['route' => true]);},
28
+                            'matchCallback' => function($rule, $action) {return \Yii::$app->user->can($this->module->id.'_'.$this->id.'_'.$action->id, ['route' => true]); },
29 29
                         ]
30 30
                     ]
31 31
                 ]
Please login to merge, or discard this patch.
src/modules/prototype/controllers/base/HtmlController.php 3 patches
Indentation   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -23,71 +23,71 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public $enableCsrfValidation = false;
25 25
 
26
-		/**
27
-	* @inheritdoc
28
-	*/
29
-	public function behaviors()
30
-	{
31
-		return [
32
-			'access' => [
33
-				'class' => AccessControl::className(),
34
-				'rules' => [
35
-					[
36
-						'allow' => true,
37
-						'matchCallback' => function ($rule, $action) {return \Yii::$app->user->can($this->module->id . '_' . $this->id . '_' . $action->id, ['route' => true]);},
38
-					]
39
-				]
40
-			]
41
-		];
42
-	}
26
+        /**
27
+         * @inheritdoc
28
+         */
29
+    public function behaviors()
30
+    {
31
+        return [
32
+            'access' => [
33
+                'class' => AccessControl::className(),
34
+                'rules' => [
35
+                    [
36
+                        'allow' => true,
37
+                        'matchCallback' => function ($rule, $action) {return \Yii::$app->user->can($this->module->id . '_' . $this->id . '_' . $action->id, ['route' => true]);},
38
+                    ]
39
+                ]
40
+            ]
41
+        ];
42
+    }
43 43
 	
44
-	/**
45
-	 * Lists all Html models.
46
-	 * @return mixed
47
-	 */
48
-	public function actionIndex()
49
-	{
50
-		$searchModel  = new HtmlSearch;
51
-		$dataProvider = $searchModel->search($_GET);
44
+    /**
45
+     * Lists all Html models.
46
+     * @return mixed
47
+     */
48
+    public function actionIndex()
49
+    {
50
+        $searchModel  = new HtmlSearch;
51
+        $dataProvider = $searchModel->search($_GET);
52 52
 
53
-		Tabs::clearLocalStorage();
53
+        Tabs::clearLocalStorage();
54 54
 
55 55
         Url::remember();
56 56
         \Yii::$app->session['__crudReturnUrl'] = null;
57 57
 
58
-		return $this->render('index', [
59
-			'dataProvider' => $dataProvider,
60
-			'searchModel' => $searchModel,
61
-		]);
62
-	}
58
+        return $this->render('index', [
59
+            'dataProvider' => $dataProvider,
60
+            'searchModel' => $searchModel,
61
+        ]);
62
+    }
63 63
 
64
-	/**
65
-	 * Displays a single Html model.
66
-	 * @param integer $id
64
+    /**
65
+     * Displays a single Html model.
66
+     * @param integer $id
67 67
      *
68
-	 * @return mixed
69
-	 */
70
-	public function actionView($id)
71
-	{
68
+     * @return mixed
69
+     */
70
+    public function actionView($id)
71
+    {
72 72
         \Yii::$app->session['__crudReturnUrl'] = Url::previous();
73 73
         Url::remember();
74 74
         Tabs::rememberActiveState();
75 75
 
76 76
         return $this->render('view', [
77
-			'model' => $this->findModel($id),
78
-		]);
79
-	}
80
-
81
-	/**
82
-	 * Creates a new Html model.
83
-	 * If creation is successful, the browser will be redirected to the 'view' page.
84
-	 * @return mixed
85
-	 */
86
-	public function actionCreate()
87
-	{
88
-		$model = new Html;
89
-
90
-		try {
77
+            'model' => $this->findModel($id),
78
+        ]);
79
+    }
80
+
81
+    /**
82
+     * Creates a new Html model.
83
+     * If creation is successful, the browser will be redirected to the 'view' page.
84
+     * @return mixed
85
+     */
86
+    public function actionCreate()
87
+    {
88
+        $model = new Html;
89
+
90
+        try {
91 91
             if ($model->load($_POST) && $model->save()) {
92 92
                 return $this->redirect(Url::previous());
93 93
             } elseif (!\Yii::$app->request->isPost) {
@@ -96,37 +96,37 @@  discard block
 block discarded – undo
96 96
         } catch (\Exception $e) {
97 97
             $msg = (isset($e->errorInfo[2]))?$e->errorInfo[2]:$e->getMessage();
98 98
             $model->addError('_exception', $msg);
99
-		}
99
+        }
100 100
         return $this->render('create', ['model' => $model]);
101
-	}
102
-
103
-	/**
104
-	 * Updates an existing Html model.
105
-	 * If update is successful, the browser will be redirected to the 'view' page.
106
-	 * @param integer $id
107
-	 * @return mixed
108
-	 */
109
-	public function actionUpdate($id)
110
-	{
111
-		$model = $this->findModel($id);
112
-
113
-		if ($model->load($_POST) && $model->save()) {
101
+    }
102
+
103
+    /**
104
+     * Updates an existing Html model.
105
+     * If update is successful, the browser will be redirected to the 'view' page.
106
+     * @param integer $id
107
+     * @return mixed
108
+     */
109
+    public function actionUpdate($id)
110
+    {
111
+        $model = $this->findModel($id);
112
+
113
+        if ($model->load($_POST) && $model->save()) {
114 114
             return $this->redirect(Url::previous());
115
-		} else {
116
-			return $this->render('update', [
117
-				'model' => $model,
118
-			]);
119
-		}
120
-	}
121
-
122
-	/**
123
-	 * Deletes an existing Html model.
124
-	 * If deletion is successful, the browser will be redirected to the 'index' page.
125
-	 * @param integer $id
126
-	 * @return mixed
127
-	 */
128
-	public function actionDelete($id)
129
-	{
115
+        } else {
116
+            return $this->render('update', [
117
+                'model' => $model,
118
+            ]);
119
+        }
120
+    }
121
+
122
+    /**
123
+     * Deletes an existing Html model.
124
+     * If deletion is successful, the browser will be redirected to the 'index' page.
125
+     * @param integer $id
126
+     * @return mixed
127
+     */
128
+    public function actionDelete($id)
129
+    {
130 130
         try {
131 131
             $this->findModel($id)->delete();
132 132
         } catch (\Exception $e) {
@@ -140,29 +140,29 @@  discard block
 block discarded – undo
140 140
         if ($isPivot == true) {
141 141
             return $this->redirect(Url::previous());
142 142
         } elseif (isset(\Yii::$app->session['__crudReturnUrl']) && \Yii::$app->session['__crudReturnUrl'] != '/') {
143
-			Url::remember(null);
144
-			$url = \Yii::$app->session['__crudReturnUrl'];
145
-			\Yii::$app->session['__crudReturnUrl'] = null;
143
+            Url::remember(null);
144
+            $url = \Yii::$app->session['__crudReturnUrl'];
145
+            \Yii::$app->session['__crudReturnUrl'] = null;
146 146
 
147
-			return $this->redirect($url);
147
+            return $this->redirect($url);
148 148
         } else {
149 149
             return $this->redirect(['index']);
150 150
         }
151
-	}
152
-
153
-	/**
154
-	 * Finds the Html model based on its primary key value.
155
-	 * If the model is not found, a 404 HTTP exception will be thrown.
156
-	 * @param integer $id
157
-	 * @return Html the loaded model
158
-	 * @throws HttpException if the model cannot be found
159
-	 */
160
-	protected function findModel($id)
161
-	{
162
-		if (($model = Html::findOne($id)) !== null) {
163
-			return $model;
164
-		} else {
165
-			throw new HttpException(404, 'The requested page does not exist.');
166
-		}
167
-	}
151
+    }
152
+
153
+    /**
154
+     * Finds the Html model based on its primary key value.
155
+     * If the model is not found, a 404 HTTP exception will be thrown.
156
+     * @param integer $id
157
+     * @return Html the loaded model
158
+     * @throws HttpException if the model cannot be found
159
+     */
160
+    protected function findModel($id)
161
+    {
162
+        if (($model = Html::findOne($id)) !== null) {
163
+            return $model;
164
+        } else {
165
+            throw new HttpException(404, 'The requested page does not exist.');
166
+        }
167
+    }
168 168
 }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	
44 44
 	/**
45 45
 	 * Lists all Less models.
46
-	 * @return mixed
46
+	 * @return string
47 47
 	 */
48 48
 	public function actionIndex()
49 49
 	{
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * Displays a single Less model.
66 66
 	 * @param integer $id
67 67
      *
68
-	 * @return mixed
68
+	 * @return string
69 69
 	 */
70 70
 	public function actionView($id)
71 71
 	{
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	 * Deletes an existing Less model.
124 124
 	 * If deletion is successful, the browser will be redirected to the 'index' page.
125 125
 	 * @param integer $id
126
-	 * @return mixed
126
+	 * @return \yii\web\Response
127 127
 	 */
128 128
 	public function actionDelete($id)
129 129
 	{
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 				'rules' => [
35 35
 					[
36 36
 						'allow' => true,
37
-						'matchCallback' => function ($rule, $action) {return \Yii::$app->user->can($this->module->id . '_' . $this->id . '_' . $action->id, ['route' => true]);},
37
+						'matchCallback' => function($rule, $action) {return \Yii::$app->user->can($this->module->id.'_'.$this->id.'_'.$action->id, ['route' => true]); },
38 38
 					]
39 39
 				]
40 40
 			]
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                 $model->load($_GET);
95 95
             }
96 96
         } catch (\Exception $e) {
97
-            $msg = (isset($e->errorInfo[2]))?$e->errorInfo[2]:$e->getMessage();
97
+            $msg = (isset($e->errorInfo[2])) ? $e->errorInfo[2] : $e->getMessage();
98 98
             $model->addError('_exception', $msg);
99 99
 		}
100 100
         return $this->render('create', ['model' => $model]);
@@ -130,13 +130,13 @@  discard block
 block discarded – undo
130 130
         try {
131 131
             $this->findModel($id)->delete();
132 132
         } catch (\Exception $e) {
133
-            $msg = (isset($e->errorInfo[2]))?$e->errorInfo[2]:$e->getMessage();
133
+            $msg = (isset($e->errorInfo[2])) ? $e->errorInfo[2] : $e->getMessage();
134 134
             \Yii::$app->getSession()->addFlash('error', $msg);
135 135
             return $this->redirect(Url::previous());
136 136
         }
137 137
 
138 138
         // TODO: improve detection
139
-        $isPivot = strstr('$id',',');
139
+        $isPivot = strstr('$id', ',');
140 140
         if ($isPivot == true) {
141 141
             return $this->redirect(Url::previous());
142 142
         } elseif (isset(\Yii::$app->session['__crudReturnUrl']) && \Yii::$app->session['__crudReturnUrl'] != '/') {
Please login to merge, or discard this patch.
src/modules/prototype/migrations/m151226_111407_init.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
     {
10 10
         $this->createTable('{{%html}}', [
11 11
             'id' => Schema::TYPE_PK,
12
-            'key' => Schema::TYPE_STRING . ' NOT NULL',
13
-            'value' => Schema::TYPE_TEXT . ' NOT NULL',
12
+            'key' => Schema::TYPE_STRING.' NOT NULL',
13
+            'value' => Schema::TYPE_TEXT.' NOT NULL',
14 14
         ]);
15
-        $this->createIndex('html_key_unique','{{%html}}', 'key', true);
15
+        $this->createIndex('html_key_unique', '{{%html}}', 'key', true);
16 16
 
17 17
         $this->createTable('{{%less}}', [
18 18
             'id' => Schema::TYPE_PK,
19
-            'key' => Schema::TYPE_STRING . ' NOT NULL',
19
+            'key' => Schema::TYPE_STRING.' NOT NULL',
20 20
             'value' => Schema::TYPE_TEXT,
21 21
         ]);
22
-        $this->createIndex('less_key_unique','{{%less}}', 'key', true);
22
+        $this->createIndex('less_key_unique', '{{%less}}', 'key', true);
23 23
     }
24 24
 
25 25
     public function down()
Please login to merge, or discard this patch.
src/modules/prototype/views/html/index.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 /**
8 8
 * @var yii\web\View $this
9 9
 * @var yii\data\ActiveDataProvider $dataProvider
10
-    * @var app\modules\prototype\models\search\Html $searchModel
10
+ * @var app\modules\prototype\models\search\Html $searchModel
11 11
 */
12 12
 
13 13
 $this->title = Yii::t('app', 'Htmls');
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             },
81 81
             'contentOptions' => ['nowrap'=>'nowrap']
82 82
         ],
83
-			'key',
83
+            'key',
84 84
         ],
85 85
         ]); ?>
86 86
     </div>
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     </h1>
30 30
     <div class="clearfix crud-navigation">
31 31
         <div class="pull-left">
32
-            <?= Html::a('<span class="glyphicon glyphicon-plus"></span> ' . Yii::t('app', 'New'), ['create'], ['class' => 'btn btn-success']) ?>
32
+            <?= Html::a('<span class="glyphicon glyphicon-plus"></span> '.Yii::t('app', 'New'), ['create'], ['class' => 'btn btn-success']) ?>
33 33
         </div>
34 34
 
35 35
         <div class="pull-right">
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             [
41 41
             'id' => 'giiant-relations',
42 42
             'encodeLabel' => false,
43
-            'label' => '<span class="glyphicon glyphicon-paperclip"></span> ' . Yii::t('app', 'Relations'),
43
+            'label' => '<span class="glyphicon glyphicon-paperclip"></span> '.Yii::t('app', 'Relations'),
44 44
             'dropdown' => [
45 45
             'options' => [
46 46
             'class' => 'dropdown-menu-right'
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         'pager' => [
65 65
         'class' => yii\widgets\LinkPager::className(),
66 66
         'firstPageLabel' => Yii::t('app', 'First'),
67
-        'lastPageLabel' => Yii::t('app', 'Last')        ],
67
+        'lastPageLabel' => Yii::t('app', 'Last')],
68 68
                     'filterModel' => $searchModel,
69 69
                 'tableOptions' => ['class' => 'table table-striped table-bordered table-hover'],
70 70
         'headerRowOptions' => ['class'=>'x'],
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
             'class' => 'yii\grid\ActionColumn',
75 75
             'urlCreator' => function($action, $model, $key, $index) {
76 76
                 // using the column name as key, not mapping to 'id' like the standard generator
77
-                $params = is_array($key) ? $key : [$model->primaryKey()[0] => (string) $key];
78
-                $params[0] = \Yii::$app->controller->id ? \Yii::$app->controller->id . '/' . $action : $action;
77
+                $params = is_array($key) ? $key : [$model->primaryKey()[0] => (string)$key];
78
+                $params[0] = \Yii::$app->controller->id ? \Yii::$app->controller->id.'/'.$action : $action;
79 79
                 return Url::toRoute($params);
80 80
             },
81 81
             'contentOptions' => ['nowrap'=>'nowrap']
Please login to merge, or discard this patch.
src/modules/prototype/views/html/update.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @var app\modules\prototype\models\Html $model
8 8
  */
9 9
 
10
-$this->title = 'Html ' . $model->id . ', ' . Yii::t('app', 'Edit');
10
+$this->title = 'Html '.$model->id.', '.Yii::t('app', 'Edit');
11 11
 $this->params['breadcrumbs'][] = ['label' => 'Htmls', 'url' => ['index']];
12 12
 $this->params['breadcrumbs'][] = ['label' => (string)$model->id, 'url' => ['view', 'id' => $model->id]];
13 13
 $this->params['breadcrumbs'][] = Yii::t('app', 'Edit');
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     </h1>
21 21
 
22 22
     <div class="crud-navigation">
23
-        <?= Html::a('<span class="glyphicon glyphicon-eye-open"></span> ' . Yii::t('app', 'View'), ['view', 'id' => $model->id], ['class' => 'btn btn-default']) ?>
23
+        <?= Html::a('<span class="glyphicon glyphicon-eye-open"></span> '.Yii::t('app', 'View'), ['view', 'id' => $model->id], ['class' => 'btn btn-default']) ?>
24 24
     </div>
25 25
 
26 26
 	<?php echo $this->render('_form', [
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     </div>
25 25
 
26 26
 	<?php echo $this->render('_form', [
27
-		'model' => $model,
28
-	]); ?>
27
+        'model' => $model,
28
+    ]); ?>
29 29
 
30 30
 </div>
Please login to merge, or discard this patch.
src/modules/prototype/views/html/view.php 3 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 */
14 14
 $copyParams = $model->attributes;
15 15
 
16
-$this->title = 'Html ' . $model->id;
16
+$this->title = 'Html '.$model->id;
17 17
 $this->params['breadcrumbs'][] = ['label' => 'Htmls', 'url' => ['index']];
18 18
 $this->params['breadcrumbs'][] = ['label' => (string)$model->id, 'url' => ['view', 'id' => $model->id]];
19 19
 $this->params['breadcrumbs'][] = Yii::t('app', 'View');
@@ -39,12 +39,12 @@  discard block
 block discarded – undo
39 39
     <div class="clearfix crud-navigation">
40 40
         <!-- menu buttons -->
41 41
         <div class='pull-left'>
42
-            <?= Html::a('<span class="glyphicon glyphicon-pencil"></span> ' . Yii::t('app', 'Edit'), ['update', 'id' => $model->id],['class' => 'btn btn-info']) ?>
43
-            <?= Html::a('<span class="glyphicon glyphicon-copy"></span> ' . Yii::t('app', 'Copy'), ['create', 'id' => $model->id, 'Html'=>$copyParams],['class' => 'btn btn-success']) ?>
44
-            <?= Html::a('<span class="glyphicon glyphicon-plus"></span> ' . Yii::t('app', 'New'), ['create'], ['class' => 'btn btn-success']) ?>
42
+            <?= Html::a('<span class="glyphicon glyphicon-pencil"></span> '.Yii::t('app', 'Edit'), ['update', 'id' => $model->id], ['class' => 'btn btn-info']) ?>
43
+            <?= Html::a('<span class="glyphicon glyphicon-copy"></span> '.Yii::t('app', 'Copy'), ['create', 'id' => $model->id, 'Html'=>$copyParams], ['class' => 'btn btn-success']) ?>
44
+            <?= Html::a('<span class="glyphicon glyphicon-plus"></span> '.Yii::t('app', 'New'), ['create'], ['class' => 'btn btn-success']) ?>
45 45
         </div>
46 46
         <div class="pull-right">
47
-            <?= Html::a('<span class="glyphicon glyphicon-list"></span> ' . Yii::t('app', 'List Htmls'), ['index'], ['class'=>'btn btn-default']) ?>
47
+            <?= Html::a('<span class="glyphicon glyphicon-list"></span> '.Yii::t('app', 'List Htmls'), ['index'], ['class'=>'btn btn-default']) ?>
48 48
         </div>
49 49
 
50 50
     </div>
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
     
66 66
     <hr/>
67 67
 
68
-    <?= Html::a('<span class="glyphicon glyphicon-trash"></span> ' . Yii::t('app', 'Delete'), ['delete', 'id' => $model->id],
68
+    <?= Html::a('<span class="glyphicon glyphicon-trash"></span> '.Yii::t('app', 'Delete'), ['delete', 'id' => $model->id],
69 69
     [
70 70
     'class' => 'btn btn-danger',
71
-    'data-confirm' => '' . Yii::t('app', 'Are you sure to delete this item?') . '',
71
+    'data-confirm' => ''.Yii::t('app', 'Are you sure to delete this item?').'',
72 72
     'data-method' => 'post',
73 73
     ]); ?>
74 74
     <?php $this->endBlock(); ?>
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                  [
80 80
                      'id' => 'relation-tabs',
81 81
                      'encodeLabels' => false,
82
-                     'items' => [ [
82
+                     'items' => [[
83 83
     'label'   => '<b class=""># '.$model->id.'</b>',
84 84
     'content' => $this->blocks['app\modules\prototype\models\Html'],
85 85
     'active'  => true,
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use dmstr\helpers\Html;
4
-use yii\helpers\Url;
5
-use yii\grid\GridView;
6 4
 use yii\widgets\DetailView;
7
-use yii\widgets\Pjax;
8 5
 use dmstr\bootstrap\Tabs;
9 6
 
10 7
 /**
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,15 +76,15 @@
 block discarded – undo
76 76
 
77 77
     
78 78
     <?= Tabs::widget(
79
-                 [
80
-                     'id' => 'relation-tabs',
81
-                     'encodeLabels' => false,
82
-                     'items' => [ [
79
+                    [
80
+                        'id' => 'relation-tabs',
81
+                        'encodeLabels' => false,
82
+                        'items' => [ [
83 83
     'label'   => '<b class=""># '.$model->id.'</b>',
84 84
     'content' => $this->blocks['app\modules\prototype\models\Less'],
85 85
     'active'  => true,
86 86
 ], ]
87
-                 ]
87
+                    ]
88 88
     );
89 89
     ?>
90 90
 </div>
Please login to merge, or discard this patch.