@@ -82,13 +82,13 @@ discard block |
||
| 82 | 82 | * slug it uses - without this property the canonical function will return the url of the first blog-post |
| 83 | 83 | * (collection page) it finds. |
| 84 | 84 | */ |
| 85 | - public function actionPage($nice_id, $slug='') |
|
| 85 | + public function actionPage($nice_id, $slug = '') |
|
| 86 | 86 | { |
| 87 | 87 | \Neon::beginProfile('COBE::RENDER_ACTION', 'cobe'); |
| 88 | 88 | $cms = $this->getCms(); |
| 89 | 89 | $page = $cms->getPage(); |
| 90 | 90 | // check the page with the nice_id exists |
| 91 | - if (! $page->setById($nice_id)) { |
|
| 91 | + if (!$page->setById($nice_id)) { |
|
| 92 | 92 | $this->pageNotFound(); |
| 93 | 93 | } |
| 94 | 94 | //return neon()->view->injectHtml(''); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | // Don't display draft pages unless in edit mode. |
| 106 | - if ($page->isStatusDraft() && ! $page->isInEditMode()) { |
|
| 106 | + if ($page->isStatusDraft() && !$page->isInEditMode()) { |
|
| 107 | 107 | $this->pageNotFound(); |
| 108 | 108 | } |
| 109 | 109 | |
@@ -135,8 +135,8 @@ discard block |
||
| 135 | 135 | ->innerJoin(CmsPage::tableName(), 'cms_page.nice_id = cms_url.nice_id') |
| 136 | 136 | ->where("status='PUBLISHED'") |
| 137 | 137 | ->all() |
| 138 | - )->reduce(function($carry, $url){ |
|
| 139 | - return $carry . "\t<url>\n\t\t<loc>" . url($url['url'], true) . "</loc>\n\t</url>" . "\n"; |
|
| 138 | + )->reduce(function($carry, $url) { |
|
| 139 | + return $carry."\t<url>\n\t\t<loc>".url($url['url'], true)."</loc>\n\t</url>"."\n"; |
|
| 140 | 140 | }); |
| 141 | 141 | header('Content-Type:application/rss+xml'); |
| 142 | 142 | echo '<?xml version="1.0" encoding="UTF-8"?>'."\n"; |