@@ -27,15 +27,15 @@ discard block |
||
| 27 | 27 | 'rules' => [ |
| 28 | 28 | [ |
| 29 | 29 | 'allow' => true, |
| 30 | - 'actions' => ['view'], |
|
| 31 | - 'roles' => ['?', '@'], |
|
| 30 | + 'actions' => [ 'view' ], |
|
| 31 | + 'roles' => [ '?', '@' ], |
|
| 32 | 32 | ], |
| 33 | 33 | ], |
| 34 | 34 | ], |
| 35 | 35 | 'verbs' => [ |
| 36 | 36 | 'class' => VerbFilter::class, |
| 37 | 37 | 'actions' => [ |
| 38 | - 'view' => ['get'], |
|
| 38 | + 'view' => [ 'get' ], |
|
| 39 | 39 | ], |
| 40 | 40 | ], |
| 41 | 41 | ]); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | $pagination = new Pagination([ |
| 72 | 72 | 'totalCount' => $productsQuery->count(), |
| 73 | - 'defaultPageSize' => Yii::$app->params['defaultPageSize'] |
|
| 73 | + 'defaultPageSize' => Yii::$app->params[ 'defaultPageSize' ] |
|
| 74 | 74 | ]); |
| 75 | 75 | |
| 76 | 76 | return $this->render('view', [ |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | public function verbs() |
| 59 | 59 | { |
| 60 | 60 | return [ |
| 61 | - 'send' => ['POST'] |
|
| 61 | + 'send' => [ 'POST' ] |
|
| 62 | 62 | ]; |
| 63 | 63 | } |
| 64 | 64 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | $feedback->setScenario(Feedback::SCENARIO_FEEDBACK); |
| 103 | 103 | $feedback->setAttributes($request->post(), false); |
| 104 | 104 | |
| 105 | - if ($feedback->contact(Yii::$app->params['adminEmail'])) { |
|
| 105 | + if ($feedback->contact(Yii::$app->params[ 'adminEmail' ])) { |
|
| 106 | 106 | |
| 107 | 107 | return $this->getSuccessResponse(Yii::t('feedback', 'You have successfully sent your message.')); |
| 108 | 108 | } else { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function init() |
| 36 | 36 | { |
| 37 | - $this->recaptchaDriver = new ReCaptcha(Yii::$app->params['captcha']['secret_key']); |
|
| 37 | + $this->recaptchaDriver = new ReCaptcha(Yii::$app->params[ 'captcha' ][ 'secret_key' ]); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | public function verbs() |
| 72 | 72 | { |
| 73 | 73 | return [ |
| 74 | - 'validate' => ['POST'] |
|
| 74 | + 'validate' => [ 'POST' ] |
|
| 75 | 75 | ]; |
| 76 | 76 | } |
| 77 | 77 | |
@@ -25,15 +25,15 @@ |
||
| 25 | 25 | 'rules' => [ |
| 26 | 26 | [ |
| 27 | 27 | 'allow' => true, |
| 28 | - 'actions' => ['view'], |
|
| 29 | - 'roles' => ['?', '@'], |
|
| 28 | + 'actions' => [ 'view' ], |
|
| 29 | + 'roles' => [ '?', '@' ], |
|
| 30 | 30 | ], |
| 31 | 31 | ], |
| 32 | 32 | ], |
| 33 | 33 | 'verbs' => [ |
| 34 | 34 | 'class' => VerbFilter::class, |
| 35 | 35 | 'actions' => [ |
| 36 | - 'view' => ['get'], |
|
| 36 | + 'view' => [ 'get' ], |
|
| 37 | 37 | ], |
| 38 | 38 | ], |
| 39 | 39 | ]); |
@@ -24,15 +24,15 @@ |
||
| 24 | 24 | 'rules' => [ |
| 25 | 25 | [ |
| 26 | 26 | 'allow' => true, |
| 27 | - 'actions' => ['index'], |
|
| 28 | - 'roles' => ['?', '@'], |
|
| 27 | + 'actions' => [ 'index' ], |
|
| 28 | + 'roles' => [ '?', '@' ], |
|
| 29 | 29 | ], |
| 30 | 30 | ], |
| 31 | 31 | ], |
| 32 | 32 | 'verbs' => [ |
| 33 | 33 | 'class' => VerbFilter::class, |
| 34 | 34 | 'actions' => [ |
| 35 | - 'index' => ['get'], |
|
| 35 | + 'index' => [ 'get' ], |
|
| 36 | 36 | ], |
| 37 | 37 | ] |
| 38 | 38 | ]); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | public function afterAction($action, $result) |
| 28 | 28 | { |
| 29 | 29 | if ($action->id == 'view') { |
| 30 | - $modelId = $action->controller->actionParams['id']; |
|
| 30 | + $modelId = $action->controller->actionParams[ 'id' ]; |
|
| 31 | 31 | Feedback::fixReadStatus((int)$modelId); |
| 32 | 32 | } |
| 33 | 33 | |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $home = Home::findOne($homeId); |
| 41 | 41 | |
| 42 | 42 | if (null === $home) { |
| 43 | - throw new NotFoundHttpException('Record with id ' . $homeId . ' does not exist'); |
|
| 43 | + throw new NotFoundHttpException('Record with id '.$homeId.' does not exist'); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | $home->default = 1; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $contact = Contact::findOne($contactId); |
| 41 | 41 | |
| 42 | 42 | if (null === $contact) { |
| 43 | - throw new NotFoundHttpException('Record with id ' . $contactId . ' does not exist'); |
|
| 43 | + throw new NotFoundHttpException('Record with id '.$contactId.' does not exist'); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | $contact->default = 1; |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | */ |
| 80 | 80 | private function readSitemapFile() |
| 81 | 81 | { |
| 82 | - $filePath = Yii::getAlias($this->savePathAlias) . '/' . $this->sitemapFileName; |
|
| 82 | + $filePath = Yii::getAlias($this->savePathAlias).'/'.$this->sitemapFileName; |
|
| 83 | 83 | |
| 84 | 84 | if (!file_exists($filePath)) { |
| 85 | 85 | return null; |