@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | 'tag.*', |
123 | 123 | 'count(tag.id) as occurs', |
124 | 124 | ]) |
125 | - ->innerJoinWith(['media' => function (Query $q) use ($model) { |
|
125 | + ->innerJoinWith(['media' => function(Query $q) use ($model) { |
|
126 | 126 | $q->andWhere(['media.account_id' => $model->id]); |
127 | 127 | }]) |
128 | 128 | ->groupBy('tag.id'), |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | 'account.*', |
155 | 155 | 'count(account.id) as occurs', |
156 | 156 | ]) |
157 | - ->innerJoinWith(['mediaAccounts.media' => function (Query $q) use ($model) { |
|
157 | + ->innerJoinWith(['mediaAccounts.media' => function(Query $q) use ($model) { |
|
158 | 158 | $q->andWhere(['media.account_id' => $model->id]); |
159 | 159 | }]) |
160 | 160 | ->groupBy('account.id'), |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | ['class' => \yii\grid\SerialColumn::class], |
31 | 31 | [ |
32 | 32 | 'attribute' => 'username', |
33 | - 'content' => function (\app\models\Account $model) { |
|
33 | + 'content' => function(\app\models\Account $model) { |
|
34 | 34 | return Html::a($model->displayName, ['account/dashboard', 'id' => $model->id]) . ' ' |
35 | 35 | . Html::a('<span class="fa fa-external-link text-sm"></span>', Url::account($model->username), ['target' => '_blank']); |
36 | 36 | }, |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | ], |
59 | 59 | [ |
60 | 60 | 'attribute' => 's_tags', |
61 | - 'value' => function (Account $model) { |
|
61 | + 'value' => function(Account $model) { |
|
62 | 62 | $tags = $model->getTags()->select('tag.name')->column(); |
63 | 63 | if ($tags) { |
64 | 64 | return implode(', ', $tags); |
@@ -168,7 +168,7 @@ |
||
168 | 168 | [ |
169 | 169 | 'label' => $model->lastAccountStats->getAttributeLabel('er'), |
170 | 170 | 'yAxisID' => 'er', |
171 | - 'data' => array_map(function ($item) { |
|
171 | + 'data' => array_map(function($item) { |
|
172 | 172 | return number_format($item * 100, 2); |
173 | 173 | }, ArrayHelper::getColumn($dailyStatsData, 'er')), |
174 | 174 | 'fill' => false, |