@@ -18,7 +18,7 @@ |
||
| 18 | 18 | ]) ?> |
| 19 | 19 | <?php foreach ($authAuthChoice->getClients() as $client): ?> |
| 20 | 20 | <div class="form-group"> |
| 21 | - <?= Html::a("<span class='fa fa-$client->name'></span> Sign in with " . $client->getTitle(), ['/admin/auth/auth', 'authclient' => $client->getName(),], ['class' => "btn btn-block btn-social btn-$client->name "]) ?> |
|
| 21 | + <?= Html::a("<span class='fa fa-$client->name'></span> Sign in with " . $client->getTitle(), ['/admin/auth/auth', 'authclient' => $client->getName(), ], ['class' => "btn btn-block btn-social btn-$client->name "]) ?> |
|
| 22 | 22 | </div> |
| 23 | 23 | <?php endforeach; ?> |
| 24 | 24 | <?php AuthChoice::end() ?> |
| 25 | 25 | \ No newline at end of file |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | [ |
| 34 | 34 | 'attribute' => 'name', |
| 35 | - 'content' => function (\app\models\Tag $model) { |
|
| 35 | + 'content' => function(\app\models\Tag $model) { |
|
| 36 | 36 | $html = []; |
| 37 | 37 | $html[] = Html::a($model->namePrefixed, ['tag/stats', 'id' => $model->id]); |
| 38 | 38 | $html[] = Html::a('<span class="fa fa-external-link text-sm"></span>', Url::tag($model->name), ['target' => '_blank']); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function updateInvalidation(Tag $tag, ?int $invalidationType) |
| 45 | 45 | { |
| 46 | - $tag->invalidation_count = (int)$tag->invalidation_count + 1; |
|
| 46 | + $tag->invalidation_count = (int) $tag->invalidation_count + 1; |
|
| 47 | 47 | $tag->is_valid = 0; |
| 48 | 48 | $tag->invalidation_type_id = $invalidationType; |
| 49 | 49 | $interval = 1; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $this->saveTags($tags); |
| 86 | 86 | |
| 87 | 87 | $createdAt = (new \DateTime())->format('Y-m-d H:i:s'); |
| 88 | - $rows = array_map(function ($id) use ($media, $createdAt) { |
|
| 88 | + $rows = array_map(function($id) use ($media, $createdAt) { |
|
| 89 | 89 | return [ |
| 90 | 90 | $media->id, |
| 91 | 91 | $id, |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | $userIds = $this->getUserIds($userId); |
| 134 | 134 | $tagIds = $this->getTagIds($tags); |
| 135 | 135 | foreach ($userIds as $userId) { |
| 136 | - $tmp = array_map(function ($tagId) use ($account, $userId, $createdAt) { |
|
| 136 | + $tmp = array_map(function($tagId) use ($account, $userId, $createdAt) { |
|
| 137 | 137 | return [ |
| 138 | 138 | $account->id, |
| 139 | 139 | $tagId, |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | public function saveTags(array $tags) |
| 159 | 159 | { |
| 160 | 160 | $createdAt = (new \DateTime())->format('Y-m-d H:i:s'); |
| 161 | - $rows = array_map(function ($tag) use ($createdAt) { |
|
| 161 | + $rows = array_map(function($tag) use ($createdAt) { |
|
| 162 | 162 | return [ |
| 163 | 163 | $tag, |
| 164 | 164 | Inflector::slug($tag), |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | ->andWhere(['active' => 1]) |
| 204 | 204 | ->column(); |
| 205 | 205 | } else { |
| 206 | - $userIds = (array)$userId; |
|
| 206 | + $userIds = (array) $userId; |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | return $userIds; |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | $job = JobFactory::createAccountUpdate($account); |
| 123 | 123 | $queue->push($job); |
| 124 | 124 | |
| 125 | - $tags = array_filter((array)$form->tags); |
|
| 125 | + $tags = array_filter((array) $form->tags); |
|
| 126 | 126 | if ($tags) { |
| 127 | 127 | $tagManager = \Yii::createObject(TagManager::class); |
| 128 | 128 | $tagManager->saveForAccount($account, $tags, \Yii::$app->user->id); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | public function details(Account $account): \app\models\Account |
| 37 | 37 | { |
| 38 | 38 | $this->account->username = $account->username; |
| 39 | - $this->account->instagram_id = (string)$account->id; |
|
| 39 | + $this->account->instagram_id = (string) $account->id; |
|
| 40 | 40 | $this->account->profile_pic_url = $account->profilePicUrl; |
| 41 | 41 | $this->account->full_name = $account->fullName; |
| 42 | 42 | $this->account->biography = $account->biography; |