| @@ -332,7 +332,7 @@ | ||
| 332 | 332 | * @param string $tableName | 
| 333 | 333 | * @return bool | 
| 334 | 334 | */ | 
| 335 | -    private static function hasClosing($tableName){ | |
| 335 | +    private static function hasClosing($tableName) { | |
| 336 | 336 | $closing = Closing::findOne($tableName); | 
| 337 | 337 | return !($closing == null); | 
| 338 | 338 | } | 
| @@ -45,7 +45,7 @@ | ||
| 45 | 45 | * @param $key string | 
| 46 | 46 | * @return static | 
| 47 | 47 | */ | 
| 48 | -    public function findOneByKey($key){ | |
| 48 | +    public function findOneByKey($key) { | |
| 49 | 49 | /** @var static $model */ | 
| 50 | 50 | $model = static::find() | 
| 51 | 51 | ->andWhere([$this->keyColumn => $key]) | 
| @@ -33,9 +33,9 @@ discard block | ||
| 33 | 33 | use <?= ltrim($generator->modelClass, '\\') ?>; | 
| 34 | 34 | <?php if (!empty($generator->searchModelClass)): ?> | 
| 35 | 35 | use <?= ltrim($generator->searchModelClass, '\\') . (isset($searchModelAlias) ? " as $searchModelAlias" : "") ?>; | 
| 36 | -<?php else: ?> | |
| 36 | +<?php else : ?> | |
| 37 | 37 | use yii\data\ActiveDataProvider; | 
| 38 | -<?php endif;?> | |
| 38 | +<?php endif; ?> | |
| 39 | 39 | use <?= ltrim($generator->baseControllerClass, '\\') ?>; | 
| 40 | 40 | use yii\web\NotFoundHttpException; | 
| 41 | 41 | use yii\web\ForbiddenHttpException; | 
| @@ -97,7 +97,7 @@ discard block | ||
| 97 | 97 | 'searchModel' => $searchModel, | 
| 98 | 98 | 'dataProvider' => $dataProvider, | 
| 99 | 99 | ]); | 
| 100 | -<?php else: ?> | |
| 100 | +<?php else : ?> | |
| 101 | 101 | $dataProvider = new ActiveDataProvider([ | 
| 102 | 102 | 'query' => <?= $modelClass ?>::find(), | 
| 103 | 103 | ]); | 
| @@ -105,7 +105,7 @@ discard block | ||
| 105 | 105 |          return $this->render('index', [ | 
| 106 | 106 | 'dataProvider' => $dataProvider, | 
| 107 | 107 | ]); | 
| 108 | -<?php endif;?> | |
| 108 | +<?php endif; ?> | |
| 109 | 109 | } | 
| 110 | 110 | |
| 111 | 111 | /** | 
| @@ -60,7 +60,7 @@ | ||
| 60 | 60 | /** @var Setting $setting */ | 
| 61 | 61 | $setting = new $this->itemClass; | 
| 62 | 62 | |
| 63 | -                    if (! $setting->findOneByKey($checkAttribute)) { | |
| 63 | +                    if (!$setting->findOneByKey($checkAttribute)) { | |
| 64 | 64 |                          throw new yii\base\InvalidConfigException('Key "' . $checkAttribute . '" is missing in ' . $this->itemClass); | 
| 65 | 65 | } | 
| 66 | 66 | } | 
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | |
| 44 | 44 | $this->setSettings(); | 
| 45 | 45 |          if (!is_null($this->typeClass)) { | 
| 46 | - $this->loadStrings(); | |
| 46 | + $this->loadStrings(); | |
| 47 | 47 | } | 
| 48 | 48 | } | 
| 49 | 49 | |