From 646ae57326d24c74d78dd9764033159438eaa819 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 15 Aug 2016 08:13:11 +0200 Subject: [PATCH] [HTMLUtils] Change getHelperButtonsFormat to private scope --- lib/HTMLUtils.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 9da4ba7..ade0ca4 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -1,17 +1,6 @@ $infos ){ - if ( isset($infos['name']) ) - $buttons .= '' . PHP_EOL; - } - - return $buttons; - } - public static function displayBridgeCard($bridgeName, $formats, $isActive = true){ $bridgeElement = Bridge::create($bridgeName); @@ -126,6 +115,17 @@ CARD; return $card; } + private static function getHelperButtonsFormat($formats){ + $buttons = ''; + + foreach( $formats as $name => $infos ){ + if ( isset($infos['name']) ) + $buttons .= '' . PHP_EOL; + } + + return $buttons; + } + private static function getFormHeader($bridge){ return <<