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
Push — master ( 1a1e57...ace484 )
by
unknown
18:25
created
app/Console/Commands/PutTranslation.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,8 @@
 block discarded – undo
14 14
 namespace App\Console\Commands;
15 15
 
16 16
 use Illuminate\Console\Command;
17
-use Xpressengine\Database\VirtualConnectionInterface;
18 17
 use Symfony\Component\Console\Input\InputArgument;
19 18
 use Symfony\Component\Console\Input\InputOption;
20
-use Xpressengine\Database\DatabaseHandler;
21 19
 use Xpressengine\Translation\Translator;
22 20
 
23 21
 /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $dir = dir($dirPath);
90 90
 
91 91
             while ($entry = $dir->read()) {
92
-                $path = $dirPath . DIRECTORY_SEPARATOR . $entry;
92
+                $path = $dirPath.DIRECTORY_SEPARATOR.$entry;
93 93
                 if (is_dir($path)) {
94 94
                     continue;
95 95
                 }
@@ -115,10 +115,10 @@  discard block
 block discarded – undo
115 115
     {
116 116
         if (!$name) {
117 117
             // core language
118
-            return base_path('resources') . DIRECTORY_SEPARATOR . 'lang';
118
+            return base_path('resources').DIRECTORY_SEPARATOR.'lang';
119 119
         }
120 120
 
121
-        return base_path('plugins') . DIRECTORY_SEPARATOR . $name . DIRECTORY_SEPARATOR . 'langs';
121
+        return base_path('plugins').DIRECTORY_SEPARATOR.$name.DIRECTORY_SEPARATOR.'langs';
122 122
     }
123 123
 
124 124
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/InstallController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace App\Http\Controllers;
3 3
 
4
-use Xpressengine\Http\Request;
5 4
 use View;
6 5
 use Artisan;
7 6
 use File;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,8 @@
 block discarded – undo
83 83
         $this->checkSystem();
84 84
 
85 85
 
86
-        $appKeyPath = storage_path('app') . '/appKey';
87
-        $configPath = storage_path('app') . '/installConfig';
86
+        $appKeyPath = storage_path('app').'/appKey';
87
+        $configPath = storage_path('app').'/installConfig';
88 88
 
89 89
         $string = Yaml::dump([
90 90
             'site' => [
Please login to merge, or discard this patch.
app/Http/Controllers/MenuController.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      *
109 109
      * @param MenuHandler $handler menu handler
110 110
      *
111
-     * @return mixed
111
+     * @return RedirectResponse
112 112
      * @throws Exception
113 113
      */
114 114
     public function store(MenuHandler $handler)
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
      * @param MenuHandler     $handler menu handler
454 454
      * @param string          $menuId  where to store
455 455
      *
456
-     * @return $this|RedirectResponse
456
+     * @return RedirectResponse
457 457
      * @throws Exception
458 458
      */
459 459
     public function storeItem(MenuHandler $handler, $menuId)
@@ -643,6 +643,9 @@  discard block
 block discarded – undo
643 643
 
644 644
     }
645 645
 
646
+    /**
647
+     * @param string $name
648
+     */
646 649
     protected function registerItemImage(MenuItem $item, $name)
647 650
     {
648 651
         $columnKeyName = $name . 'Id';
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
 
357 357
     protected function inputFilterParser($prefix, $inputs = [])
358 358
     {
359
-        $inputs = array_where($inputs, function ($key, $value) use ($prefix) {
359
+        $inputs = array_where($inputs, function($key, $value) use ($prefix) {
360 360
             return starts_with($key, $prefix);
361 361
         });
362 362
 
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
 
646 646
     protected function registerItemImage(MenuItem $item, $name)
647 647
     {
648
-        $columnKeyName = $name . 'Id';
648
+        $columnKeyName = $name.'Id';
649 649
 
650 650
         if ($uploadImg = Request::file($name)) {
651 651
             $image = XeMedia::make(XeStorage::upload($uploadImg, 'menu'));
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
 
658 658
             $item->{$columnKeyName} = $image->getKey();
659 659
         } else {
660
-            $key = 'remove' . ucfirst($name);
660
+            $key = 'remove'.ucfirst($name);
661 661
             if (Request::get($key) && $item->{$columnKeyName} !== null) {
662 662
                 XeStorage::unBind($item->getKey(), $item->{$name});
663 663
                 $item->{$columnKeyName} = null;
Please login to merge, or discard this patch.
core/src/Xpressengine/Category/Models/CategoryItem.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
  */
14 14
 namespace Xpressengine\Category\Models;
15 15
 
16
-use Illuminate\Database\Eloquent\Builder;
17 16
 use Illuminate\Database\Eloquent\Collection;
18 17
 use Illuminate\Database\Eloquent\Relations\BelongsTo;
19 18
 use Xpressengine\Support\Tree\Node;
Please login to merge, or discard this patch.
resources/FieldTypes/Category.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,12 +4,10 @@
 block discarded – undo
4 4
  */
5 5
 namespace Xpressengine\FieldTypes;
6 6
 
7
-use Xpressengine\Database\DynamicQuery;
8 7
 use Xpressengine\DynamicField\AbstractType;
9 8
 use Xpressengine\DynamicField\ColumnEntity;
10 9
 use Xpressengine\DynamicField\ColumnDataType;
11 10
 use Xpressengine\Config\ConfigEntity;
12
-use Illuminate\Database\Query\Builder;
13 11
 use Xpressengine\Category\Models\Category as CategoryModel;
14 12
 use Xpressengine\FieldSkins\Category\AfterTitle;
15 13
 use Xpressengine\FieldSkins\Category\BeforeTitle;
Please login to merge, or discard this patch.
app/Http/Kernel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     protected function isInstalled()
76 76
     {
77
-        return file_exists($this->app->storagePath() . '/app/installed');
77
+        return file_exists($this->app->storagePath().'/app/installed');
78 78
     }
79 79
 
80 80
     /**
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
      */
96 96
 	protected function resetProviders()
97 97
 	{
98
-        $this->app['events']->listen('bootstrapped: App\Bootstrappers\LoadConfiguration', function ($app) {
98
+        $this->app['events']->listen('bootstrapped: App\Bootstrappers\LoadConfiguration', function($app) {
99 99
             $config = $app['config'];
100 100
 
101 101
             $providers = $config['app.providers'];
102
-            $providers = array_filter($providers, function ($p) {
102
+            $providers = array_filter($providers, function($p) {
103 103
                 return substr($p, 0, strlen('Illuminate')) == 'Illuminate';
104 104
             });
105 105
 
Please login to merge, or discard this patch.
app/Providers/InstallServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         echo 'Please Install XE3';
41 41
         exit;
42
-        $appKeyPath = storage_path('app') . '/appKey';
42
+        $appKeyPath = storage_path('app').'/appKey';
43 43
 
44 44
         if (File::exists($appKeyPath) === false) {
45 45
             File::put($appKeyPath, Str::random(32));
Please login to merge, or discard this patch.
app/Console/Commands/XeInstall.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -133,9 +133,9 @@  discard block
 block discarded – undo
133 133
         } catch (\Exception $e) {
134 134
             $err = [
135 135
                 'Install fail!! Try again.',
136
-                ' message: ' . $e->getMessage(),
137
-                ' file: ' . $e->getFile(),
138
-                ' line: ' . $e->getLine(),
136
+                ' message: '.$e->getMessage(),
137
+                ' file: '.$e->getFile(),
138
+                ' line: '.$e->getLine(),
139 139
             ];
140 140
             $this->output->error(implode(PHP_EOL, $err));
141 141
             $note = [
@@ -329,13 +329,13 @@  discard block
 block discarded – undo
329 329
         try {
330 330
             $this->setStorageDirPermission();
331 331
         } catch (\Exception $e) {
332
-            $this->error('Fail to change storage directory permission. Check directory after install.' . PHP_EOL . ' message: '. $e->getMessage());
332
+            $this->error('Fail to change storage directory permission. Check directory after install.'.PHP_EOL.' message: '.$e->getMessage());
333 333
         }
334 334
 
335 335
         try {
336 336
             $this->setBootCacheDirPermission();
337 337
         } catch (\Exception $e) {
338
-            $this->error('Fail to change bootstrap cache directory permission. Check directory after install.' . PHP_EOL . ' message: '. $e->getMessage());
338
+            $this->error('Fail to change bootstrap cache directory permission. Check directory after install.'.PHP_EOL.' message: '.$e->getMessage());
339 339
         }
340 340
     }
341 341
 
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
             . PHP_EOL
352 352
             . 'Your personal information will not be collected.'
353 353
         );
354
-        $answer = $this->askValidation('Do you agree to collect your system environmental information?', 'yes', function ($value) {
354
+        $answer = $this->askValidation('Do you agree to collect your system environmental information?', 'yes', function($value) {
355 355
             if (!in_array($value, ['yes', 'no'])) {
356 356
                 throw new \Exception('Input only yes or no.');
357 357
             }
@@ -488,13 +488,13 @@  discard block
 block discarded – undo
488 488
      */
489 489
     private function configFileGenerate($key, array $data)
490 490
     {
491
-        $dir = config_path() . '/cms';
491
+        $dir = config_path().'/cms';
492 492
         $this->makeDir($dir);
493 493
 
494 494
         $data = $this->encodeArr2Str($data);
495 495
 
496
-        $file = $dir . "/{$key}.php";
497
-        file_put_contents($file, '<?php' . str_repeat(PHP_EOL, 2) . 'return [' . PHP_EOL . $data . '];' . PHP_EOL);
496
+        $file = $dir."/{$key}.php";
497
+        file_put_contents($file, '<?php'.str_repeat(PHP_EOL, 2).'return ['.PHP_EOL.$data.'];'.PHP_EOL);
498 498
     }
499 499
 
500 500
     /**
@@ -527,9 +527,9 @@  discard block
 block discarded – undo
527 527
 
528 528
         foreach ($arr as $key => $val) {
529 529
             if (is_array($val)) {
530
-                $output .= $this->getIndent($depth) . "'{$key}' => " . '[' . PHP_EOL . $this->encodeArr2Str($val, $depth + 1) . $this->getIndent($depth) . '],' . PHP_EOL;
530
+                $output .= $this->getIndent($depth)."'{$key}' => ".'['.PHP_EOL.$this->encodeArr2Str($val, $depth + 1).$this->getIndent($depth).'],'.PHP_EOL;
531 531
             } else {
532
-                $output .= $this->getIndent($depth) . "'{$key}' => " . (is_int($val) ? $val : "'{$val}'") .',' . PHP_EOL;
532
+                $output .= $this->getIndent($depth)."'{$key}' => ".(is_int($val) ? $val : "'{$val}'").','.PHP_EOL;
533 533
             }
534 534
         }
535 535
 
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
         $siteInfo = $this->defaultInfos['site'];
584 584
 
585 585
         // site url
586
-        $siteInfo['url'] = $this->askValidation('site url', $siteInfo['url'], function ($url) {
586
+        $siteInfo['url'] = $this->askValidation('site url', $siteInfo['url'], function($url) {
587 587
             $url = trim($url, "/");
588 588
             if (filter_var($url, FILTER_VALIDATE_URL) === false) {
589 589
                 throw new \Exception('Invalid URL Format.');
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
         });
593 593
 
594 594
         // timezone
595
-        $siteInfo['timezone'] = $this->askValidation('Timezone', $siteInfo['timezone'], function ($timezone) {
595
+        $siteInfo['timezone'] = $this->askValidation('Timezone', $siteInfo['timezone'], function($timezone) {
596 596
             if (in_array($timezone, timezone_identifiers_list()) === false) {
597 597
                 throw new \Exception('Inputted timezone do not exist.');
598 598
             }
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
         $process = new Process(implode(' && ', $commands), $this->getBasePath(), null, null, null);
764 764
 
765 765
         $process->run(
766
-            function ($type, $line) {
766
+            function($type, $line) {
767 767
                 $this->line($line);
768 768
             }
769 769
         );
@@ -808,7 +808,7 @@  discard block
 block discarded – undo
808 808
         $adminInfo = $this->defaultInfos['admin'];
809 809
 
810 810
         // email
811
-        $adminInfo['email'] = $this->askValidation('Email', $adminInfo['email'], function ($email) {
811
+        $adminInfo['email'] = $this->askValidation('Email', $adminInfo['email'], function($email) {
812 812
             $validate = \Validator::make(
813 813
                 ['email' => $email],
814 814
                 [
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
         });
823 823
 
824 824
         // displayName
825
-        $adminInfo['displayName'] = $this->askValidation('Name', $adminInfo['displayName'], function ($displayName) {
825
+        $adminInfo['displayName'] = $this->askValidation('Name', $adminInfo['displayName'], function($displayName) {
826 826
             if (strlen(trim($displayName)) === 0) {
827 827
                 throw new \Exception('Input Name');
828 828
             }
Please login to merge, or discard this patch.
migrations/CategoryMigration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
     public function install()
11 11
     {
12
-        Schema::create('category', function (Blueprint $table) {
12
+        Schema::create('category', function(Blueprint $table) {
13 13
             $table->engine = "InnoDB";
14 14
 
15 15
             $table->increments('id');
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
             $table->integer('count');
18 18
         });
19 19
 
20
-        Schema::create('category_item', function (Blueprint $table) {
20
+        Schema::create('category_item', function(Blueprint $table) {
21 21
             $table->engine = "InnoDB";
22 22
 
23 23
             $table->increments('id');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             $table->index('parentId');
32 32
         });
33 33
 
34
-        Schema::create('category_closure', function (Blueprint $table) {
34
+        Schema::create('category_closure', function(Blueprint $table) {
35 35
             $table->engine = "InnoDB";
36 36
 
37 37
             $table->bigIncrements('id');
Please login to merge, or discard this patch.