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.
Completed
Pull Request — master (#61)
by halfpastfour
03:01
created
src/Options/Tooltips/Callbacks.php 1 patch
Indentation   +309 added lines, -309 removed lines patch added patch discarded remove patch
@@ -14,313 +14,313 @@
 block discarded – undo
14 14
  */
15 15
 class Callbacks implements ArraySerializableInterface, JsonSerializable
16 16
 {
17
-    use ArraySerializable;
18
-
19
-    /**
20
-     * @var Expr
21
-     */
22
-    private $beforeTitle;
23
-
24
-    /**
25
-     * @var Expr
26
-     */
27
-    private $title;
28
-
29
-    /**
30
-     * @var Expr
31
-     */
32
-    private $afterTitle;
33
-
34
-    /**
35
-     * @var Expr
36
-     */
37
-    private $beforeLabel;
38
-
39
-    /**
40
-     * @var Expr
41
-     */
42
-    private $label;
43
-
44
-    /**
45
-     * @var Expr
46
-     */
47
-    private $labelColor;
48
-
49
-    /**
50
-     * @var Expr
51
-     */
52
-    private $afterLabel;
53
-
54
-    /**
55
-     * @var Expr
56
-     */
57
-    private $afterBody;
58
-
59
-    /**
60
-     * @var Expr
61
-     */
62
-    private $beforeFooter;
63
-
64
-    /**
65
-     * @var Expr
66
-     */
67
-    private $footer;
68
-
69
-    /**
70
-     * @var Expr
71
-     */
72
-    private $afterFooter;
73
-
74
-    /**
75
-     * @var Expr
76
-     */
77
-    private $dataPoints;
78
-
79
-    /**
80
-     * @return Expr
81
-     */
82
-    public function getBeforeTitle()
83
-    {
84
-        return $this->beforeTitle;
85
-    }
86
-
87
-    /**
88
-     * @param string $beforeTitle
89
-     *
90
-     * @return $this
91
-     */
92
-    public function setBeforeTitle($beforeTitle)
93
-    {
94
-        $this->beforeTitle = new Expr(strval($beforeTitle));
95
-
96
-        return $this;
97
-    }
98
-
99
-    /**
100
-     * @return Expr
101
-     */
102
-    public function getTitle()
103
-    {
104
-        return $this->title;
105
-    }
106
-
107
-    /**
108
-     * @param string $title
109
-     *
110
-     * @return $this
111
-     */
112
-    public function setTitle($title)
113
-    {
114
-        $this->title = new Expr(strval($title));
115
-
116
-        return $this;
117
-    }
118
-
119
-    /**
120
-     * @return Expr
121
-     */
122
-    public function getAfterTitle()
123
-    {
124
-        return $this->afterTitle;
125
-    }
126
-
127
-    /**
128
-     * @param string $afterTitle
129
-     *
130
-     * @return $this
131
-     */
132
-    public function setAfterTitle($afterTitle)
133
-    {
134
-        $this->afterTitle = new Expr(strval($afterTitle));
135
-
136
-        return $this;
137
-    }
138
-
139
-    /**
140
-     * @return Expr
141
-     */
142
-    public function getBeforeLabel()
143
-    {
144
-        return $this->beforeLabel;
145
-    }
146
-
147
-    /**
148
-     * @param string $beforeLabel
149
-     *
150
-     * @return $this
151
-     */
152
-    public function setBeforeLabel($beforeLabel)
153
-    {
154
-        $this->beforeLabel = new Expr(strval($beforeLabel));
155
-
156
-        return $this;
157
-    }
158
-
159
-    /**
160
-     * @return Expr
161
-     */
162
-    public function getLabel()
163
-    {
164
-        return $this->label;
165
-    }
166
-
167
-    /**
168
-     * @param string $label
169
-     *
170
-     * @return $this
171
-     */
172
-    public function setLabel($label)
173
-    {
174
-        $this->label = new Expr(strval($label));
175
-
176
-        return $this;
177
-    }
178
-
179
-    /**
180
-     * @return Expr
181
-     */
182
-    public function getLabelColor()
183
-    {
184
-        return $this->labelColor;
185
-    }
186
-
187
-    /**
188
-     * @param string $labelColor
189
-     *
190
-     * @return $this
191
-     */
192
-    public function setLabelColor($labelColor)
193
-    {
194
-        $this->labelColor = new Expr(strval($labelColor));
195
-
196
-        return $this;
197
-    }
198
-
199
-    /**
200
-     * @return Expr
201
-     */
202
-    public function getAfterLabel()
203
-    {
204
-        return $this->afterLabel;
205
-    }
206
-
207
-    /**
208
-     * @param string $afterLabel
209
-     *
210
-     * @return $this
211
-     */
212
-    public function setAfterLabel($afterLabel)
213
-    {
214
-        $this->afterLabel = new Expr(strval($afterLabel));
215
-
216
-        return $this;
217
-    }
218
-
219
-    /**
220
-     * @return Expr
221
-     */
222
-    public function getAfterBody()
223
-    {
224
-        return $this->afterBody;
225
-    }
226
-
227
-    /**
228
-     * @param string $afterBody
229
-     *
230
-     * @return $this
231
-     */
232
-    public function setAfterBody($afterBody)
233
-    {
234
-        $this->afterBody = new Expr(strval($afterBody));
235
-
236
-        return $this;
237
-    }
238
-
239
-    /**
240
-     * @return Expr
241
-     */
242
-    public function getBeforeFooter()
243
-    {
244
-        return $this->beforeFooter;
245
-    }
246
-
247
-    /**
248
-     * @param string $beforeFooter
249
-     *
250
-     * @return $this
251
-     */
252
-    public function setBeforeFooter($beforeFooter)
253
-    {
254
-        $this->beforeFooter = new Expr(strval($beforeFooter));
255
-
256
-        return $this;
257
-    }
258
-
259
-    /**
260
-     * @return Expr
261
-     */
262
-    public function getFooter()
263
-    {
264
-        return $this->footer;
265
-    }
266
-
267
-    /**
268
-     * @param string $footer
269
-     *
270
-     * @return $this
271
-     */
272
-    public function setFooter($footer)
273
-    {
274
-        $this->footer = new Expr(strval($footer));
275
-
276
-        return $this;
277
-    }
278
-
279
-    /**
280
-     * @return Expr
281
-     */
282
-    public function getAfterFooter()
283
-    {
284
-        return $this->afterFooter;
285
-    }
286
-
287
-    /**
288
-     * @param string $afterFooter
289
-     *
290
-     * @return $this
291
-     */
292
-    public function setAfterFooter($afterFooter)
293
-    {
294
-        $this->afterFooter = new Expr(strval($afterFooter));
295
-
296
-        return $this;
297
-    }
298
-
299
-    /**
300
-     * @return Expr
301
-     */
302
-    public function getDataPoints()
303
-    {
304
-        return $this->dataPoints;
305
-    }
306
-
307
-    /**
308
-     * @param string $dataPoints
309
-     *
310
-     * @return $this
311
-     */
312
-    public function setDataPoints($dataPoints)
313
-    {
314
-        $this->dataPoints = new Expr(strval($dataPoints));
315
-
316
-        return $this;
317
-    }
318
-
319
-    /**
320
-     * @return array
321
-     */
322
-    public function jsonSerialize()
323
-    {
324
-        return $this->getArrayCopy();
325
-    }
17
+	use ArraySerializable;
18
+
19
+	/**
20
+	 * @var Expr
21
+	 */
22
+	private $beforeTitle;
23
+
24
+	/**
25
+	 * @var Expr
26
+	 */
27
+	private $title;
28
+
29
+	/**
30
+	 * @var Expr
31
+	 */
32
+	private $afterTitle;
33
+
34
+	/**
35
+	 * @var Expr
36
+	 */
37
+	private $beforeLabel;
38
+
39
+	/**
40
+	 * @var Expr
41
+	 */
42
+	private $label;
43
+
44
+	/**
45
+	 * @var Expr
46
+	 */
47
+	private $labelColor;
48
+
49
+	/**
50
+	 * @var Expr
51
+	 */
52
+	private $afterLabel;
53
+
54
+	/**
55
+	 * @var Expr
56
+	 */
57
+	private $afterBody;
58
+
59
+	/**
60
+	 * @var Expr
61
+	 */
62
+	private $beforeFooter;
63
+
64
+	/**
65
+	 * @var Expr
66
+	 */
67
+	private $footer;
68
+
69
+	/**
70
+	 * @var Expr
71
+	 */
72
+	private $afterFooter;
73
+
74
+	/**
75
+	 * @var Expr
76
+	 */
77
+	private $dataPoints;
78
+
79
+	/**
80
+	 * @return Expr
81
+	 */
82
+	public function getBeforeTitle()
83
+	{
84
+		return $this->beforeTitle;
85
+	}
86
+
87
+	/**
88
+	 * @param string $beforeTitle
89
+	 *
90
+	 * @return $this
91
+	 */
92
+	public function setBeforeTitle($beforeTitle)
93
+	{
94
+		$this->beforeTitle = new Expr(strval($beforeTitle));
95
+
96
+		return $this;
97
+	}
98
+
99
+	/**
100
+	 * @return Expr
101
+	 */
102
+	public function getTitle()
103
+	{
104
+		return $this->title;
105
+	}
106
+
107
+	/**
108
+	 * @param string $title
109
+	 *
110
+	 * @return $this
111
+	 */
112
+	public function setTitle($title)
113
+	{
114
+		$this->title = new Expr(strval($title));
115
+
116
+		return $this;
117
+	}
118
+
119
+	/**
120
+	 * @return Expr
121
+	 */
122
+	public function getAfterTitle()
123
+	{
124
+		return $this->afterTitle;
125
+	}
126
+
127
+	/**
128
+	 * @param string $afterTitle
129
+	 *
130
+	 * @return $this
131
+	 */
132
+	public function setAfterTitle($afterTitle)
133
+	{
134
+		$this->afterTitle = new Expr(strval($afterTitle));
135
+
136
+		return $this;
137
+	}
138
+
139
+	/**
140
+	 * @return Expr
141
+	 */
142
+	public function getBeforeLabel()
143
+	{
144
+		return $this->beforeLabel;
145
+	}
146
+
147
+	/**
148
+	 * @param string $beforeLabel
149
+	 *
150
+	 * @return $this
151
+	 */
152
+	public function setBeforeLabel($beforeLabel)
153
+	{
154
+		$this->beforeLabel = new Expr(strval($beforeLabel));
155
+
156
+		return $this;
157
+	}
158
+
159
+	/**
160
+	 * @return Expr
161
+	 */
162
+	public function getLabel()
163
+	{
164
+		return $this->label;
165
+	}
166
+
167
+	/**
168
+	 * @param string $label
169
+	 *
170
+	 * @return $this
171
+	 */
172
+	public function setLabel($label)
173
+	{
174
+		$this->label = new Expr(strval($label));
175
+
176
+		return $this;
177
+	}
178
+
179
+	/**
180
+	 * @return Expr
181
+	 */
182
+	public function getLabelColor()
183
+	{
184
+		return $this->labelColor;
185
+	}
186
+
187
+	/**
188
+	 * @param string $labelColor
189
+	 *
190
+	 * @return $this
191
+	 */
192
+	public function setLabelColor($labelColor)
193
+	{
194
+		$this->labelColor = new Expr(strval($labelColor));
195
+
196
+		return $this;
197
+	}
198
+
199
+	/**
200
+	 * @return Expr
201
+	 */
202
+	public function getAfterLabel()
203
+	{
204
+		return $this->afterLabel;
205
+	}
206
+
207
+	/**
208
+	 * @param string $afterLabel
209
+	 *
210
+	 * @return $this
211
+	 */
212
+	public function setAfterLabel($afterLabel)
213
+	{
214
+		$this->afterLabel = new Expr(strval($afterLabel));
215
+
216
+		return $this;
217
+	}
218
+
219
+	/**
220
+	 * @return Expr
221
+	 */
222
+	public function getAfterBody()
223
+	{
224
+		return $this->afterBody;
225
+	}
226
+
227
+	/**
228
+	 * @param string $afterBody
229
+	 *
230
+	 * @return $this
231
+	 */
232
+	public function setAfterBody($afterBody)
233
+	{
234
+		$this->afterBody = new Expr(strval($afterBody));
235
+
236
+		return $this;
237
+	}
238
+
239
+	/**
240
+	 * @return Expr
241
+	 */
242
+	public function getBeforeFooter()
243
+	{
244
+		return $this->beforeFooter;
245
+	}
246
+
247
+	/**
248
+	 * @param string $beforeFooter
249
+	 *
250
+	 * @return $this
251
+	 */
252
+	public function setBeforeFooter($beforeFooter)
253
+	{
254
+		$this->beforeFooter = new Expr(strval($beforeFooter));
255
+
256
+		return $this;
257
+	}
258
+
259
+	/**
260
+	 * @return Expr
261
+	 */
262
+	public function getFooter()
263
+	{
264
+		return $this->footer;
265
+	}
266
+
267
+	/**
268
+	 * @param string $footer
269
+	 *
270
+	 * @return $this
271
+	 */
272
+	public function setFooter($footer)
273
+	{
274
+		$this->footer = new Expr(strval($footer));
275
+
276
+		return $this;
277
+	}
278
+
279
+	/**
280
+	 * @return Expr
281
+	 */
282
+	public function getAfterFooter()
283
+	{
284
+		return $this->afterFooter;
285
+	}
286
+
287
+	/**
288
+	 * @param string $afterFooter
289
+	 *
290
+	 * @return $this
291
+	 */
292
+	public function setAfterFooter($afterFooter)
293
+	{
294
+		$this->afterFooter = new Expr(strval($afterFooter));
295
+
296
+		return $this;
297
+	}
298
+
299
+	/**
300
+	 * @return Expr
301
+	 */
302
+	public function getDataPoints()
303
+	{
304
+		return $this->dataPoints;
305
+	}
306
+
307
+	/**
308
+	 * @param string $dataPoints
309
+	 *
310
+	 * @return $this
311
+	 */
312
+	public function setDataPoints($dataPoints)
313
+	{
314
+		$this->dataPoints = new Expr(strval($dataPoints));
315
+
316
+		return $this;
317
+	}
318
+
319
+	/**
320
+	 * @return array
321
+	 */
322
+	public function jsonSerialize()
323
+	{
324
+		return $this->getArrayCopy();
325
+	}
326 326
 }
Please login to merge, or discard this patch.
src/Options/Layout.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -14,46 +14,46 @@
 block discarded – undo
14 14
  */
15 15
 class Layout implements ArraySerializableInterface, JsonSerializable
16 16
 {
17
-    use ArraySerializable;
18
-
19
-    /**
20
-     * @var int|Padding
21
-     */
22
-    private $padding;
23
-
24
-    /**
25
-     * @param int $padding
26
-     */
27
-    public function setPadding($padding)
28
-    {
29
-        $this->padding = intval($padding);
30
-    }
31
-
32
-    /**
33
-     * @return int|Padding
34
-     */
35
-    public function getPadding()
36
-    {
37
-        return $this->padding;
38
-    }
39
-
40
-    /**
41
-     * @return Padding
42
-     */
43
-    public function padding()
44
-    {
45
-        if (is_null($this->padding)) {
46
-            $this->padding = new Padding();
47
-        }
48
-
49
-        return $this->padding;
50
-    }
51
-
52
-    /**
53
-     * @return array
54
-     */
55
-    public function jsonSerialize()
56
-    {
57
-        return $this->getArrayCopy();
58
-    }
17
+	use ArraySerializable;
18
+
19
+	/**
20
+	 * @var int|Padding
21
+	 */
22
+	private $padding;
23
+
24
+	/**
25
+	 * @param int $padding
26
+	 */
27
+	public function setPadding($padding)
28
+	{
29
+		$this->padding = intval($padding);
30
+	}
31
+
32
+	/**
33
+	 * @return int|Padding
34
+	 */
35
+	public function getPadding()
36
+	{
37
+		return $this->padding;
38
+	}
39
+
40
+	/**
41
+	 * @return Padding
42
+	 */
43
+	public function padding()
44
+	{
45
+		if (is_null($this->padding)) {
46
+			$this->padding = new Padding();
47
+		}
48
+
49
+		return $this->padding;
50
+	}
51
+
52
+	/**
53
+	 * @return array
54
+	 */
55
+	public function jsonSerialize()
56
+	{
57
+		return $this->getArrayCopy();
58
+	}
59 59
 }
Please login to merge, or discard this patch.
src/Options/Scales.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -16,63 +16,63 @@
 block discarded – undo
16 16
  */
17 17
 class Scales implements ArraySerializableInterface, JsonSerializable
18 18
 {
19
-    use ArraySerializable;
19
+	use ArraySerializable;
20 20
 
21
-    /**
22
-     * @var XAxisCollection
23
-     */
24
-    private $xAxes;
21
+	/**
22
+	 * @var XAxisCollection
23
+	 */
24
+	private $xAxes;
25 25
 
26
-    /**
27
-     * @var YAxisCollection
28
-     */
29
-    private $yAxes;
26
+	/**
27
+	 * @var YAxisCollection
28
+	 */
29
+	private $yAxes;
30 30
 
31
-    /**
32
-     * @return XAxis
33
-     */
34
-    public function createXAxis()
35
-    {
36
-        return new XAxis();
37
-    }
31
+	/**
32
+	 * @return XAxis
33
+	 */
34
+	public function createXAxis()
35
+	{
36
+		return new XAxis();
37
+	}
38 38
 
39
-    /**
40
-     * @return YAxis
41
-     */
42
-    public function createYAxis()
43
-    {
44
-        return new YAxis();
45
-    }
39
+	/**
40
+	 * @return YAxis
41
+	 */
42
+	public function createYAxis()
43
+	{
44
+		return new YAxis();
45
+	}
46 46
 
47
-    /**
48
-     * @return XAxisCollection
49
-     */
50
-    public function getXAxes()
51
-    {
52
-        if (is_null($this->xAxes)) {
53
-            $this->xAxes = new XAxisCollection();
54
-        }
47
+	/**
48
+	 * @return XAxisCollection
49
+	 */
50
+	public function getXAxes()
51
+	{
52
+		if (is_null($this->xAxes)) {
53
+			$this->xAxes = new XAxisCollection();
54
+		}
55 55
 
56
-        return $this->xAxes;
57
-    }
56
+		return $this->xAxes;
57
+	}
58 58
 
59
-    /**
60
-     * @return YAxisCollection
61
-     */
62
-    public function getYAxes()
63
-    {
64
-        if (is_null($this->yAxes)) {
65
-            $this->yAxes = new YAxisCollection();
66
-        }
59
+	/**
60
+	 * @return YAxisCollection
61
+	 */
62
+	public function getYAxes()
63
+	{
64
+		if (is_null($this->yAxes)) {
65
+			$this->yAxes = new YAxisCollection();
66
+		}
67 67
 
68
-        return $this->yAxes;
69
-    }
68
+		return $this->yAxes;
69
+	}
70 70
 
71
-    /**
72
-     * @return array
73
-     */
74
-    public function jsonSerialize()
75
-    {
76
-        return $this->getArrayCopy();
77
-    }
71
+	/**
72
+	 * @return array
73
+	 */
74
+	public function jsonSerialize()
75
+	{
76
+		return $this->getArrayCopy();
77
+	}
78 78
 }
Please login to merge, or discard this patch.
src/Options/Animation.php 1 patch
Indentation   +109 added lines, -109 removed lines patch added patch discarded remove patch
@@ -14,113 +14,113 @@
 block discarded – undo
14 14
  */
15 15
 class Animation implements ArraySerializableInterface, JsonSerializable
16 16
 {
17
-    use ArraySerializable;
18
-
19
-    /**
20
-     * @var int
21
-     */
22
-    private $duration;
23
-
24
-    /**
25
-     * @var string
26
-     */
27
-    private $easing;
28
-
29
-    /**
30
-     * @var Expr
31
-     */
32
-    private $onProgress;
33
-
34
-    /**
35
-     * @var Expr
36
-     */
37
-    private $onComplete;
38
-
39
-    /**
40
-     * @return int
41
-     */
42
-    public function getDuration()
43
-    {
44
-        return $this->duration;
45
-    }
46
-
47
-    /**
48
-     * @param int $duration
49
-     *
50
-     * @return $this
51
-     */
52
-    public function setDuration($duration)
53
-    {
54
-        $this->duration = $duration;
55
-
56
-        return $this;
57
-    }
58
-
59
-    /**
60
-     * @return string
61
-     */
62
-    public function getEasing()
63
-    {
64
-        return $this->easing;
65
-    }
66
-
67
-    /**
68
-     * @param string $easing
69
-     *
70
-     * @return $this
71
-     */
72
-    public function setEasing($easing)
73
-    {
74
-        $this->easing = $easing;
75
-
76
-        return $this;
77
-    }
78
-
79
-    /**
80
-     * @return Expr
81
-     */
82
-    public function getOnProgress()
83
-    {
84
-        return $this->onProgress;
85
-    }
86
-
87
-    /**
88
-     * @param string $onProgress
89
-     *
90
-     * @return $this
91
-     */
92
-    public function setOnProgress($onProgress)
93
-    {
94
-        $this->onProgress = new Expr(strval($onProgress));
95
-
96
-        return $this;
97
-    }
98
-
99
-    /**
100
-     * @return Expr
101
-     */
102
-    public function getOnComplete()
103
-    {
104
-        return $this->onComplete;
105
-    }
106
-
107
-    /**
108
-     * @param string $onComplete
109
-     *
110
-     * @return $this
111
-     */
112
-    public function setOnComplete($onComplete)
113
-    {
114
-        $this->onComplete = new Expr(strval($onComplete));
115
-
116
-        return $this;
117
-    }
118
-
119
-    /**
120
-     * @return array
121
-     */
122
-    public function jsonSerialize()
123
-    {
124
-        return $this->getArrayCopy();
125
-    }
17
+	use ArraySerializable;
18
+
19
+	/**
20
+	 * @var int
21
+	 */
22
+	private $duration;
23
+
24
+	/**
25
+	 * @var string
26
+	 */
27
+	private $easing;
28
+
29
+	/**
30
+	 * @var Expr
31
+	 */
32
+	private $onProgress;
33
+
34
+	/**
35
+	 * @var Expr
36
+	 */
37
+	private $onComplete;
38
+
39
+	/**
40
+	 * @return int
41
+	 */
42
+	public function getDuration()
43
+	{
44
+		return $this->duration;
45
+	}
46
+
47
+	/**
48
+	 * @param int $duration
49
+	 *
50
+	 * @return $this
51
+	 */
52
+	public function setDuration($duration)
53
+	{
54
+		$this->duration = $duration;
55
+
56
+		return $this;
57
+	}
58
+
59
+	/**
60
+	 * @return string
61
+	 */
62
+	public function getEasing()
63
+	{
64
+		return $this->easing;
65
+	}
66
+
67
+	/**
68
+	 * @param string $easing
69
+	 *
70
+	 * @return $this
71
+	 */
72
+	public function setEasing($easing)
73
+	{
74
+		$this->easing = $easing;
75
+
76
+		return $this;
77
+	}
78
+
79
+	/**
80
+	 * @return Expr
81
+	 */
82
+	public function getOnProgress()
83
+	{
84
+		return $this->onProgress;
85
+	}
86
+
87
+	/**
88
+	 * @param string $onProgress
89
+	 *
90
+	 * @return $this
91
+	 */
92
+	public function setOnProgress($onProgress)
93
+	{
94
+		$this->onProgress = new Expr(strval($onProgress));
95
+
96
+		return $this;
97
+	}
98
+
99
+	/**
100
+	 * @return Expr
101
+	 */
102
+	public function getOnComplete()
103
+	{
104
+		return $this->onComplete;
105
+	}
106
+
107
+	/**
108
+	 * @param string $onComplete
109
+	 *
110
+	 * @return $this
111
+	 */
112
+	public function setOnComplete($onComplete)
113
+	{
114
+		$this->onComplete = new Expr(strval($onComplete));
115
+
116
+		return $this;
117
+	}
118
+
119
+	/**
120
+	 * @return array
121
+	 */
122
+	public function jsonSerialize()
123
+	{
124
+		return $this->getArrayCopy();
125
+	}
126 126
 }
Please login to merge, or discard this patch.
src/Renderer/Html.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -11,39 +11,39 @@
 block discarded – undo
11 11
  */
12 12
 class Html extends Renderer
13 13
 {
14
-    /**
15
-     * Renders the necessary HTML for the chart to function in the frontend.
16
-     *
17
-     * @param int|null $flags
18
-     *
19
-     * @return string
20
-     */
21
-    public function render($flags = null)
22
-    {
23
-        $dom = new DOMDocument();
24
-
25
-        // Render canvas HTML element
26
-        $canvas = $dom->createElement('canvas');
27
-        $canvas->setAttribute('id', $this->chart->getId());
28
-
29
-        // Add title, height and width if applicable
30
-        if ($this->chart->getTitle()) {
31
-            $canvas->setAttribute('title', $this->chart->getTitle());
32
-        }
33
-        if ($this->chart->getHeight()) {
34
-            $canvas->setAttribute('height', $this->chart->getHeight());
35
-        }
36
-        if ($this->chart->getWidth()) {
37
-            $canvas->setAttribute('width', $this->chart->getWidth());
38
-        }
39
-
40
-        $dom->appendChild($canvas);
41
-
42
-        // Render JavaScript
43
-        $scriptRenderer = new JavaScript($this->chart);
44
-        $script         = $dom->createElement('script', $scriptRenderer->render($flags));
45
-        $dom->appendChild($script);
46
-
47
-        return $dom->saveHTML();
48
-    }
14
+	/**
15
+	 * Renders the necessary HTML for the chart to function in the frontend.
16
+	 *
17
+	 * @param int|null $flags
18
+	 *
19
+	 * @return string
20
+	 */
21
+	public function render($flags = null)
22
+	{
23
+		$dom = new DOMDocument();
24
+
25
+		// Render canvas HTML element
26
+		$canvas = $dom->createElement('canvas');
27
+		$canvas->setAttribute('id', $this->chart->getId());
28
+
29
+		// Add title, height and width if applicable
30
+		if ($this->chart->getTitle()) {
31
+			$canvas->setAttribute('title', $this->chart->getTitle());
32
+		}
33
+		if ($this->chart->getHeight()) {
34
+			$canvas->setAttribute('height', $this->chart->getHeight());
35
+		}
36
+		if ($this->chart->getWidth()) {
37
+			$canvas->setAttribute('width', $this->chart->getWidth());
38
+		}
39
+
40
+		$dom->appendChild($canvas);
41
+
42
+		// Render JavaScript
43
+		$scriptRenderer = new JavaScript($this->chart);
44
+		$script         = $dom->createElement('script', $scriptRenderer->render($flags));
45
+		$dom->appendChild($script);
46
+
47
+		return $dom->saveHTML();
48
+	}
49 49
 }
Please login to merge, or discard this patch.
src/Delegate/NumberUtils.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -10,31 +10,31 @@
 block discarded – undo
10 10
 trait NumberUtils
11 11
 {
12 12
 
13
-    /**
14
-     * @param array $input
15
-     *
16
-     * @return array
17
-     */
18
-    public function recursiveToFloat(array $input)
19
-    {
20
-        array_walk_recursive($input, function (&$value) {
21
-            $value = floatval($value);
22
-        });
13
+	/**
14
+	 * @param array $input
15
+	 *
16
+	 * @return array
17
+	 */
18
+	public function recursiveToFloat(array $input)
19
+	{
20
+		array_walk_recursive($input, function (&$value) {
21
+			$value = floatval($value);
22
+		});
23 23
 
24
-        return $input;
25
-    }
24
+		return $input;
25
+	}
26 26
 
27
-    /**
28
-     * @param array $input
29
-     *
30
-     * @return array
31
-     */
32
-    public function recursiveToInt(array $input)
33
-    {
34
-        array_walk_recursive($input, function (&$value) {
35
-            $value = intval($value);
36
-        });
27
+	/**
28
+	 * @param array $input
29
+	 *
30
+	 * @return array
31
+	 */
32
+	public function recursiveToInt(array $input)
33
+	{
34
+		array_walk_recursive($input, function (&$value) {
35
+			$value = intval($value);
36
+		});
37 37
 
38
-        return $input;
39
-    }
38
+		return $input;
39
+	}
40 40
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function recursiveToFloat(array $input)
19 19
     {
20
-        array_walk_recursive($input, function (&$value) {
20
+        array_walk_recursive($input, function(&$value) {
21 21
             $value = floatval($value);
22 22
         });
23 23
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function recursiveToInt(array $input)
33 33
     {
34
-        array_walk_recursive($input, function (&$value) {
34
+        array_walk_recursive($input, function(&$value) {
35 35
             $value = intval($value);
36 36
         });
37 37
 
Please login to merge, or discard this patch.
src/Delegate/StringUtils.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
  */
10 10
 trait StringUtils
11 11
 {
12
-    /**
13
-     * @param array $input
14
-     *
15
-     * @return array
16
-     */
17
-    public function recursiveToString(array $input)
18
-    {
19
-        array_walk_recursive($input, function (&$value) {
20
-            $value = strval($value);
21
-        });
12
+	/**
13
+	 * @param array $input
14
+	 *
15
+	 * @return array
16
+	 */
17
+	public function recursiveToString(array $input)
18
+	{
19
+		array_walk_recursive($input, function (&$value) {
20
+			$value = strval($value);
21
+		});
22 22
 
23
-        return $input;
24
-    }
23
+		return $input;
24
+	}
25 25
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function recursiveToString(array $input)
18 18
     {
19
-        array_walk_recursive($input, function (&$value) {
19
+        array_walk_recursive($input, function(&$value) {
20 20
             $value = strval($value);
21 21
         });
22 22
 
Please login to merge, or discard this patch.
src/Chart.php 2 patches
Indentation   +234 added lines, -234 removed lines patch added patch discarded remove patch
@@ -11,238 +11,238 @@
 block discarded – undo
11 11
  */
12 12
 abstract class Chart implements ChartInterface
13 13
 {
14
-    /**
15
-     * The internal type of chart.
16
-     */
17
-    const TYPE = null;
18
-
19
-    /**
20
-     * The list of models that should be used for this chart type.
21
-     */
22
-    const MODEL = [
23
-        'dataset' => DataSet::class,
24
-        'options' => Options::class,
25
-    ];
26
-
27
-    /**
28
-     * @var string
29
-     */
30
-    protected $id;
31
-
32
-    /**
33
-     * @var int
34
-     */
35
-    protected $height;
36
-
37
-    /**
38
-     * @var int
39
-     */
40
-    protected $width;
41
-
42
-    /**
43
-     * @var string
44
-     */
45
-    protected $title;
46
-
47
-    /**
48
-     * @var LabelsCollection
49
-     */
50
-    protected $labels;
51
-
52
-    /**
53
-     * @var Options
54
-     */
55
-    protected $options;
56
-
57
-    /**
58
-     * @var DataSetCollection
59
-     */
60
-    protected $dataSets;
61
-
62
-    /**
63
-     * @return string
64
-     */
65
-    public function getId()
66
-    {
67
-        if (is_null($this->id)) {
68
-            $this->id = uniqid('chart');
69
-        }
70
-
71
-        return $this->id;
72
-    }
73
-
74
-    /**
75
-     * @param string $id
76
-     *
77
-     * @return Chart
78
-     */
79
-    public function setId($id)
80
-    {
81
-        $this->id = strval($id);
82
-
83
-        return $this;
84
-    }
85
-
86
-    /**
87
-     * @return int
88
-     */
89
-    public function getHeight()
90
-    {
91
-        return $this->height;
92
-    }
93
-
94
-    /**
95
-     * @param int $height
96
-     *
97
-     * @return Chart
98
-     */
99
-    public function setHeight($height)
100
-    {
101
-        $this->height = intval($height);
102
-
103
-        return $this;
104
-    }
105
-
106
-    /**
107
-     * @return int
108
-     */
109
-    public function getWidth()
110
-    {
111
-        return $this->width;
112
-    }
113
-
114
-    /**
115
-     * @param int $width
116
-     *
117
-     * @return Chart
118
-     */
119
-    public function setWidth($width)
120
-    {
121
-        $this->width = intval($width);
122
-
123
-        return $this;
124
-    }
125
-
126
-    /**
127
-     * @return string
128
-     */
129
-    public function getTitle()
130
-    {
131
-        return $this->title;
132
-    }
133
-
134
-    /**
135
-     * @param string $title
136
-     *
137
-     * @return Chart
138
-     */
139
-    public function setTitle($title)
140
-    {
141
-        $this->title = strval($title);
142
-
143
-        return $this;
144
-    }
145
-
146
-    /**
147
-     * @return LabelsCollection
148
-     */
149
-    public function labels()
150
-    {
151
-        if (is_null($this->labels)) {
152
-            $this->labels = new LabelsCollection();
153
-        }
154
-
155
-        return $this->labels;
156
-    }
157
-
158
-    /**
159
-     * @param string $label
160
-     *
161
-     * @return $this
162
-     */
163
-    public function addLabel($label)
164
-    {
165
-        $this->labels()->append($label);
166
-
167
-        return $this;
168
-    }
169
-
170
-    /**
171
-     * @param $offset
172
-     *
173
-     * @return string|bool
174
-     */
175
-    public function getLabel($offset)
176
-    {
177
-        return $this->labels()->offsetGet($offset);
178
-    }
179
-
180
-    /**
181
-     * @return DataSetCollection
182
-     */
183
-    public function dataSets()
184
-    {
185
-        if (is_null($this->dataSets)) {
186
-            $this->dataSets = new DataSetCollection();
187
-        }
188
-
189
-        return $this->dataSets;
190
-    }
191
-
192
-    /**
193
-     * @param DataSet $dataSet
194
-     *
195
-     * @return $this
196
-     */
197
-    public function addDataSet(DataSet $dataSet)
198
-    {
199
-        $this->dataSets()->append($dataSet->setOwner($this));
200
-
201
-        return $this;
202
-    }
203
-
204
-    /**
205
-     * @param $offset
206
-     *
207
-     * @return DataSet|bool
208
-     */
209
-    public function getDataSet($offset)
210
-    {
211
-        return $this->dataSets()->offsetGet($offset);
212
-    }
213
-
214
-    /**
215
-     * @param bool $pretty
216
-     *
217
-     * @return string
218
-     */
219
-    public function render($pretty = false)
220
-    {
221
-        $renderer = new Html($this);
222
-
223
-        return $renderer->render($pretty ? $renderer::RENDER_PRETTY : null);
224
-    }
225
-
226
-    /**
227
-     * @return DataSet
228
-     */
229
-    public function createDataSet()
230
-    {
231
-        $datasetClass = static::MODEL['dataset'];
232
-
233
-        return new $datasetClass();
234
-    }
235
-
236
-    /**
237
-     * @return Options
238
-     */
239
-    public function options()
240
-    {
241
-        if (is_null($this->options)) {
242
-            $optionsClass  = static::MODEL['options'];
243
-            $this->options = new $optionsClass($this);
244
-        }
245
-
246
-        return $this->options;
247
-    }
14
+	/**
15
+	 * The internal type of chart.
16
+	 */
17
+	const TYPE = null;
18
+
19
+	/**
20
+	 * The list of models that should be used for this chart type.
21
+	 */
22
+	const MODEL = [
23
+		'dataset' => DataSet::class,
24
+		'options' => Options::class,
25
+	];
26
+
27
+	/**
28
+	 * @var string
29
+	 */
30
+	protected $id;
31
+
32
+	/**
33
+	 * @var int
34
+	 */
35
+	protected $height;
36
+
37
+	/**
38
+	 * @var int
39
+	 */
40
+	protected $width;
41
+
42
+	/**
43
+	 * @var string
44
+	 */
45
+	protected $title;
46
+
47
+	/**
48
+	 * @var LabelsCollection
49
+	 */
50
+	protected $labels;
51
+
52
+	/**
53
+	 * @var Options
54
+	 */
55
+	protected $options;
56
+
57
+	/**
58
+	 * @var DataSetCollection
59
+	 */
60
+	protected $dataSets;
61
+
62
+	/**
63
+	 * @return string
64
+	 */
65
+	public function getId()
66
+	{
67
+		if (is_null($this->id)) {
68
+			$this->id = uniqid('chart');
69
+		}
70
+
71
+		return $this->id;
72
+	}
73
+
74
+	/**
75
+	 * @param string $id
76
+	 *
77
+	 * @return Chart
78
+	 */
79
+	public function setId($id)
80
+	{
81
+		$this->id = strval($id);
82
+
83
+		return $this;
84
+	}
85
+
86
+	/**
87
+	 * @return int
88
+	 */
89
+	public function getHeight()
90
+	{
91
+		return $this->height;
92
+	}
93
+
94
+	/**
95
+	 * @param int $height
96
+	 *
97
+	 * @return Chart
98
+	 */
99
+	public function setHeight($height)
100
+	{
101
+		$this->height = intval($height);
102
+
103
+		return $this;
104
+	}
105
+
106
+	/**
107
+	 * @return int
108
+	 */
109
+	public function getWidth()
110
+	{
111
+		return $this->width;
112
+	}
113
+
114
+	/**
115
+	 * @param int $width
116
+	 *
117
+	 * @return Chart
118
+	 */
119
+	public function setWidth($width)
120
+	{
121
+		$this->width = intval($width);
122
+
123
+		return $this;
124
+	}
125
+
126
+	/**
127
+	 * @return string
128
+	 */
129
+	public function getTitle()
130
+	{
131
+		return $this->title;
132
+	}
133
+
134
+	/**
135
+	 * @param string $title
136
+	 *
137
+	 * @return Chart
138
+	 */
139
+	public function setTitle($title)
140
+	{
141
+		$this->title = strval($title);
142
+
143
+		return $this;
144
+	}
145
+
146
+	/**
147
+	 * @return LabelsCollection
148
+	 */
149
+	public function labels()
150
+	{
151
+		if (is_null($this->labels)) {
152
+			$this->labels = new LabelsCollection();
153
+		}
154
+
155
+		return $this->labels;
156
+	}
157
+
158
+	/**
159
+	 * @param string $label
160
+	 *
161
+	 * @return $this
162
+	 */
163
+	public function addLabel($label)
164
+	{
165
+		$this->labels()->append($label);
166
+
167
+		return $this;
168
+	}
169
+
170
+	/**
171
+	 * @param $offset
172
+	 *
173
+	 * @return string|bool
174
+	 */
175
+	public function getLabel($offset)
176
+	{
177
+		return $this->labels()->offsetGet($offset);
178
+	}
179
+
180
+	/**
181
+	 * @return DataSetCollection
182
+	 */
183
+	public function dataSets()
184
+	{
185
+		if (is_null($this->dataSets)) {
186
+			$this->dataSets = new DataSetCollection();
187
+		}
188
+
189
+		return $this->dataSets;
190
+	}
191
+
192
+	/**
193
+	 * @param DataSet $dataSet
194
+	 *
195
+	 * @return $this
196
+	 */
197
+	public function addDataSet(DataSet $dataSet)
198
+	{
199
+		$this->dataSets()->append($dataSet->setOwner($this));
200
+
201
+		return $this;
202
+	}
203
+
204
+	/**
205
+	 * @param $offset
206
+	 *
207
+	 * @return DataSet|bool
208
+	 */
209
+	public function getDataSet($offset)
210
+	{
211
+		return $this->dataSets()->offsetGet($offset);
212
+	}
213
+
214
+	/**
215
+	 * @param bool $pretty
216
+	 *
217
+	 * @return string
218
+	 */
219
+	public function render($pretty = false)
220
+	{
221
+		$renderer = new Html($this);
222
+
223
+		return $renderer->render($pretty ? $renderer::RENDER_PRETTY : null);
224
+	}
225
+
226
+	/**
227
+	 * @return DataSet
228
+	 */
229
+	public function createDataSet()
230
+	{
231
+		$datasetClass = static::MODEL['dataset'];
232
+
233
+		return new $datasetClass();
234
+	}
235
+
236
+	/**
237
+	 * @return Options
238
+	 */
239
+	public function options()
240
+	{
241
+		if (is_null($this->options)) {
242
+			$optionsClass  = static::MODEL['options'];
243
+			$this->options = new $optionsClass($this);
244
+		}
245
+
246
+		return $this->options;
247
+	}
248 248
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     public function createDataSet()
230 230
     {
231
-        $datasetClass = static::MODEL['dataset'];
231
+        $datasetClass = static::MODEL[ 'dataset' ];
232 232
 
233 233
         return new $datasetClass();
234 234
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     public function options()
240 240
     {
241 241
         if (is_null($this->options)) {
242
-            $optionsClass  = static::MODEL['options'];
242
+            $optionsClass  = static::MODEL[ 'options' ];
243 243
             $this->options = new $optionsClass($this);
244 244
         }
245 245
 
Please login to merge, or discard this patch.
src/Options/Scales/GridLines.php 1 patch
Indentation   +321 added lines, -321 removed lines patch added patch discarded remove patch
@@ -15,325 +15,325 @@
 block discarded – undo
15 15
  */
16 16
 class GridLines implements ArraySerializableInterface, JsonSerializable
17 17
 {
18
-    use ArraySerializable;
19
-    use StringUtils;
20
-    use NumberUtils;
21
-
22
-    /**
23
-     * @var bool
24
-     */
25
-    private $display;
26
-
27
-    /**
28
-     * @var string|string[]
29
-     */
30
-    private $color;
31
-
32
-    /**
33
-     * @var float[]|null
34
-     */
35
-    private $borderDash;
36
-
37
-    /**
38
-     * @var float
39
-     */
40
-    private $borderDashOffset;
41
-
42
-    /**
43
-     * @var int|int[]
44
-     */
45
-    private $lineWidth;
46
-
47
-    /**
48
-     * @var bool
49
-     */
50
-    private $drawBorder;
51
-
52
-    /**
53
-     * @var bool
54
-     */
55
-    private $drawOnChartArea;
56
-
57
-    /**
58
-     * @var bool
59
-     */
60
-    private $drawTicks;
61
-
62
-    /**
63
-     * @var int
64
-     */
65
-    private $tickMarkLength;
66
-
67
-    /**
68
-     * @var int
69
-     */
70
-    private $zeroLineWidth;
71
-
72
-    /**
73
-     * @var string
74
-     */
75
-    private $zeroLineColor;
76
-
77
-    /**
78
-     * @var bool
79
-     */
80
-    private $offsetGridLines;
81
-
82
-    /**
83
-     * @return bool
84
-     */
85
-    public function isDisplay()
86
-    {
87
-        return $this->display;
88
-    }
89
-
90
-    /**
91
-     * @param bool $display
92
-     *
93
-     * @return $this
94
-     */
95
-    public function setDisplay($display)
96
-    {
97
-        $this->display = $display;
98
-
99
-        return $this;
100
-    }
101
-
102
-    /**
103
-     * @return string|string[]
104
-     */
105
-    public function getColor()
106
-    {
107
-        return $this->color;
108
-    }
109
-
110
-    /**
111
-     * @param string|string[] $color
112
-     *
113
-     * @return $this
114
-     */
115
-    public function setColor($color)
116
-    {
117
-        if (is_array($color)) {
118
-            $this->color = $this->recursiveToString($color);
119
-        } else {
120
-            $this->color = is_null($color) ? null : strval($color);
121
-        }
122
-
123
-        return $this;
124
-    }
125
-
126
-    /**
127
-     * @return float[]|null
128
-     */
129
-    public function getBorderDash()
130
-    {
131
-        return $this->borderDash;
132
-    }
133
-
134
-    /**
135
-     * @param float[] $borderDash
136
-     *
137
-     * @return $this
138
-     */
139
-    public function setBorderDash($borderDash)
140
-    {
141
-        if (is_array($borderDash)) {
142
-            $this->borderDash = $this->recursiveToFloat($borderDash);
143
-        }
144
-
145
-        return $this;
146
-    }
147
-
148
-    /**
149
-     * @return float
150
-     */
151
-    public function getBorderDashOffset()
152
-    {
153
-        return $this->borderDashOffset;
154
-    }
155
-
156
-    /**
157
-     * @param float $borderDashOffset
158
-     *
159
-     * @return $this
160
-     */
161
-    public function setBorderDashOffset($borderDashOffset)
162
-    {
163
-        $this->borderDashOffset = floatval($borderDashOffset);
164
-
165
-        return $this;
166
-    }
167
-
168
-    /**
169
-     * @return int|int[]
170
-     */
171
-    public function getLineWidth()
172
-    {
173
-        return $this->lineWidth;
174
-    }
175
-
176
-    /**
177
-     * @param int|int[] $lineWidth
178
-     *
179
-     * @return $this
180
-     */
181
-    public function setLineWidth($lineWidth)
182
-    {
183
-        if (is_array($lineWidth)) {
184
-            $this->lineWidth = $this->recursiveToInt($lineWidth);
185
-        } else {
186
-            $this->lineWidth = is_null($lineWidth) ? null : intval($lineWidth);
187
-        }
188
-
189
-        return $this;
190
-    }
191
-
192
-    /**
193
-     * @return bool
194
-     */
195
-    public function isDrawBorder()
196
-    {
197
-        return $this->drawBorder;
198
-    }
199
-
200
-    /**
201
-     * @param bool $drawBorder
202
-     *
203
-     * @return $this
204
-     */
205
-    public function setDrawBorder($drawBorder)
206
-    {
207
-        $this->drawBorder = boolval($drawBorder);
208
-
209
-        return $this;
210
-    }
211
-
212
-    /**
213
-     * @return bool
214
-     */
215
-    public function isDrawOnChartArea()
216
-    {
217
-        return $this->drawOnChartArea;
218
-    }
219
-
220
-    /**
221
-     * @param bool $drawOnChartArea
222
-     *
223
-     * @return $this
224
-     */
225
-    public function setDrawOnChartArea($drawOnChartArea)
226
-    {
227
-        $this->drawOnChartArea = boolval($drawOnChartArea);
228
-
229
-        return $this;
230
-    }
231
-
232
-    /**
233
-     * @return bool
234
-     */
235
-    public function isDrawTicks()
236
-    {
237
-        return $this->drawTicks;
238
-    }
239
-
240
-    /**
241
-     * @param bool $drawTicks
242
-     *
243
-     * @return $this
244
-     */
245
-    public function setDrawTicks($drawTicks)
246
-    {
247
-        $this->drawTicks = boolval($drawTicks);
248
-
249
-        return $this;
250
-    }
251
-
252
-    /**
253
-     * @return int
254
-     */
255
-    public function getTickMarkLength()
256
-    {
257
-        return $this->tickMarkLength;
258
-    }
259
-
260
-    /**
261
-     * @param int $tickMarkLength
262
-     *
263
-     * @return $this
264
-     */
265
-    public function setTickMarkLength($tickMarkLength)
266
-    {
267
-        $this->tickMarkLength = intval($tickMarkLength);
268
-
269
-        return $this;
270
-    }
271
-
272
-    /**
273
-     * @return int
274
-     */
275
-    public function getZeroLineWidth()
276
-    {
277
-        return $this->zeroLineWidth;
278
-    }
279
-
280
-    /**
281
-     * @param int $zeroLineWidth
282
-     *
283
-     * @return $this
284
-     */
285
-    public function setZeroLineWidth($zeroLineWidth)
286
-    {
287
-        $this->zeroLineWidth = intval($zeroLineWidth);
288
-
289
-        return $this;
290
-    }
291
-
292
-    /**
293
-     * @return string
294
-     */
295
-    public function getZeroLineColor()
296
-    {
297
-        return $this->zeroLineColor;
298
-    }
299
-
300
-    /**
301
-     * @param string $zeroLineColor
302
-     *
303
-     * @return $this
304
-     */
305
-    public function setZeroLineColor($zeroLineColor)
306
-    {
307
-        $this->zeroLineColor = is_null($zeroLineColor) ? null : strval($zeroLineColor);
308
-
309
-        return $this;
310
-    }
311
-
312
-    /**
313
-     * @return bool
314
-     */
315
-    public function isOffsetGridLines()
316
-    {
317
-        return $this->offsetGridLines;
318
-    }
319
-
320
-    /**
321
-     * @param bool $offsetGridLines
322
-     *
323
-     * @return $this
324
-     */
325
-    public function setOffsetGridLines($offsetGridLines)
326
-    {
327
-        $this->offsetGridLines = boolval($offsetGridLines);
328
-
329
-        return $this;
330
-    }
331
-
332
-    /**
333
-     * @return array
334
-     */
335
-    public function jsonSerialize()
336
-    {
337
-        return $this->getArrayCopy();
338
-    }
18
+	use ArraySerializable;
19
+	use StringUtils;
20
+	use NumberUtils;
21
+
22
+	/**
23
+	 * @var bool
24
+	 */
25
+	private $display;
26
+
27
+	/**
28
+	 * @var string|string[]
29
+	 */
30
+	private $color;
31
+
32
+	/**
33
+	 * @var float[]|null
34
+	 */
35
+	private $borderDash;
36
+
37
+	/**
38
+	 * @var float
39
+	 */
40
+	private $borderDashOffset;
41
+
42
+	/**
43
+	 * @var int|int[]
44
+	 */
45
+	private $lineWidth;
46
+
47
+	/**
48
+	 * @var bool
49
+	 */
50
+	private $drawBorder;
51
+
52
+	/**
53
+	 * @var bool
54
+	 */
55
+	private $drawOnChartArea;
56
+
57
+	/**
58
+	 * @var bool
59
+	 */
60
+	private $drawTicks;
61
+
62
+	/**
63
+	 * @var int
64
+	 */
65
+	private $tickMarkLength;
66
+
67
+	/**
68
+	 * @var int
69
+	 */
70
+	private $zeroLineWidth;
71
+
72
+	/**
73
+	 * @var string
74
+	 */
75
+	private $zeroLineColor;
76
+
77
+	/**
78
+	 * @var bool
79
+	 */
80
+	private $offsetGridLines;
81
+
82
+	/**
83
+	 * @return bool
84
+	 */
85
+	public function isDisplay()
86
+	{
87
+		return $this->display;
88
+	}
89
+
90
+	/**
91
+	 * @param bool $display
92
+	 *
93
+	 * @return $this
94
+	 */
95
+	public function setDisplay($display)
96
+	{
97
+		$this->display = $display;
98
+
99
+		return $this;
100
+	}
101
+
102
+	/**
103
+	 * @return string|string[]
104
+	 */
105
+	public function getColor()
106
+	{
107
+		return $this->color;
108
+	}
109
+
110
+	/**
111
+	 * @param string|string[] $color
112
+	 *
113
+	 * @return $this
114
+	 */
115
+	public function setColor($color)
116
+	{
117
+		if (is_array($color)) {
118
+			$this->color = $this->recursiveToString($color);
119
+		} else {
120
+			$this->color = is_null($color) ? null : strval($color);
121
+		}
122
+
123
+		return $this;
124
+	}
125
+
126
+	/**
127
+	 * @return float[]|null
128
+	 */
129
+	public function getBorderDash()
130
+	{
131
+		return $this->borderDash;
132
+	}
133
+
134
+	/**
135
+	 * @param float[] $borderDash
136
+	 *
137
+	 * @return $this
138
+	 */
139
+	public function setBorderDash($borderDash)
140
+	{
141
+		if (is_array($borderDash)) {
142
+			$this->borderDash = $this->recursiveToFloat($borderDash);
143
+		}
144
+
145
+		return $this;
146
+	}
147
+
148
+	/**
149
+	 * @return float
150
+	 */
151
+	public function getBorderDashOffset()
152
+	{
153
+		return $this->borderDashOffset;
154
+	}
155
+
156
+	/**
157
+	 * @param float $borderDashOffset
158
+	 *
159
+	 * @return $this
160
+	 */
161
+	public function setBorderDashOffset($borderDashOffset)
162
+	{
163
+		$this->borderDashOffset = floatval($borderDashOffset);
164
+
165
+		return $this;
166
+	}
167
+
168
+	/**
169
+	 * @return int|int[]
170
+	 */
171
+	public function getLineWidth()
172
+	{
173
+		return $this->lineWidth;
174
+	}
175
+
176
+	/**
177
+	 * @param int|int[] $lineWidth
178
+	 *
179
+	 * @return $this
180
+	 */
181
+	public function setLineWidth($lineWidth)
182
+	{
183
+		if (is_array($lineWidth)) {
184
+			$this->lineWidth = $this->recursiveToInt($lineWidth);
185
+		} else {
186
+			$this->lineWidth = is_null($lineWidth) ? null : intval($lineWidth);
187
+		}
188
+
189
+		return $this;
190
+	}
191
+
192
+	/**
193
+	 * @return bool
194
+	 */
195
+	public function isDrawBorder()
196
+	{
197
+		return $this->drawBorder;
198
+	}
199
+
200
+	/**
201
+	 * @param bool $drawBorder
202
+	 *
203
+	 * @return $this
204
+	 */
205
+	public function setDrawBorder($drawBorder)
206
+	{
207
+		$this->drawBorder = boolval($drawBorder);
208
+
209
+		return $this;
210
+	}
211
+
212
+	/**
213
+	 * @return bool
214
+	 */
215
+	public function isDrawOnChartArea()
216
+	{
217
+		return $this->drawOnChartArea;
218
+	}
219
+
220
+	/**
221
+	 * @param bool $drawOnChartArea
222
+	 *
223
+	 * @return $this
224
+	 */
225
+	public function setDrawOnChartArea($drawOnChartArea)
226
+	{
227
+		$this->drawOnChartArea = boolval($drawOnChartArea);
228
+
229
+		return $this;
230
+	}
231
+
232
+	/**
233
+	 * @return bool
234
+	 */
235
+	public function isDrawTicks()
236
+	{
237
+		return $this->drawTicks;
238
+	}
239
+
240
+	/**
241
+	 * @param bool $drawTicks
242
+	 *
243
+	 * @return $this
244
+	 */
245
+	public function setDrawTicks($drawTicks)
246
+	{
247
+		$this->drawTicks = boolval($drawTicks);
248
+
249
+		return $this;
250
+	}
251
+
252
+	/**
253
+	 * @return int
254
+	 */
255
+	public function getTickMarkLength()
256
+	{
257
+		return $this->tickMarkLength;
258
+	}
259
+
260
+	/**
261
+	 * @param int $tickMarkLength
262
+	 *
263
+	 * @return $this
264
+	 */
265
+	public function setTickMarkLength($tickMarkLength)
266
+	{
267
+		$this->tickMarkLength = intval($tickMarkLength);
268
+
269
+		return $this;
270
+	}
271
+
272
+	/**
273
+	 * @return int
274
+	 */
275
+	public function getZeroLineWidth()
276
+	{
277
+		return $this->zeroLineWidth;
278
+	}
279
+
280
+	/**
281
+	 * @param int $zeroLineWidth
282
+	 *
283
+	 * @return $this
284
+	 */
285
+	public function setZeroLineWidth($zeroLineWidth)
286
+	{
287
+		$this->zeroLineWidth = intval($zeroLineWidth);
288
+
289
+		return $this;
290
+	}
291
+
292
+	/**
293
+	 * @return string
294
+	 */
295
+	public function getZeroLineColor()
296
+	{
297
+		return $this->zeroLineColor;
298
+	}
299
+
300
+	/**
301
+	 * @param string $zeroLineColor
302
+	 *
303
+	 * @return $this
304
+	 */
305
+	public function setZeroLineColor($zeroLineColor)
306
+	{
307
+		$this->zeroLineColor = is_null($zeroLineColor) ? null : strval($zeroLineColor);
308
+
309
+		return $this;
310
+	}
311
+
312
+	/**
313
+	 * @return bool
314
+	 */
315
+	public function isOffsetGridLines()
316
+	{
317
+		return $this->offsetGridLines;
318
+	}
319
+
320
+	/**
321
+	 * @param bool $offsetGridLines
322
+	 *
323
+	 * @return $this
324
+	 */
325
+	public function setOffsetGridLines($offsetGridLines)
326
+	{
327
+		$this->offsetGridLines = boolval($offsetGridLines);
328
+
329
+		return $this;
330
+	}
331
+
332
+	/**
333
+	 * @return array
334
+	 */
335
+	public function jsonSerialize()
336
+	{
337
+		return $this->getArrayCopy();
338
+	}
339 339
 }
Please login to merge, or discard this patch.