Skip to content

Commit

Permalink
Amend 3e8d297..bd3828c
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
mcaskill committed Dec 15, 2017
1 parent d0d28c0 commit 0065eae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Charcoal/Admin/AdminTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ protected function createHeaderMenu($options = null)
}

$mainMenu = null;
if (isset($this['header_menu_item'])){
if (isset($this['header_menu_item'])) {
$mainMenu = $this['header_menu_item'];
}

Expand Down Expand Up @@ -630,7 +630,7 @@ protected function createSidemenu($options = null)
}

if (isset($this['header_menu_item'])) {
$options['widget_options']['ident'] = $this['header_menu_item'];
$options['widget_options']['ident'] = $this['header_menu_item'];
}

$sidemenuFromRequest = filter_input(INPUT_GET, 'side_menu', FILTER_SANITIZE_STRING);
Expand Down Expand Up @@ -676,7 +676,7 @@ protected function createSystemMenu($options = null)
}

$currentIdent = null;
if (isset($this['system_menu_item'])){
if (isset($this['system_menu_item'])) {
$currentIdent = $this['system_menu_item'];
}

Expand Down
6 changes: 3 additions & 3 deletions src/Charcoal/Admin/Property/Input/PermalinkInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function baseRoute()
$translator->setLocale($origLocale);
}

return rtrim((string)$link, '/') . '/';
return rtrim((string)$link, '/').'/';
}

/**
Expand Down Expand Up @@ -180,7 +180,7 @@ public function samples()
$locales = $this->translator()->availableLocales();
$sampleId = $this->sampleId();
foreach ($locales as $langCode) {
$this->setSampleId($sampleId . '_' . $langCode);
$this->setSampleId($sampleId.'_'.$langCode);
$this->setLang($langCode);

yield $this;
Expand Down Expand Up @@ -229,6 +229,6 @@ public function sampleId()
*/
protected function generateSampleId()
{
return 'sample_' . uniqid();
return 'sample_'.uniqid();
}
}

0 comments on commit 0065eae

Please sign in to comment.