Completed
Push — master ( fd246a...8cf422 )
by Marcel
06:59
created
src/Mpociot/VatCalculator/VatCalculatorServiceProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
     {
43 43
         // Publish config files
44 44
         $this->publishes([
45
-            __DIR__.'/../../config/config.php'           => config_path('vat_calculator.php'),
46
-            __DIR__.'/../../public/js/vat_calculator.js' => public_path('js/vat_calculator.js'),
45
+            __DIR__ . '/../../config/config.php'           => config_path('vat_calculator.php'),
46
+            __DIR__ . '/../../public/js/vat_calculator.js' => public_path('js/vat_calculator.js'),
47 47
         ]);
48 48
 
49 49
         $this->publishes([
50
-            __DIR__.'/../../public/js/vat_calculator.js' => base_path('resources/assets/js/vat_calculator.js'),
50
+            __DIR__ . '/../../public/js/vat_calculator.js' => base_path('resources/assets/js/vat_calculator.js'),
51 51
         ], 'vatcalculator-spark');
52 52
     }
53 53
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $this->app->bind('vatcalculator', '\Mpociot\VatCalculator\VatCalculator');
74 74
         
75
-        $this->app->bind('\Mpociot\VatCalculator\VatCalculator', function ($app) {
75
+        $this->app->bind('\Mpociot\VatCalculator\VatCalculator', function($app) {
76 76
             $config = $app->make('Illuminate\Contracts\Config\Repository');
77 77
 
78 78
             return new \Mpociot\VatCalculator\VatCalculator($config);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function registerFacade()
88 88
     {
89
-        $this->app->booting(function () {
89
+        $this->app->booting(function() {
90 90
             $loader = \Illuminate\Foundation\AliasLoader::getInstance();
91 91
             $loader->alias('VatCalculator', 'Mpociot\VatCalculator\Facades\VatCalculator');
92 92
         });
@@ -100,20 +100,20 @@  discard block
 block discarded – undo
100 100
     protected function mergeConfig()
101 101
     {
102 102
         $this->mergeConfigFrom(
103
-            __DIR__.'/../../config/config.php', 'vat_calculator'
103
+            __DIR__ . '/../../config/config.php', 'vat_calculator'
104 104
         );
105 105
     }
106 106
 
107 107
     protected function registerValidatorExtension()
108 108
     {
109 109
         $this->loadTranslationsFrom(
110
-            __DIR__.'/../../lang',
110
+            __DIR__ . '/../../lang',
111 111
             'vatnumber-validator'
112 112
         );
113 113
 
114 114
         // Registering the validator extension with the validator factory
115
-        $this->app['validator']->resolver(
116
-            function ($translator, $data, $rules, $messages, $customAttributes = []) {
115
+        $this->app[ 'validator' ]->resolver(
116
+            function($translator, $data, $rules, $messages, $customAttributes = [ ]) {
117 117
                 return new VatCalculatorValidatorExtension(
118 118
                     $translator,
119 119
                     $data,
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     {
134 134
         $config = $this->app->make('Illuminate\Contracts\Config\Repository');
135 135
         if ($config->get('vat_calculator.use_routes', true)) {
136
-            include __DIR__.'/../../routes.php';
136
+            include __DIR__ . '/../../routes.php';
137 137
         }
138 138
     }
139 139
 }
Please login to merge, or discard this patch.