Skip to content

Commit

Permalink
Merge pull request #38 from yukato/typofix-seperator-to-separator
Browse files Browse the repository at this point in the history
typofix 'seperator' to 'separator'
  • Loading branch information
vinicius73 committed Dec 4, 2015
2 parents 50a02e9 + 24c8850 commit f3177ef
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README-en_US.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class CommomController extends Controller

#### API (SEOMeta)
```php
SEOMeta::SetTitleSeparator($seperator);
SEOMeta::SetTitleSeparator($separator);
SEOMeta::setTitle($title);
SEOMeta::setDescription($description);
SEOMeta::setKeywords($keywords);
Expand All @@ -296,7 +296,7 @@ SEOMeta::setTitle($title)
// Retrieving data
SEOMeta::getTitle();
SEOMeta::getTitleSession();
SEOMeta::getTitleSeperator();
SEOMeta::getTitleSeparator();
SEOMeta::getKeywords();
SEOMeta::getDescription();
SEOMeta::reset();
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class CommomController extends Controller

##### API (SEOMeta)
```php
SEOMeta::SetTitleSeparator($seperator);
SEOMeta::SetTitleSeparator($separator);
SEOMeta::setTitle($title);
SEOMeta::setDescription($description);
SEOMeta::setKeywords($keywords);
Expand All @@ -299,7 +299,7 @@ SEOMeta::setTitle($title)
// Obtendo os dados
SEOMeta::getTitle();
SEOMeta::getTitleSession();
SEOMeta::getTitleSeperator();
SEOMeta::getTitleSeparator();
SEOMeta::getKeywords();
SEOMeta::getDescription();
SEOMeta::reset();
Expand Down
6 changes: 3 additions & 3 deletions src/SEOTools/Contracts/MetaTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function generate();
public function setTitle($title);

/**
* Set the title seperator.
* Set the title separator.
*
* @param string $separator
*
Expand Down Expand Up @@ -98,11 +98,11 @@ public function getTitle();
public function getTitleSession();

/**
* Get the title seperator that was set.
* Get the title separator that was set.
*
* @return string
*/
public function getTitleSeperator();
public function getTitleSeparator();

/**
* Get all metatags
Expand Down
12 changes: 6 additions & 6 deletions src/SEOTools/SEOMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class SEOMeta implements MetaTagsContract
protected $title_session;

/**
* The title tag seperator.
* The title tag separator.
*
* @var array
*/
protected $title_seperator;
protected $title_separator;

/**
* The meta description.
Expand Down Expand Up @@ -145,7 +145,7 @@ public function setTitle($title)
*/
public function setTitleSeparator($separator)
{
$this->title_seperator = $separator;
$this->title_separator = $separator;

return $this;
}
Expand Down Expand Up @@ -267,9 +267,9 @@ public function getTitleSession()
*
* @return string
*/
public function getTitleSeperator()
public function getTitleSeparator()
{
return $this->title_seperator ?: $this->config->get('defaults.separator', ' - ');
return $this->title_separator ?: $this->config->get('defaults.separator', ' - ');
}

/**
Expand Down Expand Up @@ -328,7 +328,7 @@ protected function parseTitle($title)
{
$default = $this->config->get('defaults.title', null);

return (empty($default)) ? $title : $title . $this->getTitleSeperator() . $default;
return (empty($default)) ? $title : $title . $this->getTitleSeparator() . $default;
}

/**
Expand Down

0 comments on commit f3177ef

Please sign in to comment.