Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
izica committed Jun 17, 2018
1 parent b622b8f commit 233eec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
23 changes: 1 addition & 22 deletions PhpStyles.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Class PhpStylesInline
* Class PhpStyles
*/
class PhpStyles
{
Expand Down Expand Up @@ -87,24 +87,3 @@ public function opacity($value, $condition)
return $this->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}'";
}
}
2 changes: 1 addition & 1 deletion PhpStylesInline.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_once('PhpStyles.php');

/**
* Class PhpStyles
* Class PhpStylesInline
*/
class PhpStylesInline extends PhpStyles
{
Expand Down

0 comments on commit 233eec1

Please sign in to comment.