GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 64db4b...6f97ac )
by Elias
15:25 queued 15s
created
src/views/entry/index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
                 'attribute' => 'user_id',
28 28
                 'label' => Yii::t('audit', 'User'),
29 29
                 'class' => 'yii\grid\DataColumn',
30
-                'value' => function ($data) {
30
+                'value' => function($data) {
31 31
                     return Audit::getInstance()->getUserIdentifier($data->user_id);
32 32
                 },
33 33
                 'format' => 'raw',
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
                 'attribute' => 'route',
50 50
                 'filter' => AuditEntrySearch::routeFilter(),
51 51
                 'format' => 'html',
52
-                'value' => function ($data) {
52
+                'value' => function($data) {
53 53
                     return HTML::tag('span', '', [
54 54
                         'title' => \yii\helpers\Url::to([$data->route]),
55 55
                         'class' => 'glyphicon glyphicon-link'
56
-                    ]) . ' ' . $data->route;
56
+                    ]).' '.$data->route;
57 57
                 },
58 58
             ],
59 59
             [
@@ -68,28 +68,28 @@  discard block
 block discarded – undo
68 68
             ],
69 69
             [
70 70
                 'attribute' => 'trails',
71
-                'value' => function ($data) {
71
+                'value' => function($data) {
72 72
                     return $data->getTrails()->count();
73 73
                 },
74 74
                 'contentOptions' => ['class' => 'text-right'],
75 75
             ],
76 76
             [
77 77
                 'attribute' => 'mails',
78
-                'value' => function ($data) {
78
+                'value' => function($data) {
79 79
                     return $data->getMails()->count();
80 80
                 },
81 81
                 'contentOptions' => ['class' => 'text-right'],
82 82
             ],
83 83
             [
84 84
                 'attribute' => 'javascripts',
85
-                'value' => function ($data) {
85
+                'value' => function($data) {
86 86
                     return $data->getJavascripts()->count();
87 87
                 },
88 88
                 'contentOptions' => ['class' => 'text-right'],
89 89
             ],
90 90
             [
91 91
                 'attribute' => 'errors',
92
-                'value' => function ($data) {
92
+                'value' => function($data) {
93 93
                     return $data->getLinkedErrors()->count();
94 94
                 },
95 95
                 'contentOptions' => ['class' => 'text-right'],
Please login to merge, or discard this patch.
src/views/entry/panels/trail/detail.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
             'class'    => 'yii\grid\ActionColumn',
21 21
             'template' => '{view}',
22 22
             'buttons'  => [
23
-                'view' => function ($url, $model) {
23
+                'view' => function($url, $model) {
24 24
                     return Html::a(
25 25
                         Html::tag('span', '', ['class' => 'glyphicon glyphicon-eye-open']), ['trail/view', 'id' => $model->id]
26 26
                     );
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             'attribute' => 'user_id',
41 41
             'label'     => Yii::t('audit', 'User ID'),
42 42
             'class'     => 'yii\grid\DataColumn',
43
-            'value'     => function ($data) {
43
+            'value'     => function($data) {
44 44
                 return Audit::getInstance()->getUserIdentifier($data->user_id);
45 45
             },
46 46
             'options'   => [
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         ],
76 76
         [
77 77
             'label'  => Yii::t('audit', 'Diff'),
78
-            'value'  => function (AuditTrailSearch $model) {
78
+            'value'  => function(AuditTrailSearch $model) {
79 79
                 return $model->getDiffHtml();
80 80
             },
81 81
             'format' => 'raw',
Please login to merge, or discard this patch.
src/panels/MailPanel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function init()
39 39
     {
40 40
         parent::init();
41
-        Event::on(BaseMailer::className(), BaseMailer::EVENT_AFTER_SEND, function ($event) {
41
+        Event::on(BaseMailer::className(), BaseMailer::EVENT_AFTER_SEND, function($event) {
42 42
             $this->record($event);
43 43
         });
44 44
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function getLabel()
129 129
     {
130
-        return $this->getName() . ' <small>(' . $this->_model->getMails()->count() . ')</small>';
130
+        return $this->getName().' <small>('.$this->_model->getMails()->count().')</small>';
131 131
     }
132 132
 
133 133
     /**
Please login to merge, or discard this patch.
src/panels/JavascriptPanel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function getLabel()
32 32
     {
33
-        return $this->getName() . ' <small>(' . $this->_model->getJavascripts()->count() . ')</small>';
33
+        return $this->getName().' <small>('.$this->_model->getJavascripts()->count().')</small>';
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
src/panels/ErrorPanel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             return $entry ? $this->log($entry->id, $e) : null;
32 32
         });
33 33
 
34
-        $this->module->registerFunction('errorMessage', function ($message, $code = 0, $file = '', $line = 0, $trace = []) {
34
+        $this->module->registerFunction('errorMessage', function($message, $code = 0, $file = '', $line = 0, $trace = []) {
35 35
             $entry = $this->module->getEntry(true);
36 36
             return $entry ? $this->logMessage($entry->id, $message, $code, $file, $line, $trace) : null;
37 37
         });
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $error->file        = $exception->getFile();
64 64
         $error->line        = $exception->getLine();
65 65
         $error->trace       = Helper::cleanupTrace($exception->getTrace());
66
-        $error->hash        = Helper::hash($error->message . $error->file . $error->line);
66
+        $error->hash        = Helper::hash($error->message.$error->file.$error->line);
67 67
 
68 68
         $this->_exceptions[] = $exceptionId;
69 69
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $error->file        = $file;
91 91
         $error->line        = $line;
92 92
         $error->trace       = Helper::cleanupTrace($trace);
93
-        $error->hash        = Helper::hash($error->message . $error->file . $error->line);
93
+        $error->hash        = Helper::hash($error->message.$error->file.$error->line);
94 94
         return $error->save(false) ? $error : null;
95 95
     }
96 96
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function getLabel()
117 117
     {
118
-        return $this->getName() . ' <small>(' . $this->_model->getLinkedErrors()->count() . ')</small>';
118
+        return $this->getName().' <small>('.$this->_model->getLinkedErrors()->count().')</small>';
119 119
     }
120 120
 
121 121
     /**
Please login to merge, or discard this patch.
src/panels/TrailPanel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function getLabel()
40 40
     {
41
-        return $this->getName() . ' <small>(' . $this->_model->getTrails()->count() . ')</small>';
41
+        return $this->getName().' <small>('.$this->_model->getTrails()->count().')</small>';
42 42
     }
43 43
 
44 44
     /**
Please login to merge, or discard this patch.
src/messages/config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     // string, required, root directory of all source files
5
-    'sourcePath' => __DIR__ . '/..',
5
+    'sourcePath' => __DIR__.'/..',
6 6
     // array, required, list of language codes that the extracted messages
7 7
     // should be translated to. For example, ['zh-CN', 'de'].
8
-    'languages' => ['en', 'nl', 'ru', 'es', 'tr','sk'],
8
+    'languages' => ['en', 'nl', 'ru', 'es', 'tr', 'sk'],
9 9
     // string, the name of the function for translating messages.
10 10
     // Defaults to 'Yii::t'. This is used as a mark to find the messages to be
11 11
     // translated. You may use a string for single function name or an array for
Please login to merge, or discard this patch.
src/views/trail/view.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 $this->title = Yii::t('audit', 'Trail #{id}', ['id' => $model->id]);
11 11
 $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Audit'), 'url' => ['default/index']];
12 12
 $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Trails'), 'url' => ['trail/index']];
13
-$this->params['breadcrumbs'][] = '#' . $model->id;
13
+$this->params['breadcrumbs'][] = '#'.$model->id;
14 14
 
15 15
 echo Html::tag('h1', $this->title);
16 16
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         'created',
36 36
         [
37 37
             'label' => Yii::t('audit', 'Difference'),
38
-            'value' => function ($model) {
38
+            'value' => function($model) {
39 39
                 return $model->getDiffHtml();
40 40
             },
41 41
             'format' => 'raw',
Please login to merge, or discard this patch.
src/models/AuditTrail.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             }
73 73
         }
74 74
 
75
-        return (string)$value;
75
+        return (string) $value;
76 76
     }
77 77
 
78 78
     /**
@@ -81,21 +81,21 @@  discard block
 block discarded – undo
81 81
     public function getDiffHtml()
82 82
     {
83 83
         if (Audit::getInstance()->enablePrettyDiffForTrails) {
84
-            $oldValue = self::prettyPrintIfValueIsJson((string)$this->old_value);
85
-            $newValue = self::prettyPrintIfValueIsJson((string)$this->new_value);
84
+            $oldValue = self::prettyPrintIfValueIsJson((string) $this->old_value);
85
+            $newValue = self::prettyPrintIfValueIsJson((string) $this->new_value);
86 86
         } else {
87
-            $oldValue = (string)$this->old_value;
88
-            $newValue = (string)$this->new_value;
87
+            $oldValue = (string) $this->old_value;
88
+            $newValue = (string) $this->new_value;
89 89
         }
90 90
 
91 91
         $old = explode("\n", $oldValue);
92 92
         $new = explode("\n", $newValue);
93 93
 
94 94
         foreach ($old as $i => $line) {
95
-            $old[$i] = rtrim((string)$line, "\r\n");
95
+            $old[$i] = rtrim((string) $line, "\r\n");
96 96
         }
97 97
         foreach ($new as $i => $line) {
98
-            $new[$i] = rtrim((string)$line, "\r\n");
98
+            $new[$i] = rtrim((string) $line, "\r\n");
99 99
         }
100 100
 
101 101
         $diff = new \Diff($old, $new);
Please login to merge, or discard this patch.