@@ -11,6 +11,6 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $class = new ReflectionClass($this); |
| 13 | 13 | |
| 14 | - return '@app/views/widgets/' . Inflector::camel2id($class->getShortName()); |
|
| 14 | + return '@app/views/widgets/'.Inflector::camel2id($class->getShortName()); |
|
| 15 | 15 | } |
| 16 | 16 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | public function attributeLabels() |
| 17 | 17 | { |
| 18 | 18 | $labels = []; |
| 19 | - foreach($this->attributeLabels as $key => $value) { |
|
| 19 | + foreach ($this->attributeLabels as $key => $value) { |
|
| 20 | 20 | $labels[$key] = Yii::t('app', $value); |
| 21 | 21 | } |
| 22 | 22 | |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | if (method_exists($module, 'registerComponents')) { |
| 95 | 95 | foreach ($module->registerComponents() as $componentId => $definition) { |
| 96 | 96 | if (!$app->has($componentId)) { |
| 97 | - Yii::trace('Register component ' . $componentId, __METHOD__); |
|
| 97 | + Yii::trace('Register component '.$componentId, __METHOD__); |
|
| 98 | 98 | $app->set($componentId, $definition); |
| 99 | 99 | } |
| 100 | 100 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | return [ |
| 99 | 99 | 'module' => $this->module->id, |
| 100 | - 'route' => $this->module->id . '/' . $request['route'], |
|
| 100 | + 'route' => $this->module->id.'/'.$request['route'], |
|
| 101 | 101 | 'params' => $request['args'], |
| 102 | 102 | ]; |
| 103 | 103 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | throw new InvalidConfigException(sprintf("Unable to create controller '%s' for module '%s'.", $requestRoute['route'], $this->module->id)); |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | - Yii::info('LUYA module run module "'.$this->module->id.'" route ' . $requestRoute['route'], __METHOD__); |
|
| 120 | + Yii::info('LUYA module run module "'.$this->module->id.'" route '.$requestRoute['route'], __METHOD__); |
|
| 121 | 121 | |
| 122 | 122 | // run the action on the provided controller object |
| 123 | 123 | return $controller[0]->runAction($controller[1], $requestRoute['args']); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | public function getWebroot() |
| 64 | 64 | { |
| 65 | 65 | if ($this->_webroot === null) { |
| 66 | - $this->_webroot = realpath(realpath($this->basePath) . DIRECTORY_SEPARATOR . $this->webrootDirectory); |
|
| 66 | + $this->_webroot = realpath(realpath($this->basePath).DIRECTORY_SEPARATOR.$this->webrootDirectory); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | return $this->_webroot; |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | if ($this->validate()) { |
| 61 | 61 | $model = $this->model; |
| 62 | 62 | $model->scenario = $this->modelScenario; |
| 63 | - $model->attributes = $this->attributes; |
|
| 63 | + $model->attributes = $this->attributes; |
|
| 64 | 64 | //$model->setAttributes($this->getAttributes()); |
| 65 | 65 | if ($model->validate()) { |
| 66 | 66 | if ($model->save()) { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | <?php echo $form->field($model, 'city') ?> |
| 13 | 13 | <?php echo $form->field($model, 'country') ?> |
| 14 | 14 | <?php echo $form->field($model, 'subscription_newsletter')->checkbox(); ?> |
| 15 | -<?php echo $form->field($model, 'subscription_medianews')->checkbox(); ?> |
|
| 15 | +<?php echo $form->field($model, 'subscription_medianews')->checkbox(); ?> |
|
| 16 | 16 | <button type="submit">Submit</button> |
| 17 | 17 | <?php echo $form->errorSummary($model); ?> |
| 18 | 18 | <?php \yii\widgets\ActiveForm::end(); ?> |
@@ -8,4 +8,4 @@ |
||
| 8 | 8 | |
| 9 | 9 | <button type="submit">Submit</button> |
| 10 | 10 | |
| 11 | -<?php \yii\widgets\ActiveForm::end();?> |
|
| 11 | +<?php \yii\widgets\ActiveForm::end(); ?> |
|
@@ -413,7 +413,7 @@ |
||
| 413 | 413 | if ($parentNavId != 0) { |
| 414 | 414 | $node = NavItem::find()->where(['nav_id' => $parentNavId])->one(); |
| 415 | 415 | if ($parentNavId) { |
| 416 | - $data = $node->title . '/' . $data; |
|
| 416 | + $data = $node->title.'/'.$data; |
|
| 417 | 417 | } |
| 418 | 418 | } |
| 419 | 419 | } |