Completed
Push — master ( 24e3ba...17f41c )
by
unknown
01:39
created
src/Chart.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
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
 	   }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
src/ChartServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -7,25 +7,25 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Rendered/Subset.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     {
14 14
         $subset = lcfirst(class_basename(get_class($this->render->class)));
15 15
 
16
-        if ($subset === 'series' && (! $this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) {
16
+        if ($subset === 'series' && (!$this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) {
17 17
             $content = [$content];
18 18
         }
19 19
 
Please login to merge, or discard this patch.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -4,21 +4,21 @@
 block discarded – undo
4 4
 
5 5
 class Subset implements Rendered {
6 6
 
7
-    protected $render;
7
+	protected $render;
8 8
 
9
-    public function __construct(Rendered $render)
10
-    {
11
-        $this->render = $render;
12
-    }
9
+	public function __construct(Rendered $render)
10
+	{
11
+		$this->render = $render;
12
+	}
13 13
 
14
-    public function handle($content)
15
-    {
16
-        $subset = lcfirst(class_basename(get_class($this->render->class)));
14
+	public function handle($content)
15
+	{
16
+		$subset = lcfirst(class_basename(get_class($this->render->class)));
17 17
 
18
-        if ($subset === 'series' && (! $this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) {
19
-            $content = [$content];
20
-        }
18
+		if ($subset === 'series' && (! $this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) {
19
+			$content = [$content];
20
+		}
21 21
 
22
-        return $this->render->handle($content);
23
-    }
22
+		return $this->render->handle($content);
23
+	}
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
src/Rendered/Rendered.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 
5 5
 interface Rendered {
6 6
 
7
-    public function handle($content);
7
+	public function handle($content);
8 8
 
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
src/Criterias/Builder.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
 		$render = new Rendered\Render($this);
20 20
 		$render = new Rendered\Criteria($render);
21 21
 
22
-	    if ($this->content instanceof Expression) {
22
+		if ($this->content instanceof Expression) {
23 23
 			$render = new Rendered\Expression($render);
24
-	    }
24
+		}
25 25
 
26 26
 		return $render->handle($this->content);
27 27
 	}
Please login to merge, or discard this patch.
src/Rendered/Criteria.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
 
7 7
 	protected $render;
8 8
 
9
-    public function __construct(Rendered $render)
10
-    {
11
-        $this->render = $render;
12
-    }
9
+	public function __construct(Rendered $render)
10
+	{
11
+		$this->render = $render;
12
+	}
13 13
 
14
-    public function handle($content)
15
-    {
16
-        return $this->render->handle($content);
17
-    }
14
+	public function handle($content)
15
+	{
16
+		return $this->render->handle($content);
17
+	}
18 18
 }
Please login to merge, or discard this patch.
src/Rendered/Render.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
 
7 7
 	protected $render;
8 8
 
9
-    public function __construct($class)
10
-    {
11
-        $this->class = $class;
12
-    }
9
+	public function __construct($class)
10
+	{
11
+		$this->class = $class;
12
+	}
13 13
 
14
-    public function handle($content)
15
-    {
16
-        return [lcfirst(class_basename(get_class($this->class))) => $content];
17
-    }
14
+	public function handle($content)
15
+	{
16
+		return [lcfirst(class_basename(get_class($this->class))) => $content];
17
+	}
18 18
 }
Please login to merge, or discard this patch.
src/Rendered/Expression.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 block discarded – undo
6 6
 
7 7
 	protected $render;
8 8
 
9
-    public function __construct(Rendered $render)
10
-    {
11
-        $this->render = $render;
12
-    }
9
+	public function __construct(Rendered $render)
10
+	{
11
+		$this->render = $render;
12
+	}
13 13
 
14
-    public function handle($content)
15
-    {
16
-        return $this->render->handle("#!!" . $content->render() . "!!#");
17
-    }
14
+	public function handle($content)
15
+	{
16
+		return $this->render->handle("#!!" . $content->render() . "!!#");
17
+	}
18 18
 }
19 19
\ No newline at end of file
Please login to merge, or discard this patch.