@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | */ |
| 229 | 229 | public function createDataSet() |
| 230 | 230 | { |
| 231 | - $datasetClass = static::MODEL['dataset']; |
|
| 231 | + $datasetClass = static::MODEL[ 'dataset' ]; |
|
| 232 | 232 | /** @var \Halfpastfour\PHPChartJS\DataSet $dataSet */ |
| 233 | 233 | $dataSet = new $datasetClass(); |
| 234 | 234 | $dataSet->setOwner($this); |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | public function options() |
| 243 | 243 | { |
| 244 | 244 | if (is_null($this->options)) { |
| 245 | - $optionsClass = static::MODEL['options']; |
|
| 245 | + $optionsClass = static::MODEL[ 'options' ]; |
|
| 246 | 246 | $this->options = new $optionsClass($this); |
| 247 | 247 | $this->options->setOwner($this); |
| 248 | 248 | } |