Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Leutenegger committed Sep 30, 2021
1 parent 463b197 commit 9f6617e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Extensions/SEOSiteTreeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class SEOSiteTreeExtension extends DataExtension
/**
* getSEOSource - returns the set SEO source
*
* @return SiteTree
* @return SiteTree|null
*/
public function getSEOSource()
{
if ($this->source) {
return $this->source;
} else if (Controller::curr()->getAction() == 'index') {
} elseif (Controller::curr()->getAction() == 'index') {
$owner = $this->getOwner();
$this->setSEOSource($owner);
return $owner;
Expand Down

0 comments on commit 9f6617e

Please sign in to comment.