From 233eec180fd2f6c1fb1ea515f9224404bbd58f92 Mon Sep 17 00:00:00 2001 From: izica Date: Sun, 17 Jun 2018 21:59:27 +0700 Subject: [PATCH] hot fix --- PhpStyles.php | 23 +---------------------- PhpStylesInline.php | 2 +- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/PhpStyles.php b/PhpStyles.php index 651a56d..743408f 100644 --- a/PhpStyles.php +++ b/PhpStyles.php @@ -1,7 +1,7 @@ set('opacity', $value, $condition); } } - -/** - * Class PhpStyles - */ -class PhpStylesInline extends PhpStyles -{ - public function render($condition = true) - { - if (!$condition) { - return ''; - } - - $css = ''; - $array = []; - foreach ($this->styles as $key => $value) { - $array[$key] = $key . ': ' . $value; - } - $css = implode(';', $array); - return "style='{$css}'"; - } -} diff --git a/PhpStylesInline.php b/PhpStylesInline.php index 45ed1be..7d4494d 100644 --- a/PhpStylesInline.php +++ b/PhpStylesInline.php @@ -2,7 +2,7 @@ require_once('PhpStyles.php'); /** - * Class PhpStyles + * Class PhpStylesInline */ class PhpStylesInline extends PhpStyles {