@@ -133,7 +133,7 @@ |
||
| 133 | 133 | |
| 134 | 134 | foreach($path as $step) |
| 135 | 135 | { |
| 136 | - $loc = &$loc[$step]; |
|
| 136 | + $loc = &$loc[$step]; |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | return $loc = $val; |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | |
| 132 | 132 | array_pop($path); |
| 133 | 133 | |
| 134 | - foreach($path as $step) |
|
| 134 | + foreach ($path as $step) |
|
| 135 | 135 | { |
| 136 | 136 | $loc = &$loc[$step]; |
| 137 | 137 | } |
@@ -28,8 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | if (str_contains($subset, '.')) { |
| 30 | 30 | $this->addCascadeSubset($subset, $closure); |
| 31 | - } |
|
| 32 | - else { |
|
| 31 | + } else { |
|
| 33 | 32 | $this->addSimpleSubset($subset, $closure); |
| 34 | 33 | } |
| 35 | 34 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | $subset = lcfirst(class_basename(get_class($this))); |
| 31 | 31 | |
| 32 | - if ($subset === 'series' && (! $this->cascade || starts_with($this->cascade, 'series.'))) { |
|
| 32 | + if ($subset === 'series' && (!$this->cascade || starts_with($this->cascade, 'series.'))) { |
|
| 33 | 33 | return [$subset => [$formatedSubset]]; |
| 34 | 34 | } |
| 35 | 35 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use Illuminate\Support\Collection; |
| 6 | 6 | use Illuminate\Support\ServiceProvider; |
| 7 | 7 | |
| 8 | -class ChartServiceProvider extends ServiceProvider{ |
|
| 8 | +class ChartServiceProvider extends ServiceProvider { |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Indicates if loading of the provider is deferred. |
@@ -7,25 +7,25 @@ |
||
| 7 | 7 | |
| 8 | 8 | class ChartServiceProvider extends ServiceProvider{ |
| 9 | 9 | |
| 10 | - /** |
|
| 11 | - * Indicates if loading of the provider is deferred. |
|
| 12 | - * |
|
| 13 | - * @var bool |
|
| 14 | - */ |
|
| 15 | - protected $defer = false; |
|
| 16 | - |
|
| 17 | - public function boot() |
|
| 18 | - { |
|
| 19 | - // |
|
| 20 | - } |
|
| 21 | - |
|
| 22 | - public function register() |
|
| 23 | - { |
|
| 24 | - $this->app->bind('chart', function($app) { |
|
| 25 | - |
|
| 26 | - $collection = new Collection; |
|
| 27 | - |
|
| 28 | - return new Chart($collection); |
|
| 29 | - }); |
|
| 30 | - } |
|
| 10 | + /** |
|
| 11 | + * Indicates if loading of the provider is deferred. |
|
| 12 | + * |
|
| 13 | + * @var bool |
|
| 14 | + */ |
|
| 15 | + protected $defer = false; |
|
| 16 | + |
|
| 17 | + public function boot() |
|
| 18 | + { |
|
| 19 | + // |
|
| 20 | + } |
|
| 21 | + |
|
| 22 | + public function register() |
|
| 23 | + { |
|
| 24 | + $this->app->bind('chart', function($app) { |
|
| 25 | + |
|
| 26 | + $collection = new Collection; |
|
| 27 | + |
|
| 28 | + return new Chart($collection); |
|
| 29 | + }); |
|
| 30 | + } |
|
| 31 | 31 | } |
| 32 | 32 | \ No newline at end of file |