@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | if ($page = $this->hasParentPage()) { |
97 | 97 | $fields->insertAfter( |
98 | 98 | SiteTreeURLSegmentField::create('URLSegment') |
99 | - ->setURLPrefix($page->Link() . $this->hasViewAction() . '/'), |
|
99 | + ->setURLPrefix($page->Link().$this->hasViewAction().'/'), |
|
100 | 100 | 'MenuTitle' |
101 | 101 | ); |
102 | 102 | } |
@@ -226,18 +226,18 @@ discard block |
||
226 | 226 | |
227 | 227 | // Filters by url, id, and parent |
228 | 228 | $table = DataObject::getSchema()->tableForField($this->owner->ClassName, 'URLSegment'); |
229 | - $filter = array('"' . $table . '"."URLSegment"' => $this->owner->URLSegment); |
|
229 | + $filter = array('"'.$table.'"."URLSegment"' => $this->owner->URLSegment); |
|
230 | 230 | if ($this->owner->ID) { |
231 | - $filter['"' . $table . '"."ID" <> ?'] = $this->owner->ID; |
|
231 | + $filter['"'.$table.'"."ID" <> ?'] = $this->owner->ID; |
|
232 | 232 | } |
233 | 233 | if (SiteConfig::current_site_config()->nested_urls) { |
234 | - $filter['"' . $table . '"."ParentID"'] = $this->owner->ParentID ? $this->owner->ParentID : 0; |
|
234 | + $filter['"'.$table.'"."ParentID"'] = $this->owner->ParentID ? $this->owner->ParentID : 0; |
|
235 | 235 | } |
236 | 236 | |
237 | 237 | // If any of the extensions return `0` consider the segment invalid |
238 | 238 | $extensionResponses = array_filter( |
239 | - (array)$this->owner->extend('augmentValidURLSegment'), |
|
240 | - function ($response) { |
|
239 | + (array) $this->owner->extend('augmentValidURLSegment'), |
|
240 | + function($response) { |
|
241 | 241 | return !is_null($response); |
242 | 242 | } |
243 | 243 | ); |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | $charset = ContentNegotiator::config()->uninherited('encoding'); |
297 | 297 | $tags[] = HTML::createTag('meta', array( |
298 | 298 | 'http-equiv' => 'Content-Type', |
299 | - 'content' => 'text/html; charset=' . $charset, |
|
299 | + 'content' => 'text/html; charset='.$charset, |
|
300 | 300 | )); |
301 | 301 | |
302 | 302 | if ($this->owner->MetaDescription) { |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | // Ensure that this object has a non-conflicting URLSegment value. |
358 | 358 | $count = 2; |
359 | 359 | while (!$this->owner->validURLSegment()) { |
360 | - $this->owner->URLSegment = preg_replace('/-[0-9]+$/', null, $this->owner->URLSegment) . '-' . $count; |
|
360 | + $this->owner->URLSegment = preg_replace('/-[0-9]+$/', null, $this->owner->URLSegment).'-'.$count; |
|
361 | 361 | ++$count; |
362 | 362 | } |
363 | 363 |