Completed
Branch feature/scrutinizer (10e3c1)
by Tobias
05:25
created
src/modules/prototype/views/less/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\Less $searchModel
10
+ * @var app\modules\prototype\models\search\Less $searchModel
11 11
 */
12 12
 
13 13
 $this->title = Yii::t('app', 'Lesses');
@@ -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/less/update.php 2 patches
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.
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\Less $model
8 8
  */
9 9
 
10
-$this->title = 'Less ' . $model->id . ', ' . Yii::t('app', 'Edit');
10
+$this->title = 'Less '.$model->id.', '.Yii::t('app', 'Edit');
11 11
 $this->params['breadcrumbs'][] = ['label' => 'Lesses', '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.
src/modules/prototype/widgets/HtmlWidget.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.diemeisterei.de/
4
- *
5
- * @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
6
- *
7
- * For the full copyright and license information, please view the LICENSE
8
- * file that was distributed with this source code.
9
- */
3
+     * @link http://www.diemeisterei.de/
4
+     *
5
+     * @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
6
+     *
7
+     * For the full copyright and license information, please view the LICENSE
8
+     * file that was distributed with this source code.
9
+     */
10 10
 namespace app\modules\prototype\widgets;
11 11
 
12 12
 use yii\base\Widget;
Please login to merge, or discard this patch.
src/widgets/Alert.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         foreach ($flashes as $type => $data) {
59 59
             if (isset($this->alertTypes[$type])) {
60
-                $data = (array) $data;
60
+                $data = (array)$data;
61 61
                 foreach ($data as $message) {
62 62
                     /* initialize css class for each alert box */
63 63
                     $this->options['class'] = $this->alertTypes[$type].$appendCss;
Please login to merge, or discard this 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/prototype/models/search/Html.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace app\modules\prototype\models\search;
4 4
 
5
-use Yii;
6 5
 use yii\base\Model;
7 6
 use yii\data\ActiveDataProvider;
8 7
 use app\modules\prototype\models\Less as LessModel;
Please login to merge, or discard this patch.
src/assets/AppAsset.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/views/layouts/box.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.diemeisterei.de/
4
- *
5
- * @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
6
- *
7
- * For the full copyright and license information, please view the LICENSE
8
- * file that was distributed with this source code.
9
- */
3
+     * @link http://www.diemeisterei.de/
4
+     *
5
+     * @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
6
+     *
7
+     * For the full copyright and license information, please view the LICENSE
8
+     * file that was distributed with this source code.
9
+     */
10 10
 namespace app\modules\prototype\widgets;
11 11
 
12 12
 use yii\base\Widget;
Please login to merge, or discard this patch.
src/modules/backend/Module.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.diemeisterei.de/
4
- *
5
- * @copyright Copyright (c) 2014 diemeisterei GmbH, Stuttgart
6
- *
7
- * For the full copyright and license information, please view the LICENSE
8
- * file that was distributed with this source code.
9
- */
3
+     * @link http://www.diemeisterei.de/
4
+     *
5
+     * @copyright Copyright (c) 2014 diemeisterei GmbH, Stuttgart
6
+     *
7
+     * For the full copyright and license information, please view the LICENSE
8
+     * file that was distributed with this source code.
9
+     */
10 10
 namespace app\commands;
11 11
 
12 12
 use dektrium\user\Finder;
Please login to merge, or discard this patch.
src/modules/prototype/controllers/api/HtmlController.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.