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.
Completed
Pull Request — master (#186)
by Tobias
05:24
created
src/views/default/panels/javascript/chart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 $days = [];
9 9
 $count = [];
10 10
 foreach (range(-6, 0) as $day) {
11
-    $date = strtotime($day . 'days');
11
+    $date = strtotime($day.'days');
12 12
     $days[] = date('D: Y-m-d', $date);
13 13
     $count[] = AuditTrail::find()->where(['between', 'created', date('Y-m-d 00:00:00', $date), date('Y-m-d 23:59:59', $date)])->count();
14 14
 }
Please login to merge, or discard this patch.
src/views/default/panels/mail/chart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 $days = [];
9 9
 $count = [];
10 10
 foreach (range(-6, 0) as $day) {
11
-    $date = strtotime($day . 'days');
11
+    $date = strtotime($day.'days');
12 12
     $days[] = date('D: Y-m-d', $date);
13 13
     $count[] = AuditTrail::find()->where(['between', 'created', date('Y-m-d 00:00:00', $date), date('Y-m-d 23:59:59', $date)])->count();
14 14
 }
Please login to merge, or discard this patch.
src/views/default/panels/error/chart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 $days = [];
9 9
 $count = [];
10 10
 foreach (range(-6, 0) as $day) {
11
-    $date = strtotime($day . 'days');
11
+    $date = strtotime($day.'days');
12 12
     $days[] = date('D: Y-m-d', $date);
13 13
     $count[] = AuditTrail::find()->where(['between', 'created', date('Y-m-d 00:00:00', $date), date('Y-m-d 23:59:59', $date)])->count();
14 14
 }
Please login to merge, or discard this patch.
src/views/entry/panels/curl/index.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,6 @@
 block discarded – undo
6 6
 
7 7
 echo Html::tag('h1', $panel->name);
8 8
 
9
-foreach ($dataProvider->allModels as $index => $request)
9
+foreach ($dataProvider->allModels as $index => $request) {
10 10
     echo $this->render('detail', ['panel' => $panel, 'request' => $request, 'index' => $index + 1]);
11
+}
Please login to merge, or discard this patch.
src/views/entry/panels/extra/detail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         ],
38 38
         [
39 39
             'header' => Yii::t('audit', 'Data'),
40
-            'value' => function ($data) {
40
+            'value' => function($data) {
41 41
                 $out = '<a class="data-toggle glyphicon glyphicon-plus" href="javascript:void(0);"></a>';
42 42
                 $out .= '<pre style="display:none;">';
43 43
                 $out .= \yii\helpers\VarDumper::dumpAsString($data['data']);
Please login to merge, or discard this patch.
src/views/entry/panels/error/detail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
             'class'    => 'yii\grid\ActionColumn',
20 20
             'template' => '{view}',
21 21
             'buttons'  => [
22
-                'view' => function ($url, $model) {
22
+                'view' => function($url, $model) {
23 23
                     return Html::a(
24 24
                         Html::tag('span', '', ['class' => 'glyphicon glyphicon-eye-open']), ['mail/view', 'id' => $model->id]
25 25
                     );
Please login to merge, or discard this patch.
src/views/error/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' => 'entry_id',
34 34
                 'class' => 'yii\grid\DataColumn',
35
-                'value' => function ($data) {
35
+                'value' => function($data) {
36 36
                     return $data->entry_id ? Html::a($data->entry_id, ['entry/view', 'id' => $data->entry_id]) : '';
37 37
                 },
38 38
                 'format' => 'raw',
Please login to merge, or discard this patch.
src/panels/ExtraDataPanel.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function getLabel()
24 24
     {
25
-        return $this->getName() . ' <small>(' . count($this->data) . ')</small>';
25
+        return $this->getName().' <small>('.count($this->data).')</small>';
26 26
     }
27 27
 
28 28
     /**
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,9 @@
 block discarded – undo
35 35
     {
36 36
         $this->module->registerPanel($this);
37 37
 
38
-        if (!is_array($this->data))
39
-            $this->data = [];
38
+        if (!is_array($this->data)) {
39
+                    $this->data = [];
40
+        }
40 41
 
41 42
         if (isset($data['error'])) {
42 43
             $error = $this->module->exception($data['error']);
Please login to merge, or discard this patch.
src/views/mail/view.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 $this->title = Yii::t('audit', 'Mail #{id}', ['id' => $model->id]);
14 14
 $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Audit'), 'url' => ['default/index']];
15 15
 $this->params['breadcrumbs'][] = ['label' => Yii::t('audit', 'Mails'), 'url' => ['index']];
16
-$this->params['breadcrumbs'][] = '#' . $model->id;
16
+$this->params['breadcrumbs'][] = '#'.$model->id;
17 17
 
18 18
 echo Html::tag('h1', $this->title);
19 19
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 echo Html::tag('h2', Yii::t('audit', 'HTML'));
51 51
 echo '<div class="well">';
52
-echo '<iframe src="' . Url::to(['mail/view-html', 'id' => $model->id]) . '" style="width:100%;" onload="this.style.height = this.contentWindow.document.body.scrollHeight + \'px\';" frameborder="0"></iframe>';
52
+echo '<iframe src="'.Url::to(['mail/view-html', 'id' => $model->id]).'" style="width:100%;" onload="this.style.height = this.contentWindow.document.body.scrollHeight + \'px\';" frameborder="0"></iframe>';
53 53
 //echo Yii::$app->formatter->asHtml($model->html);
54 54
 echo '</div>';
55 55
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 /** @var View $this */
4 4
 /** @var AuditMail $model */
5 5
 
6
-use bedezign\yii2\audit\components\Helper;
7 6
 use bedezign\yii2\audit\models\AuditMail;
8 7
 use yii\helpers\Html;
9 8
 use yii\helpers\Url;
Please login to merge, or discard this patch.