@@ -19,10 +19,10 @@ discard block |
||
19 | 19 | public function boot() |
20 | 20 | { |
21 | 21 | $this->publishes([ |
22 | - __DIR__.'/../publish/config/laravel-fontawesome.php' => config_path('laravel-fontawesome.php'), |
|
22 | + __DIR__ . '/../publish/config/laravel-fontawesome.php' => config_path('laravel-fontawesome.php'), |
|
23 | 23 | ], 'config'); |
24 | 24 | |
25 | - Blade::directive('fa', function ($expression) { |
|
25 | + Blade::directive('fa', function($expression) { |
|
26 | 26 | return "<?php echo FontAwesome::icon({$expression}); ?>"; |
27 | 27 | }); |
28 | 28 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function register() |
36 | 36 | { |
37 | - $packageConfigFile = __DIR__.'/../publish/config/laravel-fontawesome.php'; |
|
37 | + $packageConfigFile = __DIR__ . '/../publish/config/laravel-fontawesome.php'; |
|
38 | 38 | |
39 | 39 | $this->mergeConfigFrom( |
40 | 40 | $packageConfigFile, 'laravel-fontawesome' |
@@ -4,14 +4,14 @@ discard block |
||
4 | 4 | |
5 | 5 | class LaravelFontAwesome |
6 | 6 | { |
7 | - public function icons($version=null) |
|
7 | + public function icons($version = null) |
|
8 | 8 | { |
9 | - if(is_null($version)) |
|
9 | + if (is_null($version)) |
|
10 | 10 | { |
11 | 11 | $version = config('laravel-fontawesome.default_version'); |
12 | 12 | } |
13 | 13 | |
14 | - return include(__DIR__.'/versions/v'.$version.'/icons.php'); |
|
14 | + return include(__DIR__ . '/versions/v' . $version . '/icons.php'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | public function icon($icon, $options = []) |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | protected function getIcon($icon) |
36 | 36 | { |
37 | - return 'fa-'.str_replace('fa-', '', $icon); |
|
37 | + return 'fa-' . str_replace('fa-', '', $icon); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | { |
50 | 50 | if (!is_array($options)) { |
51 | 51 | $options = [ |
52 | - 'class' => (string) $options, |
|
52 | + 'class' => (string)$options, |
|
53 | 53 | ]; |
54 | 54 | } |
55 | 55 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | protected function buildIconClasses($icon, $extraClasses) |
68 | 68 | { |
69 | - return 'fa '.$this->getIcon($icon).($extraClasses != '' ? ' '.$extraClasses : ''); |
|
69 | + return 'fa ' . $this->getIcon($icon) . ($extraClasses != '' ? ' ' . $extraClasses : ''); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | protected function buildAttributes($options, $classes) |
81 | 81 | { |
82 | 82 | $attributes = []; |
83 | - $attributes[] = 'class="'.$classes.'"'; |
|
83 | + $attributes[] = 'class="' . $classes . '"'; |
|
84 | 84 | |
85 | 85 | unset($options['class']); |
86 | 86 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | protected function createAttribute($attribute, $value) |
105 | 105 | { |
106 | - return $attribute.'="'.$value.'"'; |
|
106 | + return $attribute . '="' . $value . '"'; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
@@ -115,6 +115,6 @@ discard block |
||
115 | 115 | */ |
116 | 116 | protected function buildIcon($attributes) |
117 | 117 | { |
118 | - return '<i '.$attributes.'></i>'; |
|
118 | + return '<i ' . $attributes . '></i>'; |
|
119 | 119 | } |
120 | 120 | } |