diff --git a/lib/BridgeCard.php b/lib/BridgeCard.php index cb7e607b..9cfa9ce6 100644 --- a/lib/BridgeCard.php +++ b/lib/BridgeCard.php @@ -18,7 +18,6 @@ * page of RSS-Bridge. * * @todo Return error if a caller creates an object of this class. - * @todo Use self:: instead of BridgeCard:: in this class */ final class BridgeCard { @@ -82,7 +81,7 @@ This bridge is not fetching its content through a secure connection'; $isHttps = false, $parameterName = '', $parameters = array()) { - $form = BridgeCard::getFormHeader($bridgeName, $isHttps); + $form = self::getFormHeader($bridgeName, $isHttps); if(count($parameters) > 0) { @@ -110,13 +109,13 @@ This bridge is not fetching its content through a secure connection'; . PHP_EOL; if(!isset($inputEntry['type']) || $inputEntry['type'] === 'text') { - $form .= BridgeCard::getTextInput($inputEntry, $idArg, $id); + $form .= self::getTextInput($inputEntry, $idArg, $id); } elseif($inputEntry['type'] === 'number') { - $form .= BridgeCard::getNumberInput($inputEntry, $idArg, $id); + $form .= self::getNumberInput($inputEntry, $idArg, $id); } else if($inputEntry['type'] === 'list') { - $form .= BridgeCard::getListInput($inputEntry, $idArg, $id); + $form .= self::getListInput($inputEntry, $idArg, $id); } elseif($inputEntry['type'] === 'checkbox') { - $form .= BridgeCard::getCheckboxInput($inputEntry, $idArg, $id); + $form .= self::getCheckboxInput($inputEntry, $idArg, $id); } } @@ -125,7 +124,7 @@ This bridge is not fetching its content through a secure connection'; } if($isActive) { - $form .= BridgeCard::buildFormatButtons($formats); + $form .= self::buildFormatButtons($formats); } else { $form .= 'Inactive'; } @@ -164,7 +163,7 @@ This bridge is not fetching its content through a secure connection'; */ private static function getTextInput($entry, $id, $name) { return '