Skip to content

Commit

Permalink
Fixes invalid code and improves CS.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <[email protected]>
  • Loading branch information
crynobone committed Sep 13, 2015
1 parent aaa5bce commit c1eab97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/HtmlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use BadMethodCallException;
use Illuminate\Support\Str;
use Illuminate\Support\Arr;
use Orchestra\Support\Expression;
use Orchestra\Html\Support\HtmlBuilder as BaseHtmlBuilder;

Expand Down Expand Up @@ -102,8 +101,8 @@ protected function buildClassDecorate(array $attributes, array $defaults = [])
{
// Special consideration to class, where we need to merge both string
// from $attributes and $defaults, then take union of both.
$default = isset($defaults['class'] ? $defaults['class'] : '';
$attribute = isset($attributes['class'] ? $attributes['class'] : '';
$default = isset($defaults['class']) ? $defaults['class'] : '';
$attribute = isset($attributes['class']) ? $attributes['class'] : '';

$classes = explode(' ', trim($default.' '.$attribute));
$current = array_unique($classes);
Expand Down

0 comments on commit c1eab97

Please sign in to comment.