@@ -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 |
@@ -23,6 +23,6 @@ |
||
| 23 | 23 | $this->output(print_r($container->getReport(), true)); |
| 24 | 24 | |
| 25 | 25 | $timeElapsed = round((microtime(true) - $start) / 60, 2); |
| 26 | - return $this->outputSuccess('Cralwer finished in ' . $timeElapsed . ' min.'); |
|
| 26 | + return $this->outputSuccess('Cralwer finished in '.$timeElapsed.' min.'); |
|
| 27 | 27 | } |
| 28 | 28 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | $info = parse_url($this->baseUrl); |
| 34 | 34 | |
| 35 | - $this->baseHost = $info['scheme'] . '://' . $info['host']; |
|
| 35 | + $this->baseHost = $info['scheme'].'://'.$info['host']; |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function flush() |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | public function getLinks() |
| 61 | 61 | { |
| 62 | - $links = $this->getCrawler()->filterXPath('//a')->each(function ($node, $i) { |
|
| 62 | + $links = $this->getCrawler()->filterXPath('//a')->each(function($node, $i) { |
|
| 63 | 63 | return $node->extract(array('_text', 'href'))[0]; |
| 64 | 64 | }); |
| 65 | 65 | foreach ($links as $key => $item) { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | if (!isset($url['host']) || !isset($url['scheme'])) { |
| 69 | 69 | $base = $this->baseHost; |
| 70 | 70 | } else { |
| 71 | - $base = $url['scheme'] . '//' . $url['host']; |
|
| 71 | + $base = $url['scheme'].'//'.$url['host']; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | $path = null; |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $path = $url['path']; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - $url = rtrim($base, "/") . "/" . ltrim($path, "/"); |
|
| 80 | + $url = rtrim($base, "/")."/".ltrim($path, "/"); |
|
| 81 | 81 | |
| 82 | 82 | |
| 83 | 83 | $links[$key][1] = http_build_url($url, [ |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | $type = $this->getCrawler($url)->getContentType(); |
| 146 | 146 | |
| 147 | 147 | if (strpos($type, 'text/html') === false) { |
| 148 | - $this->addLog('invalid_header', $url . ' invalid header ' . $type); |
|
| 148 | + $this->addLog('invalid_header', $url.' invalid header '.$type); |
|
| 149 | 149 | return false; |
| 150 | 150 | } |
| 151 | 151 | |
@@ -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() |
@@ -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; |
@@ -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 | } |
@@ -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) { |
@@ -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; |