Passed
Push — master ( 420524...d9222d )
by Paweł
02:51
created
config/console.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,11 +73,11 @@
 block discarded – undo
73 73
         'class' => 'yii\gii\Module',
74 74
     ];
75 75
     $config['modules']['fixture'] = [ // Fixture generation command line.
76
-      'class' => FixtureController::class,
77
-      'templatePath' => 'tests/fixtures/templates',
78
-      'fixtureDataPath' => 'tests/fixtures/data',
79
-      'namespace' => 'app\tests\fixtures',
80
-      'count' => 10,
76
+        'class' => FixtureController::class,
77
+        'templatePath' => 'tests/fixtures/templates',
78
+        'fixtureDataPath' => 'tests/fixtures/data',
79
+        'namespace' => 'app\tests\fixtures',
80
+        'count' => 10,
81 81
     ];
82 82
 }
83 83
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     $config['modules']['gii'] = [
73 73
         'class' => 'yii\gii\Module',
74 74
     ];
75
-    $config['modules']['fixture'] = [ // Fixture generation command line.
75
+    $config['modules']['fixture'] = [// Fixture generation command line.
76 76
       'class' => FixtureController::class,
77 77
       'templatePath' => 'tests/fixtures/templates',
78 78
       'fixtureDataPath' => 'tests/fixtures/data',
Please login to merge, or discard this patch.
modules/admin/views/proxy/index.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
                 [
33 33
                     'attribute' => 'ip',
34 34
                     'format' => 'html',
35
-                    'value' => function (Proxy $model) {
35
+                    'value' => function(Proxy $model) {
36 36
                         return Html::a($model->ip, ['proxy/update', 'id' => $model->id]);
37 37
                     },
38 38
                 ],
Please login to merge, or discard this patch.
modules/admin/views/tag/_tools-header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             <?php endif; ?>
57 57
 
58 58
             <?php if (isset($routes['download'])): ?>
59
-                <?= Html::a('<span class="fa fa-download"></span>', ArrayHelper::merge(Yii::$app->request->get(), (array)$routes['download'], ['id' => $model->id]), [
59
+                <?= Html::a('<span class="fa fa-download"></span>', ArrayHelper::merge(Yii::$app->request->get(), (array) $routes['download'], ['id' => $model->id]), [
60 60
                     'class' => 'btn btn-default',
61 61
                 ]) ?>
62 62
             <?php endif; ?>
Please login to merge, or discard this patch.
modules/admin/views/account/media-accounts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
                                 'occurs',
61 61
                                 [
62 62
                                     'format' => 'raw',
63
-                                    'value' => function (Account $account) use ($model, $categories) {
63
+                                    'value' => function(Account $account) use ($model, $categories) {
64 64
                                         return OnOffMonitoringButton::widget([
65 65
                                             'model' => $account,
66 66
                                             'form' => new MonitoringForm([
Please login to merge, or discard this patch.
modules/admin/views/account/media-tags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
                             ],
51 51
                             [
52 52
                                 'format' => 'raw',
53
-                                'value' => function (Tag $tag) use ($model) {
53
+                                'value' => function(Tag $tag) use ($model) {
54 54
                                     return OnOffMonitoringButton::widget([
55 55
                                         'model' => $tag,
56 56
                                         'form' => new MonitoringForm([
Please login to merge, or discard this patch.
modules/admin/views/auth/login.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
 <?php foreach ($authAuthChoice->getClients() as $client): ?>
20 20
     <div class="form-group text-center">
21 21
         <?php if ($client->getId() == 'google'): ?>
22
-            <?= Html::a(Html::img('/img/btn_google_sign_in.png'), ['/admin/auth/auth', 'authclient' => $client->getName(),]) ?>
22
+            <?= Html::a(Html::img('/img/btn_google_sign_in.png'), ['/admin/auth/auth', 'authclient' => $client->getName(), ]) ?>
23 23
         <?php else: ?>
24
-            <?= 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 "]) ?>
24
+            <?= 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 "]) ?>
25 25
         <?php endif; ?>
26 26
     </div>
27 27
 <?php endforeach; ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,9 +20,12 @@
 block discarded – undo
20 20
     <div class="form-group text-center">
21 21
         <?php if ($client->getId() == 'google'): ?>
22 22
             <?= Html::a(Html::img('/img/btn_google_sign_in.png'), ['/admin/auth/auth', 'authclient' => $client->getName(),]) ?>
23
-        <?php else: ?>
23
+        <?php else {
24
+    : ?>
24 25
             <?= 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 "]) ?>
25
-        <?php endif; ?>
26
+        <?php endif;
27
+}
28
+?>
26 29
     </div>
27 30
 <?php endforeach; ?>
28 31
 <?php AuthChoice::end() ?>
29 32
\ No newline at end of file
Please login to merge, or discard this patch.
modules/admin/models/AccountSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function search($params)
48 48
     {
49
-        $userId = (int)Yii::$app->user->id;
49
+        $userId = (int) Yii::$app->user->id;
50 50
 
51 51
         $query = Account::find()
52 52
             ->select([
Please login to merge, or discard this patch.
components/traits/NextUpdateCalculatorTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         if ($interval === true) { // auto calculate
26 26
             $interval = 1;
27
-            for ($i = 1; $i <= (int)$model->invalidation_count; $i++) {
27
+            for ($i = 1; $i <= (int) $model->invalidation_count; $i++) {
28 28
                 $interval *= $i;
29 29
             }
30 30
         }
Please login to merge, or discard this patch.
components/visualizations/dataproviders/AccountChangesDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     {
47 47
         $formatter = Yii::$app->formatter;
48 48
 
49
-        return array_map(function ($label) use ($formatter) {
49
+        return array_map(function($label) use ($formatter) {
50 50
             return $formatter->format($label, $this->labelFormat);
51 51
         }, $this->getKeys());
52 52
     }
Please login to merge, or discard this patch.