@@ -20,7 +20,7 @@ |
||
20 | 20 | dirname(__FILE__) . '/vendor/yiisoft/yii2', |
21 | 21 | dirname(__FILE__) . '/../vendor/yiisoft/yii2', |
22 | 22 | ]; |
23 | - foreach($searchPaths as $path) { |
|
23 | + foreach ($searchPaths as $path) { |
|
24 | 24 | if (is_dir($path)) { |
25 | 25 | $frameworkPath = $path; |
26 | 26 | break; |
@@ -59,10 +59,10 @@ discard block |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | if ($media->caption) { |
62 | - $tags = (array)Text::getTags($media->caption); |
|
62 | + $tags = (array) Text::getTags($media->caption); |
|
63 | 63 | $this->addTags($media, $tags); |
64 | 64 | |
65 | - $usernames = (array)Text::getUsernames($media->caption); |
|
65 | + $usernames = (array) Text::getUsernames($media->caption); |
|
66 | 66 | ArrayHelper::removeValue($usernames, $this->account->username); |
67 | 67 | $this->addAccounts($media, $usernames); |
68 | 68 | } |
@@ -109,10 +109,10 @@ discard block |
||
109 | 109 | $statsData = ArrayHelper::arrayMap($content, [ |
110 | 110 | 'likes' => 'likes.count', |
111 | 111 | 'comments' => 'comments.count', |
112 | - 'account_followed_by' => function () { |
|
112 | + 'account_followed_by' => function() { |
|
113 | 113 | return $this->account->lastAccountStats->followed_by; |
114 | 114 | }, |
115 | - 'account_follows' => function () { |
|
115 | + 'account_follows' => function() { |
|
116 | 116 | return $this->account->lastAccountStats->follows; |
117 | 117 | }, |
118 | 118 | ]); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $manager->saveUsernames($usernames); |
139 | 139 | |
140 | 140 | $createdAt = (new \DateTime())->format('Y-m-d H:i:s'); |
141 | - $rows = array_map(function ($id) use ($media, $createdAt) { |
|
141 | + $rows = array_map(function($id) use ($media, $createdAt) { |
|
142 | 142 | return [ |
143 | 143 | $media->id, |
144 | 144 | $id, |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $manager->saveTags($tags); |
168 | 168 | |
169 | 169 | $createdAt = (new \DateTime())->format('Y-m-d H:i:s'); |
170 | - $rows = array_map(function ($id) use ($media, $createdAt) { |
|
170 | + $rows = array_map(function($id) use ($media, $createdAt) { |
|
171 | 171 | return [ |
172 | 172 | $media->id, |
173 | 173 | $id, |
@@ -22,8 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | echo Html::a( |
24 | 24 | $this->isFavorite() ? |
25 | - '<span class="fa fa-star-o text-yellow"></span> Remove from favorites' : |
|
26 | - '<span class="fa fa-star text-yellow"></span> Add to favorites', |
|
25 | + '<span class="fa fa-star-o text-yellow"></span> Remove from favorites' : '<span class="fa fa-star text-yellow"></span> Add to favorites', |
|
27 | 26 | ['favorite', 'id' => $this->model->id], |
28 | 27 | [ |
29 | 28 | 'class' => 'btn btn-block btn-default btn-sm', |