@@ -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(); ?> |
@@ -11,8 +11,11 @@ |
||
| 11 | 11 | <li><a href="<?php echo Url::toManager('account/default/index'); ?>">Login</a></li> |
| 12 | 12 | <li><a href="<?php echo Url::toManager('account/register/index'); ?>">Registration</a></li> |
| 13 | 13 | <li><a href="<?php echo Url::toManager('account/default/lostpass'); ?>">Passwort verloren</a></li> |
| 14 | - <?php else: ?> |
|
| 15 | - <li><a href="<?php echo Url::toManager('account/default/logout'); ?>">Logout</a></li> |
|
| 14 | + <?php else { |
|
| 15 | + : ?> |
|
| 16 | + <li><a href="<?php echo Url::toManager('account/default/logout'); |
|
| 17 | +} |
|
| 18 | +?>">Logout</a></li> |
|
| 16 | 19 | <li><a href="<?php echo Url::toManager('account/settings/index'); ?>">Settings</a></li> |
| 17 | 20 | <?php endif; ?> |
| 18 | 21 | </ul> |
@@ -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(); ?> |
|
@@ -69,14 +69,14 @@ |
||
| 69 | 69 | $curl->setBasicAuthentication($this->auth_user, $this->auth_pass); |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - $curl->get($url . 'admin/api-admin-remote?token=' . sha1($this->token)); |
|
| 72 | + $curl->get($url.'admin/api-admin-remote?token='.sha1($this->token)); |
|
| 73 | 73 | if ($curl->error) { |
| 74 | 74 | $data = false; |
| 75 | 75 | } else { |
| 76 | 76 | $data = json_decode($curl->response, true); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - Yii::$app->cache->set($url, $data, (60*2)); |
|
| 79 | + Yii::$app->cache->set($url, $data, (60 * 2)); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | return $data; |