@@ -49,16 +49,16 @@ |
||
49 | 49 | protected function getData() |
50 | 50 | { |
51 | 51 | // adapter as title as optional |
52 | - $data = array($this->title? ['label_0', $this->title]: ['label_0']); |
|
52 | + $data = array($this->title ? ['label_0', $this->title] : ['label_0']); |
|
53 | 53 | |
54 | - foreach($this->dataProvider->models as $key => $model){ |
|
54 | + foreach ($this->dataProvider->models as $key => $model) { |
|
55 | 55 | // name column |
56 | 56 | $data [$key + 1] = [strip_tags(array_shift($model))]; |
57 | 57 | // values columns |
58 | - foreach($model as $attribute => $value) { |
|
58 | + foreach ($model as $attribute => $value) { |
|
59 | 59 | $data[$key + 1][] = $value; |
60 | 60 | // add columns legends |
61 | - if(count($data[0]) < count($data[$key + 1])) { |
|
61 | + if (count($data[0]) < count($data[$key + 1])) { |
|
62 | 62 | $data[0][] = $attribute; |
63 | 63 | } |
64 | 64 | } |