GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 58175c...546d17 )
by halfpastfour
43s queued 10s
created
src/Renderer/Renderer.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -10,23 +10,23 @@
 block discarded – undo
10 10
  */
11 11
 abstract class Renderer implements RendererInterface
12 12
 {
13
-    /**
14
-     * Flag used for rendering JSON in pretty mode.
15
-     */
16
-    const RENDER_PRETTY = 1;
13
+	/**
14
+	 * Flag used for rendering JSON in pretty mode.
15
+	 */
16
+	const RENDER_PRETTY = 1;
17 17
 
18
-    /**
19
-     * @var Chart The chart that needs to be rendered.
20
-     */
21
-    protected $chart;
18
+	/**
19
+	 * @var Chart The chart that needs to be rendered.
20
+	 */
21
+	protected $chart;
22 22
 
23
-    /**
24
-     * RendererInterface constructor. Expects an instance of a chart.
25
-     *
26
-     * @param Chart $chart The Chart that needs to be rendered.
27
-     */
28
-    public function __construct(Chart $chart)
29
-    {
30
-        $this->chart = $chart;
31
-    }
23
+	/**
24
+	 * RendererInterface constructor. Expects an instance of a chart.
25
+	 *
26
+	 * @param Chart $chart The Chart that needs to be rendered.
27
+	 */
28
+	public function __construct(Chart $chart)
29
+	{
30
+		$this->chart = $chart;
31
+	}
32 32
 }
Please login to merge, or discard this patch.
src/Renderer/RendererInterface.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -9,19 +9,19 @@
 block discarded – undo
9 9
  */
10 10
 interface RendererInterface
11 11
 {
12
-    /**
13
-     * RendererInterface constructor. Expects an instance of a chart.
14
-     *
15
-     * @param Chart $chart
16
-     */
17
-    public function __construct(Chart $chart);
12
+	/**
13
+	 * RendererInterface constructor. Expects an instance of a chart.
14
+	 *
15
+	 * @param Chart $chart
16
+	 */
17
+	public function __construct(Chart $chart);
18 18
 
19
-    /**
20
-     * Render the chart with the current strategy, returning a string.
21
-     *
22
-     * @param int|null $flags
23
-     *
24
-     * @return string
25
-     */
26
-    public function render($flags = null);
19
+	/**
20
+	 * Render the chart with the current strategy, returning a string.
21
+	 *
22
+	 * @param int|null $flags
23
+	 *
24
+	 * @return string
25
+	 */
26
+	public function render($flags = null);
27 27
 }
Please login to merge, or discard this patch.
src/Factory.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -8,30 +8,30 @@
 block discarded – undo
8 8
  */
9 9
 class Factory
10 10
 {
11
-    const BAR            = 'bar';
12
-    const BUBBLE         = 'bubble';
13
-    const DOUGHNUT       = 'doughnut';
14
-    const HORIZONTAL_BAR = 'horizontalBar';
15
-    const LINE           = 'line';
16
-    const PIE            = 'pie';
17
-    const POLAR_AREA     = 'polarArea';
18
-    const RADAR          = 'radar';
19
-    const SCATTER        = 'scatter';
11
+	const BAR            = 'bar';
12
+	const BUBBLE         = 'bubble';
13
+	const DOUGHNUT       = 'doughnut';
14
+	const HORIZONTAL_BAR = 'horizontalBar';
15
+	const LINE           = 'line';
16
+	const PIE            = 'pie';
17
+	const POLAR_AREA     = 'polarArea';
18
+	const RADAR          = 'radar';
19
+	const SCATTER        = 'scatter';
20 20
 
21
-    /**
22
-     * @param $type
23
-     *
24
-     * @return Chart
25
-     */
26
-    public function create($type)
27
-    {
28
-        $className  = ucfirst($type);
29
-        $namespace  = "\\Halfpastfour\\PHPChartJS\\Chart";
30
-        $path       = "{$namespace}\\{$className}";
31
-        if (! class_exists($path)) {
32
-            throw new \InvalidArgumentException("Invalid chart type. {$path} does not exist.");
33
-        }
21
+	/**
22
+	 * @param $type
23
+	 *
24
+	 * @return Chart
25
+	 */
26
+	public function create($type)
27
+	{
28
+		$className  = ucfirst($type);
29
+		$namespace  = "\\Halfpastfour\\PHPChartJS\\Chart";
30
+		$path       = "{$namespace}\\{$className}";
31
+		if (! class_exists($path)) {
32
+			throw new \InvalidArgumentException("Invalid chart type. {$path} does not exist.");
33
+		}
34 34
 
35
-        return new $path;
36
-    }
35
+		return new $path;
36
+	}
37 37
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $className  = ucfirst($type);
29 29
         $namespace  = "\\Halfpastfour\\PHPChartJS\\Chart";
30 30
         $path       = "{$namespace}\\{$className}";
31
-        if (! class_exists($path)) {
31
+        if (!class_exists($path)) {
32 32
             throw new \InvalidArgumentException("Invalid chart type. {$path} does not exist.");
33 33
         }
34 34
 
Please login to merge, or discard this patch.
src/ConfigDefaults/GlobalConfig.php 1 patch
Indentation   +208 added lines, -208 removed lines patch added patch discarded remove patch
@@ -8,212 +8,212 @@
 block discarded – undo
8 8
  */
9 9
 class GlobalConfig
10 10
 {
11
-    /**
12
-     * @var GlobalConfig
13
-     */
14
-    private static $instance;
15
-
16
-    /**
17
-     * @var string
18
-     */
19
-    private $defaultFontColor;
20
-
21
-    /**
22
-     * @var string
23
-     */
24
-    private $defaultFontFamily;
25
-
26
-    /**
27
-     * @var int
28
-     */
29
-    private $defaultFontSize;
30
-
31
-    /**
32
-     * @var string
33
-     */
34
-    private $defaultFontStyle;
35
-
36
-    /**
37
-     * @var LayoutConfig
38
-     */
39
-    private $layout;
40
-
41
-    /**
42
-     * @var TooltipsConfig
43
-     */
44
-    private $tooltips;
45
-
46
-    /**
47
-     * @var HoverConfig
48
-     */
49
-    private $hover;
50
-
51
-    /**
52
-     * @var AnimationConfig
53
-     */
54
-    private $animation;
55
-
56
-    /**
57
-     * @var ElementsConfig
58
-     */
59
-    private $elements;
60
-
61
-    /**
62
-     * GlobalConfig constructor.
63
-     */
64
-    private function __construct()
65
-    {
66
-    }
67
-
68
-    /**
69
-     * @return $this
70
-     */
71
-    public static function getInstance()
72
-    {
73
-        if (is_null(self::$instance)) {
74
-            self::$instance = new self;
75
-        }
76
-
77
-        return self::$instance;
78
-    }
79
-
80
-    /**
81
-     * @return string
82
-     */
83
-    public function getDefaultFontColor()
84
-    {
85
-        return $this->defaultFontColor;
86
-    }
87
-
88
-    /**
89
-     * @param string $defaultFontColor
90
-     *
91
-     * @return $this
92
-     */
93
-    public function setDefaultFontColor($defaultFontColor)
94
-    {
95
-        $this->defaultFontColor = strval($defaultFontColor);
96
-
97
-        return $this;
98
-    }
99
-
100
-    /**
101
-     * @return string
102
-     */
103
-    public function getDefaultFontFamily()
104
-    {
105
-        return $this->defaultFontFamily;
106
-    }
107
-
108
-    /**
109
-     * @param string $defaultFontFamily
110
-     *
111
-     * @return $this
112
-     */
113
-    public function setDefaultFontFamily($defaultFontFamily)
114
-    {
115
-        $this->defaultFontFamily = strval($defaultFontFamily);
116
-
117
-        return $this;
118
-    }
119
-
120
-    /**
121
-     * @return int
122
-     */
123
-    public function getDefaultFontSize()
124
-    {
125
-        return $this->defaultFontSize;
126
-    }
127
-
128
-    /**
129
-     * @param int $defaultFontSize
130
-     *
131
-     * @return $this
132
-     */
133
-    public function setDefaultFontSize($defaultFontSize)
134
-    {
135
-        $this->defaultFontSize = intval($defaultFontSize);
136
-
137
-        return $this;
138
-    }
139
-
140
-    /**
141
-     * @return string
142
-     */
143
-    public function getDefaultFontStyle()
144
-    {
145
-        return $this->defaultFontStyle;
146
-    }
147
-
148
-    /**
149
-     * @param string $defaultFontStyle
150
-     *
151
-     * @return $this
152
-     */
153
-    public function setDefaultFontStyle($defaultFontStyle)
154
-    {
155
-        $this->defaultFontStyle = $defaultFontStyle;
156
-
157
-        return $this;
158
-    }
159
-
160
-    /**
161
-     * @return LayoutConfig
162
-     */
163
-    public function layout()
164
-    {
165
-        if (is_null($this->layout)) {
166
-            $this->layout = new LayoutConfig();
167
-        }
168
-
169
-        return $this->layout;
170
-    }
171
-
172
-    /**
173
-     * @return TooltipsConfig
174
-     */
175
-    public function tooltips()
176
-    {
177
-        if (is_null($this->tooltips)) {
178
-            $this->tooltips = new TooltipsConfig();
179
-        }
180
-
181
-        return $this->tooltips;
182
-    }
183
-
184
-    /**
185
-     * @return HoverConfig
186
-     */
187
-    public function hover()
188
-    {
189
-        if (is_null($this->hover)) {
190
-            $this->hover = new HoverConfig();
191
-        }
192
-
193
-        return $this->hover;
194
-    }
195
-
196
-    /**
197
-     * @return AnimationConfig
198
-     */
199
-    public function animation()
200
-    {
201
-        if (is_null($this->animation)) {
202
-            $this->animation = new AnimationConfig();
203
-        }
204
-
205
-        return $this->animation;
206
-    }
207
-
208
-    /**
209
-     * @return ElementsConfig
210
-     */
211
-    public function elements()
212
-    {
213
-        if (is_null($this->elements)) {
214
-            $this->elements = new ElementsConfig();
215
-        }
216
-
217
-        return $this->elements;
218
-    }
11
+	/**
12
+	 * @var GlobalConfig
13
+	 */
14
+	private static $instance;
15
+
16
+	/**
17
+	 * @var string
18
+	 */
19
+	private $defaultFontColor;
20
+
21
+	/**
22
+	 * @var string
23
+	 */
24
+	private $defaultFontFamily;
25
+
26
+	/**
27
+	 * @var int
28
+	 */
29
+	private $defaultFontSize;
30
+
31
+	/**
32
+	 * @var string
33
+	 */
34
+	private $defaultFontStyle;
35
+
36
+	/**
37
+	 * @var LayoutConfig
38
+	 */
39
+	private $layout;
40
+
41
+	/**
42
+	 * @var TooltipsConfig
43
+	 */
44
+	private $tooltips;
45
+
46
+	/**
47
+	 * @var HoverConfig
48
+	 */
49
+	private $hover;
50
+
51
+	/**
52
+	 * @var AnimationConfig
53
+	 */
54
+	private $animation;
55
+
56
+	/**
57
+	 * @var ElementsConfig
58
+	 */
59
+	private $elements;
60
+
61
+	/**
62
+	 * GlobalConfig constructor.
63
+	 */
64
+	private function __construct()
65
+	{
66
+	}
67
+
68
+	/**
69
+	 * @return $this
70
+	 */
71
+	public static function getInstance()
72
+	{
73
+		if (is_null(self::$instance)) {
74
+			self::$instance = new self;
75
+		}
76
+
77
+		return self::$instance;
78
+	}
79
+
80
+	/**
81
+	 * @return string
82
+	 */
83
+	public function getDefaultFontColor()
84
+	{
85
+		return $this->defaultFontColor;
86
+	}
87
+
88
+	/**
89
+	 * @param string $defaultFontColor
90
+	 *
91
+	 * @return $this
92
+	 */
93
+	public function setDefaultFontColor($defaultFontColor)
94
+	{
95
+		$this->defaultFontColor = strval($defaultFontColor);
96
+
97
+		return $this;
98
+	}
99
+
100
+	/**
101
+	 * @return string
102
+	 */
103
+	public function getDefaultFontFamily()
104
+	{
105
+		return $this->defaultFontFamily;
106
+	}
107
+
108
+	/**
109
+	 * @param string $defaultFontFamily
110
+	 *
111
+	 * @return $this
112
+	 */
113
+	public function setDefaultFontFamily($defaultFontFamily)
114
+	{
115
+		$this->defaultFontFamily = strval($defaultFontFamily);
116
+
117
+		return $this;
118
+	}
119
+
120
+	/**
121
+	 * @return int
122
+	 */
123
+	public function getDefaultFontSize()
124
+	{
125
+		return $this->defaultFontSize;
126
+	}
127
+
128
+	/**
129
+	 * @param int $defaultFontSize
130
+	 *
131
+	 * @return $this
132
+	 */
133
+	public function setDefaultFontSize($defaultFontSize)
134
+	{
135
+		$this->defaultFontSize = intval($defaultFontSize);
136
+
137
+		return $this;
138
+	}
139
+
140
+	/**
141
+	 * @return string
142
+	 */
143
+	public function getDefaultFontStyle()
144
+	{
145
+		return $this->defaultFontStyle;
146
+	}
147
+
148
+	/**
149
+	 * @param string $defaultFontStyle
150
+	 *
151
+	 * @return $this
152
+	 */
153
+	public function setDefaultFontStyle($defaultFontStyle)
154
+	{
155
+		$this->defaultFontStyle = $defaultFontStyle;
156
+
157
+		return $this;
158
+	}
159
+
160
+	/**
161
+	 * @return LayoutConfig
162
+	 */
163
+	public function layout()
164
+	{
165
+		if (is_null($this->layout)) {
166
+			$this->layout = new LayoutConfig();
167
+		}
168
+
169
+		return $this->layout;
170
+	}
171
+
172
+	/**
173
+	 * @return TooltipsConfig
174
+	 */
175
+	public function tooltips()
176
+	{
177
+		if (is_null($this->tooltips)) {
178
+			$this->tooltips = new TooltipsConfig();
179
+		}
180
+
181
+		return $this->tooltips;
182
+	}
183
+
184
+	/**
185
+	 * @return HoverConfig
186
+	 */
187
+	public function hover()
188
+	{
189
+		if (is_null($this->hover)) {
190
+			$this->hover = new HoverConfig();
191
+		}
192
+
193
+		return $this->hover;
194
+	}
195
+
196
+	/**
197
+	 * @return AnimationConfig
198
+	 */
199
+	public function animation()
200
+	{
201
+		if (is_null($this->animation)) {
202
+			$this->animation = new AnimationConfig();
203
+		}
204
+
205
+		return $this->animation;
206
+	}
207
+
208
+	/**
209
+	 * @return ElementsConfig
210
+	 */
211
+	public function elements()
212
+	{
213
+		if (is_null($this->elements)) {
214
+			$this->elements = new ElementsConfig();
215
+		}
216
+
217
+		return $this->elements;
218
+	}
219 219
 }
Please login to merge, or discard this patch.
src/ChartInterface.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -10,37 +10,37 @@
 block discarded – undo
10 10
  */
11 11
 interface ChartInterface
12 12
 {
13
-    /**
14
-     * @return Options
15
-     */
16
-    public function options();
17
-
18
-    /**
19
-     * @return DataSet
20
-     */
21
-    public function createDataSet();
22
-
23
-    /**
24
-     * @param DataSet $dataSet
25
-     *
26
-     * @return $this
27
-     */
28
-    public function addDataSet(DataSet $dataSet);
29
-
30
-    /**
31
-     * @param $offset
32
-     *
33
-     * @return DataSet
34
-     */
35
-    public function getDataSet($offset);
36
-
37
-    /**
38
-     * @return CollectionInterface
39
-     */
40
-    public function dataSets();
41
-
42
-    /**
43
-     * @return string
44
-     */
45
-    public function render();
13
+	/**
14
+	 * @return Options
15
+	 */
16
+	public function options();
17
+
18
+	/**
19
+	 * @return DataSet
20
+	 */
21
+	public function createDataSet();
22
+
23
+	/**
24
+	 * @param DataSet $dataSet
25
+	 *
26
+	 * @return $this
27
+	 */
28
+	public function addDataSet(DataSet $dataSet);
29
+
30
+	/**
31
+	 * @param $offset
32
+	 *
33
+	 * @return DataSet
34
+	 */
35
+	public function getDataSet($offset);
36
+
37
+	/**
38
+	 * @return CollectionInterface
39
+	 */
40
+	public function dataSets();
41
+
42
+	/**
43
+	 * @return string
44
+	 */
45
+	public function render();
46 46
 }
Please login to merge, or discard this patch.
src/Options/PieOptions.php 2 patches
Indentation   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -11,90 +11,90 @@
 block discarded – undo
11 11
  */
12 12
 class PieOptions extends Options
13 13
 {
14
-    /**
15
-     * @var int
16
-     */
17
-    protected $cutoutPercentage;
18
-
19
-    /**
20
-     * @var float
21
-     */
22
-    protected $rotation;
23
-
24
-    /**
25
-     * @var float
26
-     */
27
-    protected $circumference;
28
-
29
-    /**
30
-     * @return Animation
31
-     */
32
-    public function getAnimation()
33
-    {
34
-        if (is_null($this->animation)) {
35
-            $this->animation    = new PieAnimation();
36
-        }
37
-
38
-        return $this->animation;
39
-    }
40
-
41
-    /**
42
-     * @return int
43
-     */
44
-    public function getCutoutPercentage()
45
-    {
46
-        return $this->cutoutPercentage;
47
-    }
48
-
49
-    /**
50
-     * @param int $cutoutPercentage
51
-     *
52
-     * @return $this
53
-     */
54
-    public function setCutoutPercentage($cutoutPercentage)
55
-    {
56
-        $this->cutoutPercentage = $cutoutPercentage;
57
-
58
-        return $this;
59
-    }
60
-
61
-    /**
62
-     * @return float
63
-     */
64
-    public function getRotation()
65
-    {
66
-        return $this->rotation;
67
-    }
68
-
69
-    /**
70
-     * @param float $rotation
71
-     *
72
-     * @return $this
73
-     */
74
-    public function setRotation($rotation)
75
-    {
76
-        $this->rotation = $rotation;
77
-
78
-        return $this;
79
-    }
80
-
81
-    /**
82
-     * @return float
83
-     */
84
-    public function getCircumference()
85
-    {
86
-        return $this->circumference;
87
-    }
88
-
89
-    /**
90
-     * @param float $circumference
91
-     *
92
-     * @return $this
93
-     */
94
-    public function setCircumference($circumference)
95
-    {
96
-        $this->circumference = $circumference;
97
-
98
-        return $this;
99
-    }
14
+	/**
15
+	 * @var int
16
+	 */
17
+	protected $cutoutPercentage;
18
+
19
+	/**
20
+	 * @var float
21
+	 */
22
+	protected $rotation;
23
+
24
+	/**
25
+	 * @var float
26
+	 */
27
+	protected $circumference;
28
+
29
+	/**
30
+	 * @return Animation
31
+	 */
32
+	public function getAnimation()
33
+	{
34
+		if (is_null($this->animation)) {
35
+			$this->animation    = new PieAnimation();
36
+		}
37
+
38
+		return $this->animation;
39
+	}
40
+
41
+	/**
42
+	 * @return int
43
+	 */
44
+	public function getCutoutPercentage()
45
+	{
46
+		return $this->cutoutPercentage;
47
+	}
48
+
49
+	/**
50
+	 * @param int $cutoutPercentage
51
+	 *
52
+	 * @return $this
53
+	 */
54
+	public function setCutoutPercentage($cutoutPercentage)
55
+	{
56
+		$this->cutoutPercentage = $cutoutPercentage;
57
+
58
+		return $this;
59
+	}
60
+
61
+	/**
62
+	 * @return float
63
+	 */
64
+	public function getRotation()
65
+	{
66
+		return $this->rotation;
67
+	}
68
+
69
+	/**
70
+	 * @param float $rotation
71
+	 *
72
+	 * @return $this
73
+	 */
74
+	public function setRotation($rotation)
75
+	{
76
+		$this->rotation = $rotation;
77
+
78
+		return $this;
79
+	}
80
+
81
+	/**
82
+	 * @return float
83
+	 */
84
+	public function getCircumference()
85
+	{
86
+		return $this->circumference;
87
+	}
88
+
89
+	/**
90
+	 * @param float $circumference
91
+	 *
92
+	 * @return $this
93
+	 */
94
+	public function setCircumference($circumference)
95
+	{
96
+		$this->circumference = $circumference;
97
+
98
+		return $this;
99
+	}
100 100
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function getAnimation()
33 33
     {
34 34
         if (is_null($this->animation)) {
35
-            $this->animation    = new PieAnimation();
35
+            $this->animation = new PieAnimation();
36 36
         }
37 37
 
38 38
         return $this->animation;
Please login to merge, or discard this patch.
src/Options/Legend/Labels.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
      */
211 211
     public function setUsePointStyle($usePointStyle)
212 212
     {
213
-        $this->usePointStyle = ! ! $usePointStyle;
213
+        $this->usePointStyle = !!$usePointStyle;
214 214
 
215 215
         return $this;
216 216
     }
Please login to merge, or discard this patch.
Indentation   +209 added lines, -209 removed lines patch added patch discarded remove patch
@@ -14,213 +14,213 @@
 block discarded – undo
14 14
  */
15 15
 class Labels implements ArraySerializableInterface, JsonSerializable
16 16
 {
17
-    use ArraySerializable;
18
-
19
-    /**
20
-     * @var int
21
-     */
22
-    private $boxWidth;
23
-
24
-    /**
25
-     * @var int
26
-     */
27
-    private $fontSize;
28
-
29
-    /**
30
-     * @var string
31
-     */
32
-    private $fontStyle;
33
-
34
-    /**
35
-     * @var string
36
-     */
37
-    private $fontColor;
38
-
39
-    /**
40
-     * @var string
41
-     */
42
-    private $fontFamily;
43
-
44
-    /**
45
-     * @var int
46
-     */
47
-    private $padding;
48
-
49
-    /**
50
-     * @var Expr
51
-     */
52
-    private $generateLabels;
53
-
54
-    /**
55
-     * @var bool
56
-     */
57
-    private $usePointStyle;
58
-
59
-    /**
60
-     * @return int
61
-     */
62
-    public function getBoxWidth()
63
-    {
64
-        return $this->boxWidth;
65
-    }
66
-
67
-    /**
68
-     * @param int $boxWidth
69
-     *
70
-     * @return Labels
71
-     */
72
-    public function setBoxWidth($boxWidth)
73
-    {
74
-        $this->boxWidth = intval($boxWidth);
75
-
76
-        return $this;
77
-    }
78
-
79
-    /**
80
-     * @return mixed
81
-     */
82
-    public function getFontSize()
83
-    {
84
-        return $this->fontSize;
85
-    }
86
-
87
-    /**
88
-     * @param int $fontSize
89
-     *
90
-     * @return Labels
91
-     */
92
-    public function setFontSize($fontSize)
93
-    {
94
-        $this->fontSize = intval($fontSize);
95
-
96
-        return $this;
97
-    }
98
-
99
-    /**
100
-     * @return string
101
-     */
102
-    public function getFontStyle()
103
-    {
104
-        return $this->fontStyle;
105
-    }
106
-
107
-    /**
108
-     * @param string $fontStyle
109
-     *
110
-     * @return Labels
111
-     */
112
-    public function setFontStyle($fontStyle)
113
-    {
114
-        $this->fontStyle = strval($fontStyle);
115
-
116
-        return $this;
117
-    }
118
-
119
-    /**
120
-     * @return string
121
-     */
122
-    public function getFontColor()
123
-    {
124
-        return $this->fontColor;
125
-    }
126
-
127
-    /**
128
-     * @param string $fontColor
129
-     *
130
-     * @return Labels
131
-     */
132
-    public function setFontColor($fontColor)
133
-    {
134
-        $this->fontColor = strval($fontColor);
135
-
136
-        return $this;
137
-    }
138
-
139
-    /**
140
-     * @return string
141
-     */
142
-    public function getFontFamily()
143
-    {
144
-        return $this->fontFamily;
145
-    }
146
-
147
-    /**
148
-     * @param string $fontFamily
149
-     *
150
-     * @return Labels
151
-     */
152
-    public function setFontFamily($fontFamily)
153
-    {
154
-        $this->fontFamily = strval($fontFamily);
155
-
156
-        return $this;
157
-    }
158
-
159
-    /**
160
-     * @return int
161
-     */
162
-    public function getPadding()
163
-    {
164
-        return $this->padding;
165
-    }
166
-
167
-    /**
168
-     * @param int $padding
169
-     *
170
-     * @return Labels
171
-     */
172
-    public function setPadding($padding)
173
-    {
174
-        $this->padding = intval($padding);
175
-
176
-        return $this;
177
-    }
178
-
179
-    /**
180
-     * @return Expr
181
-     */
182
-    public function getGenerateLabels()
183
-    {
184
-        return $this->generateLabels;
185
-    }
186
-
187
-    /**
188
-     * @param string $generateLabels
189
-     *
190
-     * @return Labels
191
-     */
192
-    public function setGenerateLabels($generateLabels)
193
-    {
194
-        $this->generateLabels = new Expr(strval($generateLabels));
195
-
196
-        return $this;
197
-    }
198
-
199
-    /**
200
-     * @return bool
201
-     */
202
-    public function isUsePointStyle()
203
-    {
204
-        return $this->usePointStyle;
205
-    }
206
-
207
-    /**
208
-     * @param bool $usePointStyle
209
-     *
210
-     * @return Labels
211
-     */
212
-    public function setUsePointStyle($usePointStyle)
213
-    {
214
-        $this->usePointStyle = ! ! $usePointStyle;
215
-
216
-        return $this;
217
-    }
218
-
219
-    /**
220
-     * @return array
221
-     */
222
-    public function jsonSerialize()
223
-    {
224
-        return $this->getArrayCopy();
225
-    }
17
+	use ArraySerializable;
18
+
19
+	/**
20
+	 * @var int
21
+	 */
22
+	private $boxWidth;
23
+
24
+	/**
25
+	 * @var int
26
+	 */
27
+	private $fontSize;
28
+
29
+	/**
30
+	 * @var string
31
+	 */
32
+	private $fontStyle;
33
+
34
+	/**
35
+	 * @var string
36
+	 */
37
+	private $fontColor;
38
+
39
+	/**
40
+	 * @var string
41
+	 */
42
+	private $fontFamily;
43
+
44
+	/**
45
+	 * @var int
46
+	 */
47
+	private $padding;
48
+
49
+	/**
50
+	 * @var Expr
51
+	 */
52
+	private $generateLabels;
53
+
54
+	/**
55
+	 * @var bool
56
+	 */
57
+	private $usePointStyle;
58
+
59
+	/**
60
+	 * @return int
61
+	 */
62
+	public function getBoxWidth()
63
+	{
64
+		return $this->boxWidth;
65
+	}
66
+
67
+	/**
68
+	 * @param int $boxWidth
69
+	 *
70
+	 * @return Labels
71
+	 */
72
+	public function setBoxWidth($boxWidth)
73
+	{
74
+		$this->boxWidth = intval($boxWidth);
75
+
76
+		return $this;
77
+	}
78
+
79
+	/**
80
+	 * @return mixed
81
+	 */
82
+	public function getFontSize()
83
+	{
84
+		return $this->fontSize;
85
+	}
86
+
87
+	/**
88
+	 * @param int $fontSize
89
+	 *
90
+	 * @return Labels
91
+	 */
92
+	public function setFontSize($fontSize)
93
+	{
94
+		$this->fontSize = intval($fontSize);
95
+
96
+		return $this;
97
+	}
98
+
99
+	/**
100
+	 * @return string
101
+	 */
102
+	public function getFontStyle()
103
+	{
104
+		return $this->fontStyle;
105
+	}
106
+
107
+	/**
108
+	 * @param string $fontStyle
109
+	 *
110
+	 * @return Labels
111
+	 */
112
+	public function setFontStyle($fontStyle)
113
+	{
114
+		$this->fontStyle = strval($fontStyle);
115
+
116
+		return $this;
117
+	}
118
+
119
+	/**
120
+	 * @return string
121
+	 */
122
+	public function getFontColor()
123
+	{
124
+		return $this->fontColor;
125
+	}
126
+
127
+	/**
128
+	 * @param string $fontColor
129
+	 *
130
+	 * @return Labels
131
+	 */
132
+	public function setFontColor($fontColor)
133
+	{
134
+		$this->fontColor = strval($fontColor);
135
+
136
+		return $this;
137
+	}
138
+
139
+	/**
140
+	 * @return string
141
+	 */
142
+	public function getFontFamily()
143
+	{
144
+		return $this->fontFamily;
145
+	}
146
+
147
+	/**
148
+	 * @param string $fontFamily
149
+	 *
150
+	 * @return Labels
151
+	 */
152
+	public function setFontFamily($fontFamily)
153
+	{
154
+		$this->fontFamily = strval($fontFamily);
155
+
156
+		return $this;
157
+	}
158
+
159
+	/**
160
+	 * @return int
161
+	 */
162
+	public function getPadding()
163
+	{
164
+		return $this->padding;
165
+	}
166
+
167
+	/**
168
+	 * @param int $padding
169
+	 *
170
+	 * @return Labels
171
+	 */
172
+	public function setPadding($padding)
173
+	{
174
+		$this->padding = intval($padding);
175
+
176
+		return $this;
177
+	}
178
+
179
+	/**
180
+	 * @return Expr
181
+	 */
182
+	public function getGenerateLabels()
183
+	{
184
+		return $this->generateLabels;
185
+	}
186
+
187
+	/**
188
+	 * @param string $generateLabels
189
+	 *
190
+	 * @return Labels
191
+	 */
192
+	public function setGenerateLabels($generateLabels)
193
+	{
194
+		$this->generateLabels = new Expr(strval($generateLabels));
195
+
196
+		return $this;
197
+	}
198
+
199
+	/**
200
+	 * @return bool
201
+	 */
202
+	public function isUsePointStyle()
203
+	{
204
+		return $this->usePointStyle;
205
+	}
206
+
207
+	/**
208
+	 * @param bool $usePointStyle
209
+	 *
210
+	 * @return Labels
211
+	 */
212
+	public function setUsePointStyle($usePointStyle)
213
+	{
214
+		$this->usePointStyle = ! ! $usePointStyle;
215
+
216
+		return $this;
217
+	}
218
+
219
+	/**
220
+	 * @return array
221
+	 */
222
+	public function jsonSerialize()
223
+	{
224
+		return $this->getArrayCopy();
225
+	}
226 226
 }
Please login to merge, or discard this patch.
src/Options/Scales/YAxisCollection.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
      */
17 17
     public function getArrayCopy()
18 18
     {
19
-        $rows = [];
19
+        $rows = [ ];
20 20
         foreach ($this->data as $row) {
21 21
             /** @var YAxis $row */
22
-            $rows[] = $row->getArrayCopy();
22
+            $rows[ ] = $row->getArrayCopy();
23 23
         }
24 24
 
25 25
         return $rows;
Please login to merge, or discard this patch.
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -13,25 +13,25 @@
 block discarded – undo
13 13
  */
14 14
 class YAxisCollection extends ArrayAccess implements ArraySerializableInterface, JsonSerializable
15 15
 {
16
-    /**
17
-     * @return array
18
-     */
19
-    public function getArrayCopy()
20
-    {
21
-        $rows = [];
22
-        foreach ($this->data as $row) {
23
-            /** @var YAxis $row */
24
-            $rows[] = $row->getArrayCopy();
25
-        }
16
+	/**
17
+	 * @return array
18
+	 */
19
+	public function getArrayCopy()
20
+	{
21
+		$rows = [];
22
+		foreach ($this->data as $row) {
23
+			/** @var YAxis $row */
24
+			$rows[] = $row->getArrayCopy();
25
+		}
26 26
 
27
-        return $rows;
28
-    }
27
+		return $rows;
28
+	}
29 29
 
30
-    /**
31
-     * @return array
32
-     */
33
-    public function jsonSerialize()
34
-    {
35
-        return $this->getArrayCopy();
36
-    }
30
+	/**
31
+	 * @return array
32
+	 */
33
+	public function jsonSerialize()
34
+	{
35
+		return $this->getArrayCopy();
36
+	}
37 37
 }
Please login to merge, or discard this patch.
src/Options/Scales/XAxisCollection.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
      */
17 17
     public function getArrayCopy()
18 18
     {
19
-        $rows = [];
19
+        $rows = [ ];
20 20
         foreach ($this->data as $row) {
21 21
             /** @var XAxis $row */
22
-            $rows[] = $row->getArrayCopy();
22
+            $rows[ ] = $row->getArrayCopy();
23 23
         }
24 24
 
25 25
         return $rows;
Please login to merge, or discard this patch.
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -13,25 +13,25 @@
 block discarded – undo
13 13
  */
14 14
 class XAxisCollection extends ArrayAccess implements ArraySerializableInterface, JsonSerializable
15 15
 {
16
-    /**
17
-     * @return array
18
-     */
19
-    public function getArrayCopy()
20
-    {
21
-        $rows = [];
22
-        foreach ($this->data as $row) {
23
-            /** @var XAxis $row */
24
-            $rows[] = $row->getArrayCopy();
25
-        }
16
+	/**
17
+	 * @return array
18
+	 */
19
+	public function getArrayCopy()
20
+	{
21
+		$rows = [];
22
+		foreach ($this->data as $row) {
23
+			/** @var XAxis $row */
24
+			$rows[] = $row->getArrayCopy();
25
+		}
26 26
 
27
-        return $rows;
28
-    }
27
+		return $rows;
28
+	}
29 29
 
30
-    /**
31
-     * @return array
32
-     */
33
-    public function jsonSerialize()
34
-    {
35
-        return $this->getArrayCopy();
36
-    }
30
+	/**
31
+	 * @return array
32
+	 */
33
+	public function jsonSerialize()
34
+	{
35
+		return $this->getArrayCopy();
36
+	}
37 37
 }
Please login to merge, or discard this patch.