phpcs: some more

This commit is contained in:
Thomas Gelf 2016-11-23 12:35:17 +01:00
parent 2b98629f3e
commit afcf42e871
6 changed files with 18 additions and 9 deletions

View file

@ -193,7 +193,9 @@ class BpConfigForm extends QuickForm
public function shouldBeDeleted()
{
if (! $this->hasDeleteButton()) return false;
if (! $this->hasDeleteButton()) {
return false;
}
$name = $this->deleteButtonName;
return $this->getSentValue($name) === $this->getElement($name)->getLabel();

View file

@ -362,7 +362,10 @@ class BpNode extends Node
foreach ($this->getChildren() as $name => $child) {
$children[] = (string) $child;
if (array_key_exists($name, $rendered)) { continue; }
if (array_key_exists($name, $rendered)) {
continue;
}
if ($child instanceof BpNode) {
$cfg .= $child->toLegacyConfigString($rendered) . "\n";
}

View file

@ -465,8 +465,12 @@ abstract class Node
return ' ';
}
public function toLegacyConfigString(& $rendered = array()) { return '';}
// TODO: Why isn't this abstract?
// abstract public function toLegacyConfigString();
public function toLegacyConfigString(& $rendered = array())
{
return '';
}
public function __toString()
{