Passed
Pull Request — master (#4)
by
unknown
10:49
created
src/LaravelFontAwesomeServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'
Please login to merge, or discard this patch.
src/LaravelFontAwesome.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
             $version = config('laravel-fontawesome.default_version');
11 11
         }
12 12
 
13
-        return include __DIR__.'/versions/v'.$version.'/icons.php';
13
+        return include __DIR__ . '/versions/v' . $version . '/icons.php';
14 14
     }
15 15
 
16 16
     public function icon($icon, $options = [])
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function getIcon($icon)
35 35
     {
36
-        return 'fa-'.str_replace('fa-', '', $icon);
36
+        return 'fa-' . str_replace('fa-', '', $icon);
37 37
     }
38 38
 
39 39
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         if (!is_array($options)) {
50 50
             $options = [
51
-                'class' => (string) $options,
51
+                'class' => (string)$options,
52 52
             ];
53 53
         }
54 54
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function buildIconClasses($icon, $extraClasses)
67 67
     {
68
-        return 'fa '.$this->getIcon($icon).($extraClasses != '' ? ' '.$extraClasses : '');
68
+        return 'fa ' . $this->getIcon($icon) . ($extraClasses != '' ? ' ' . $extraClasses : '');
69 69
     }
70 70
 
71 71
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     protected function buildAttributes($options, $classes)
80 80
     {
81 81
         $attributes = [];
82
-        $attributes[] = 'class="'.$classes.'"';
82
+        $attributes[] = 'class="' . $classes . '"';
83 83
 
84 84
         unset($options['class']);
85 85
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     protected function createAttribute($attribute, $value)
104 104
     {
105
-        return $attribute.'="'.$value.'"';
105
+        return $attribute . '="' . $value . '"';
106 106
     }
107 107
 
108 108
     /**
@@ -114,6 +114,6 @@  discard block
 block discarded – undo
114 114
      */
115 115
     protected function buildIcon($attributes)
116 116
     {
117
-        return '<i '.$attributes.'></i>';
117
+        return '<i ' . $attributes . '></i>';
118 118
     }
119 119
 }
Please login to merge, or discard this patch.