@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | protected function getIcon($icon) |
| 26 | 26 | { |
| 27 | - return 'fa-'.str_replace('fa-', '', $icon); |
|
| 27 | + return 'fa-' . str_replace('fa-', '', $icon); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | { |
| 40 | 40 | if (!is_array($options)) { |
| 41 | 41 | $options = [ |
| 42 | - 'class' => (string) $options, |
|
| 42 | + 'class' => (string)$options, |
|
| 43 | 43 | ]; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | protected function buildIconClasses($icon, $extraClasses) |
| 58 | 58 | { |
| 59 | - return 'fa '.$this->getIcon($icon).($extraClasses != '' ? ' '.$extraClasses : ''); |
|
| 59 | + return 'fa ' . $this->getIcon($icon) . ($extraClasses != '' ? ' ' . $extraClasses : ''); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | protected function buildAttributes($options, $classes) |
| 71 | 71 | { |
| 72 | 72 | $attributes = []; |
| 73 | - $attributes[] = 'class="'.$classes.'"'; |
|
| 73 | + $attributes[] = 'class="' . $classes . '"'; |
|
| 74 | 74 | |
| 75 | 75 | unset($options['class']); |
| 76 | 76 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | protected function createAttribute($attribute, $value) |
| 95 | 95 | { |
| 96 | - return $attribute.'="'.$value.'"'; |
|
| 96 | + return $attribute . '="' . $value . '"'; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
@@ -105,6 +105,6 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | protected function buildIcon($attributes) |
| 107 | 107 | { |
| 108 | - return '<i '.$attributes.'></i>'; |
|
| 108 | + return '<i ' . $attributes . '></i>'; |
|
| 109 | 109 | } |
| 110 | 110 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function boot() |
| 20 | 20 | { |
| 21 | - Blade::directive('fa', function ($arguments) { |
|
| 21 | + Blade::directive('fa', function($arguments) { |
|
| 22 | 22 | list($icon, $attributes) = explode(',', str_replace(['(', ')', ' ', "'"], '', $arguments), 2); |
| 23 | 23 | |
| 24 | 24 | $options = []; |