Passed
Push — master ( fa3dfe...661634 )
by Paweł
04:54
created
commands/StatsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
     private function whereInterval($interval): Expression
139 139
     {
140 140
         return new Expression('DATE_FORMAT(created_at, \'%Y-%m-%d %H\') > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL :interval HOUR), \'%Y-%m-%d %H\')', [
141
-            'interval' => (int)$interval,
141
+            'interval' => (int) $interval,
142 142
         ]);
143 143
     }
144 144
 }
145 145
\ No newline at end of file
Please login to merge, or discard this patch.
modules/admin/views/auth/login.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 ]) ?>
19 19
 <?php foreach ($authAuthChoice->getClients() as $client): ?>
20 20
     <div class="form-group">
21
-        <?= Html::a('Sign in with ' . $client->getTitle(), ['/admin/auth/auth', 'authclient' => $client->getName(),], ['class' => "btn btn-success btn-block $client->name "]) ?>
21
+        <?= Html::a('Sign in with ' . $client->getTitle(), ['/admin/auth/auth', 'authclient' => $client->getName(), ], ['class' => "btn btn-success btn-block $client->name "]) ?>
22 22
     </div>
23 23
 <?php endforeach; ?>
24 24
 <?php AuthChoice::end() ?>
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
modules/admin/views/monitoring/accounts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                     ['class' => \yii\grid\SerialColumn::class],
33 33
                     [
34 34
                         'attribute' => 'username',
35
-                        'content' => function (\app\models\Account $model) {
35
+                        'content' => function(\app\models\Account $model) {
36 36
                             $html = [];
37 37
                             $html[] = Html::a($model->displayName, ['account/dashboard', 'id' => $model->id]);
38 38
                             $html[] = Html::a('<span class="fa fa-external-link text-sm"></span>', Url::account($model->username), ['target' => '_blank']);
Please login to merge, or discard this patch.
modules/admin/controllers/MonitoringController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
                 $account->disabled = 0;
110 110
                 if (!$account->hasErrors()) {
111 111
                     \Yii::$app->session->setFlash('success', 'OK!');
112
-                    $tags = array_filter((array)$form->tags);
112
+                    $tags = array_filter((array) $form->tags);
113 113
                     if ($tags) {
114 114
                         $tagManager = \Yii::createObject(TagManager::class);
115 115
                         $tagManager->saveForAccount($account, $tags, \Yii::$app->user->id);
Please login to merge, or discard this patch.
components/AccountManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function updateInvalidation(Account $account, ?int $invalidationType)
38 38
     {
39
-        $account->invalidation_count = (int)$account->invalidation_count + 1;
39
+        $account->invalidation_count = (int) $account->invalidation_count + 1;
40 40
         $account->is_valid = 0;
41 41
         $account->invalidation_type_id = $invalidationType;
42 42
         $interval = 1;
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $this->saveUsernames($usernames);
106 106
 
107 107
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
108
-        $rows = array_map(function ($id) use ($media, $createdAt) {
108
+        $rows = array_map(function($id) use ($media, $createdAt) {
109 109
             return [
110 110
                 $media->id,
111 111
                 $id,
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     public function saveUsernames(array $usernames)
130 130
     {
131 131
         $createdAt = (new \DateTime())->format('Y-m-d H:i:s');
132
-        $rows = array_map(function ($username) use ($createdAt) {
132
+        $rows = array_map(function($username) use ($createdAt) {
133 133
             return [
134 134
                 $username,
135 135
                 $createdAt,
Please login to merge, or discard this patch.