Completed
Push — master ( 738150...6547d3 )
by
unknown
01:38
created
src/Chart.php 4 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.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 	/**
40 40
 	 * [render description]
41
-	 * @return json
41
+	 * @return string
42 42
 	 */
43 43
 	public function render()
44 44
 	{
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	/**
107 107
 	 * [callFunc description]
108 108
 	 * @param  \Closure $closure
109
-	 * @param  \EnergieProduction\Subsets\* $class
109
+	 * @param  Subsets\Subset $class
110 110
 	 */
111 111
 	protected function callFunc(Closure $closure, $class)
112 112
 	{
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,27 +7,27 @@
 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
 
33 33
 
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   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -4,30 +4,30 @@
 block discarded – undo
4 4
 
5 5
 class Subset implements Rendered {
6 6
 
7
-    protected $render;
7
+	protected $render;
8 8
 
9
-    /**
10
-     * [__construct description]
11
-     * @param \EnergieProduction\Chart\Rendered\Rendered $render   
12
-     */
13
-    public function __construct(Rendered $render)
14
-    {
15
-        $this->render = $render;
16
-    }
9
+	/**
10
+	 * [__construct description]
11
+	 * @param \EnergieProduction\Chart\Rendered\Rendered $render   
12
+	 */
13
+	public function __construct(Rendered $render)
14
+	{
15
+		$this->render = $render;
16
+	}
17 17
 
18
-    /**
19
-     * [handle description]
20
-     * @param \mixed $content   
21
-     * @return array  
22
-     */
23
-    public function handle($content)
24
-    {
25
-        $subset = lcfirst(class_basename(get_class($this->render->class)));
18
+	/**
19
+	 * [handle description]
20
+	 * @param \mixed $content   
21
+	 * @return array  
22
+	 */
23
+	public function handle($content)
24
+	{
25
+		$subset = lcfirst(class_basename(get_class($this->render->class)));
26 26
 
27
-        if ($subset === 'series' && (! $this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) {
28
-            $content = [$content];
29
-        }
27
+		if ($subset === 'series' && (! $this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) {
28
+			$content = [$content];
29
+		}
30 30
 
31
-        return $this->render->handle($content);
32
-    }
31
+		return $this->render->handle($content);
32
+	}
33 33
 }
34 34
\ 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/Expression.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,18 +10,18 @@
 block discarded – undo
10 10
 	 * [__construct description]
11 11
 	 * @param \EnergieProduction\Chart\Rendered\Rendered $render
12 12
 	 */
13
-    public function __construct(Rendered $render)
14
-    {
15
-        $this->render = $render;
16
-    }
13
+	public function __construct(Rendered $render)
14
+	{
15
+		$this->render = $render;
16
+	}
17 17
 
18 18
 	/**
19 19
 	 * [handle description]
20 20
 	 * @param mixed $content	 
21 21
 	 * @return array	 
22 22
 	 */
23
-    public function handle($content)
24
-    {
25
-        return $this->render->handle("#!!" . $content->render() . "!!#");
26
-    }
23
+	public function handle($content)
24
+	{
25
+		return $this->render->handle("#!!" . $content->render() . "!!#");
26
+	}
27 27
 }
28 28
\ No newline at end of file
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
@@ -10,18 +10,18 @@
 block discarded – undo
10 10
 	 * [__construct description]
11 11
 	 * @param \EnergieProduction\Chart\Rendered\Rendered $render	 
12 12
 	 */
13
-    public function __construct(Rendered $render)
14
-    {
15
-        $this->render = $render;
16
-    }
13
+	public function __construct(Rendered $render)
14
+	{
15
+		$this->render = $render;
16
+	}
17 17
 
18 18
 	/**
19 19
 	 * [handle description]
20 20
 	 * @param string $content	 
21 21
 	 * @return array	 
22 22
 	 */
23
-    public function handle($content)
24
-    {
25
-        return $this->render->handle($content);
26
-    }
23
+	public function handle($content)
24
+	{
25
+		return $this->render->handle($content);
26
+	}
27 27
 }
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
@@ -10,18 +10,18 @@
 block discarded – undo
10 10
 	 * [__construct description]
11 11
 	 * @param mixed $class	 
12 12
 	 */
13
-    public function __construct($class)
14
-    {
15
-        $this->class = $class;
16
-    }
13
+	public function __construct($class)
14
+	{
15
+		$this->class = $class;
16
+	}
17 17
 
18 18
 	/**
19 19
 	 * [__construct description]
20 20
 	 * @param string $content	 
21 21
 	 * @return array	 
22 22
 	 */
23
-    public function handle($content)
24
-    {
25
-        return [lcfirst(class_basename(get_class($this->class))) => $content];
26
-    }
23
+	public function handle($content)
24
+	{
25
+		return [lcfirst(class_basename(get_class($this->class))) => $content];
26
+	}
27 27
 }
Please login to merge, or discard this patch.
src/Subsets/Builder.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 	protected $criteriaList;
11 11
 	public $cascade = null;
12 12
 
13
-    /**
14
-     * [__construct description]
15
-     */
13
+	/**
14
+	 * [__construct description]
15
+	 */
16 16
 	public function __construct()
17 17
 	{
18 18
 		$this->criteriaList = collect();
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
 		return $render->handle($formatedSubset);
46 46
 	}
47 47
 
48
-    /**
49
-     * [setCascade description]
50
-     * @param string $cascade     
51
-     */
48
+	/**
49
+	 * [setCascade description]
50
+	 * @param string $cascade     
51
+	 */
52 52
 	public function setCascade($cascade)
53 53
 	{
54 54
 		$this->cascade = $cascade;
Please login to merge, or discard this patch.