Skip to content

Commit

Permalink
Converted to PSR-2
Browse files Browse the repository at this point in the history
  • Loading branch information
helpfulrobot committed Dec 23, 2015
1 parent 2e0c2a6 commit 4039a98
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
19 changes: 10 additions & 9 deletions code/RobotsNoindexCMSExtensions.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php

class RobotsNoindexCMSExtensions extends DataExtension {
class RobotsNoindexCMSExtensions extends DataExtension
{

public function MetaTags(&$tags) {
if (Director::isDev() OR Director::isTest()) {
$tags .= '<meta name="robots" content="noindex, nofollow" />';
}
return $tags;
}

}
public function MetaTags(&$tags)
{
if (Director::isDev() or Director::isTest()) {
$tags .= '<meta name="robots" content="noindex, nofollow" />';
}
return $tags;
}
}
32 changes: 18 additions & 14 deletions code/checks/InfoBox_index.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
<?php

class InfoBox_index implements InfoBox {
class InfoBox_index implements InfoBox
{

public function show() {
return Director::isDev() OR Director::isTest() ? 1 : 0;
}
public function show()
{
return Director::isDev() or Director::isTest() ? 1 : 0;
}

public function message() {
return _t("RobotsNoindex.NO_INDEX_WARNING", "No indexing!");
}
public function message()
{
return _t("RobotsNoindex.NO_INDEX_WARNING", "No indexing!");
}

public function severity() {
return 1;
}

public function link() {
return false;
}
public function severity()
{
return 1;
}

public function link()
{
return false;
}
}

0 comments on commit 4039a98

Please sign in to comment.