@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | ?> |
| 6 | 6 | <h1 style="color: #f00;"><?php echo $model->message; ?></h1> |
| 7 | 7 | <p style="color: #800000;">from <strong><?php echo $model->serverName; ?></strong></p> |
| 8 | -<a href="https://github.com/luyadev/luya/issues/new?title=<?php echo urlencode('#'. $model->identifier . ' ' . $model->message);?>"><?php echo errorapi\Module::t('mail_create_issue') ?></a> |
|
| 8 | +<a href="https://github.com/luyadev/luya/issues/new?title=<?php echo urlencode('#'.$model->identifier.' '.$model->message); ?>"><?php echo errorapi\Module::t('mail_create_issue') ?></a> |
|
| 9 | 9 | <table cellspacing="2" cellpadding="6" border="0" width="1200"> |
| 10 | 10 | <?php foreach ($model->errorArray as $key => $value): ?> |
| 11 | 11 | <tr> |
@@ -34,13 +34,13 @@ discard block |
||
| 34 | 34 | <table cellspacing="0" cellpadding="4" border="0"> |
| 35 | 35 | <?php foreach ($value as $k => $v): ?> |
| 36 | 36 | <tr> |
| 37 | - <td><?php echo $k; ?>:</td><td><?php echo (is_array($v)) ? print_r($v, true) : $v; ?></td> |
|
| 37 | + <td><?php echo $k; ?>:</td><td><?php echo (is_array($v)) ? print_r($v, true) : $v; ?></td> |
|
| 38 | 38 | </tr> |
| 39 | 39 | <?php endforeach; ?> |
| 40 | 40 | </table> |
| 41 | 41 | <?php else: ?> |
| 42 | 42 | <?php echo $value; ?> |
| 43 | - <?php endif;?> |
|
| 43 | + <?php endif; ?> |
|
| 44 | 44 | </tr> |
| 45 | 45 | <?php endforeach; ?> |
| 46 | 46 | </table> |
| 47 | 47 | \ No newline at end of file |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $mailHtml = $this->renderPartial('_mail', ['model' => $model]); |
| 35 | 35 | |
| 36 | 36 | if (!empty($this->module->recipient)) { |
| 37 | - $mailer = Yii::$app->mail->compose('Error Api: ' . $model->serverName, $mailHtml); |
|
| 37 | + $mailer = Yii::$app->mail->compose('Error Api: '.$model->serverName, $mailHtml); |
|
| 38 | 38 | foreach ($this->module->recipient as $recipient) { |
| 39 | 39 | $mailer->address($recipient); |
| 40 | 40 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | public function parseRequest($manager, $request) |
| 19 | 19 | { |
| 20 | 20 | // add trace info |
| 21 | - Yii::info('LUYA-CMS RouteBehaviorUrlRule is parsing the Request for path info \'' . $request->pathInfo .'\'', __METHOD__); |
|
| 21 | + Yii::info('LUYA-CMS RouteBehaviorUrlRule is parsing the Request for path info \''.$request->pathInfo.'\'', __METHOD__); |
|
| 22 | 22 | // return the custom route |
| 23 | 23 | |
| 24 | 24 | $parts = explode("/", $request->pathInfo); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function parseRequest($manager, $request) |
| 16 | 16 | { |
| 17 | 17 | // add trace info |
| 18 | - Yii::info('LUYA-CMS CatchAllUrlRule is parsing the Request for path info \'' . $request->pathInfo .'\'', __METHOD__); |
|
| 18 | + Yii::info('LUYA-CMS CatchAllUrlRule is parsing the Request for path info \''.$request->pathInfo.'\'', __METHOD__); |
|
| 19 | 19 | |
| 20 | 20 | if (empty($request->pathInfo)) { |
| 21 | 21 | return false; |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | if ($item) { |
| 57 | 57 | $link = $item->link; |
| 58 | 58 | |
| 59 | - if ($item->type == 2 && !empty($rule)) { |
|
| 59 | + if ($item->type == 2 && !empty($rule)) { |
|
| 60 | 60 | $routeParams = [$rule['route']]; |
| 61 | 61 | |
| 62 | 62 | foreach ($rule['params'] as $key => $value) { |
@@ -585,7 +585,7 @@ |
||
| 585 | 585 | public function flushCache() |
| 586 | 586 | { |
| 587 | 587 | foreach ($this->getLanguages() as $lang) { |
| 588 | - $this->deleteHasCache($this->cachePrefix . $lang['short_code']); |
|
| 588 | + $this->deleteHasCache($this->cachePrefix.$lang['short_code']); |
|
| 589 | 589 | } |
| 590 | 590 | } |
| 591 | 591 | } |
@@ -284,7 +284,7 @@ |
||
| 284 | 284 | |
| 285 | 285 | protected function filter(array $whereExpression, $containerData) |
| 286 | 286 | { |
| 287 | - $data = array_filter($containerData, function ($item) { |
|
| 287 | + $data = array_filter($containerData, function($item) { |
|
| 288 | 288 | foreach ($item as $field => $value) { |
| 289 | 289 | if (!$this->arrayFilter($value, $field)) { |
| 290 | 290 | return false; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | public function getAlias() |
| 111 | 111 | { |
| 112 | - return $this->menuItem->alias . '/' . $this->alias; |
|
| 112 | + return $this->menuItem->alias.'/'.$this->alias; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | public function getContainer() |
@@ -189,12 +189,12 @@ discard block |
||
| 189 | 189 | |
| 190 | 190 | public function getId() |
| 191 | 191 | { |
| 192 | - return $this->menuItem->id . '_' . md5(spl_object_hash($this) . $this->getAlias()); |
|
| 192 | + return $this->menuItem->id.'_'.md5(spl_object_hash($this).$this->getAlias()); |
|
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | public function getNavId() |
| 196 | 196 | { |
| 197 | - return $this->menuItem->navId . '_' . $this->getChildOf(); |
|
| 197 | + return $this->menuItem->navId.'_'.$this->getChildOf(); |
|
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | public function toArray() |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | public function twigAdmin() |
| 70 | 70 | { |
| 71 | - return '{% if vars.moduleName is empty %}<span class="block__empty-text">' . Module::t('block_module_no_module') . '</span>{% else %}<p><i class="material-icons">developer_board</i> ' . Module::t('block_module_integration') . ': <strong>{{ vars.moduleName }}</strong></p>{% endif %}'; |
|
| 71 | + return '{% if vars.moduleName is empty %}<span class="block__empty-text">'.Module::t('block_module_no_module').'</span>{% else %}<p><i class="material-icons">developer_board</i> '.Module::t('block_module_integration').': <strong>{{ vars.moduleName }}</strong></p>{% endif %}'; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | public function twigFrontend() |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | return $response; |
| 114 | 114 | } catch (\Exception $err) { |
| 115 | - throw new Exception('Module Block Exception: ' . $err->getMessage()); |
|
| 115 | + throw new Exception('Module Block Exception: '.$err->getMessage()); |
|
| 116 | 116 | } |
| 117 | 117 | } |
| 118 | 118 | } |