@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | protected function callFunc($callback, $option) |
26 | 26 | { |
27 | - if (! $callback instanceof Closure) |
|
27 | + if (!$callback instanceof Closure) |
|
28 | 28 | { |
29 | 29 | throw new CallbackNotValidException(); |
30 | 30 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | $availableTypes = array_keys($this->config['available_types']); |
19 | 19 | |
20 | - if (! in_array($type, $availableTypes)) { |
|
20 | + if (!in_array($type, $availableTypes)) { |
|
21 | 21 | throw new UnavailableSerieException; |
22 | 22 | } |
23 | 23 |
@@ -6,32 +6,32 @@ |
||
6 | 6 | |
7 | 7 | class ChartServiceProvider extends ServiceProvider{ |
8 | 8 | |
9 | - /** |
|
10 | - * Indicates if loading of the provider is deferred. |
|
11 | - * |
|
12 | - * @var bool |
|
13 | - */ |
|
14 | - protected $defer = false; |
|
15 | - |
|
16 | - public function boot() |
|
17 | - { |
|
18 | - $this->publishesConfig(); |
|
19 | - } |
|
20 | - |
|
21 | - public function register() |
|
22 | - { |
|
23 | - $this->app->bind('chart', function($app) { |
|
24 | - |
|
25 | - $config = config('charts'); |
|
26 | - |
|
27 | - return new Chart($config); |
|
28 | - }); |
|
29 | - } |
|
30 | - |
|
31 | - protected function publishesConfig() |
|
32 | - { |
|
33 | - $this->publishes([ |
|
34 | - __DIR__.'/Config/charts.php' => config_path('charts.php'), |
|
35 | - ]); |
|
36 | - } |
|
9 | + /** |
|
10 | + * Indicates if loading of the provider is deferred. |
|
11 | + * |
|
12 | + * @var bool |
|
13 | + */ |
|
14 | + protected $defer = false; |
|
15 | + |
|
16 | + public function boot() |
|
17 | + { |
|
18 | + $this->publishesConfig(); |
|
19 | + } |
|
20 | + |
|
21 | + public function register() |
|
22 | + { |
|
23 | + $this->app->bind('chart', function($app) { |
|
24 | + |
|
25 | + $config = config('charts'); |
|
26 | + |
|
27 | + return new Chart($config); |
|
28 | + }); |
|
29 | + } |
|
30 | + |
|
31 | + protected function publishesConfig() |
|
32 | + { |
|
33 | + $this->publishes([ |
|
34 | + __DIR__.'/Config/charts.php' => config_path('charts.php'), |
|
35 | + ]); |
|
36 | + } |
|
37 | 37 | } |
38 | 38 | \ No newline at end of file |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | $availableTypes = array_keys($this->config['available_types']); |
19 | 19 | |
20 | - if (! in_array($type, $availableTypes)) { |
|
20 | + if (!in_array($type, $availableTypes)) { |
|
21 | 21 | throw new UnavailableOptionException; |
22 | 22 | } |
23 | 23 |