@@ -7,7 +7,7 @@ discard block |
||
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 |
||
80 | 80 | }, |
81 | 81 | 'contentOptions' => ['nowrap'=>'nowrap'] |
82 | 82 | ], |
83 | - 'key', |
|
83 | + 'key', |
|
84 | 84 | ], |
85 | 85 | ]); ?> |
86 | 86 | </div> |
@@ -29,7 +29,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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'] |
@@ -24,7 +24,7 @@ |
||
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> |
@@ -7,7 +7,7 @@ discard block |
||
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 |
||
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', [ |
@@ -1,12 +1,12 @@ |
||
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; |
@@ -57,7 +57,7 @@ |
||
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; |
@@ -1,10 +1,10 @@ |
||
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; |
@@ -2,7 +2,6 @@ |
||
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; |
@@ -1,10 +1,10 @@ |
||
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; |
@@ -1,12 +1,12 @@ |
||
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; |
@@ -1,12 +1,12 @@ |
||
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; |
@@ -13,8 +13,8 @@ |
||
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( |
@@ -25,7 +25,7 @@ |
||
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 | ] |