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 (#204)
by
unknown
06:45
created
src/Commands/InstallCommand.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         $title = $this->option('title');
39 39
 
40
-        $this->call('vendor:publish', ['--provider' => SleepingOwlServiceProvider::class]);
40
+        $this->call('vendor:publish', [ '--provider' => SleepingOwlServiceProvider::class ]);
41 41
 
42 42
         $this->publishConfig($title);
43 43
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $directory = config('sleeping_owl.bootstrapDirectory');
58 58
 
59
-        if (! is_dir($directory)) {
59
+        if (!is_dir($directory)) {
60 60
             $this->files->makeDirectory($directory, 0755, true, true);
61 61
             $this->line('<info>Admin bootstrap directory was created:</info> '.str_replace(base_path(), '', $directory));
62 62
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     {
70 70
         $file = config('sleeping_owl.bootstrapDirectory').'/navigation.php';
71 71
 
72
-        if (! file_exists($file)) {
72
+        if (!file_exists($file)) {
73 73
             $contents = $this->files->get(__DIR__.'/stubs/navigation.stub');
74 74
             $this->files->put($file, $contents);
75 75
             $this->line('<info>Menu file was created:</info> '.str_replace(base_path(), '', $file));
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     protected function createBootstrapFile()
83 83
     {
84 84
         $file = config('sleeping_owl.bootstrapDirectory').'/bootstrap.php';
85
-        if (! file_exists($file)) {
85
+        if (!file_exists($file)) {
86 86
             $contents = $this->files->get(__DIR__.'/stubs/bootstrap.stub');
87 87
             $this->files->put($file, $contents);
88 88
             $this->line('<info>Bootstrap file was created:</info> '.str_replace(base_path(), '', $file));
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     protected function createServiceProvider()
93 93
     {
94 94
         $file = app_path('Providers/AdminSectionsServiceProvider.php');
95
-        if (! file_exists($file)) {
95
+        if (!file_exists($file)) {
96 96
             $contents = $this->files->get(__DIR__.'/stubs/AdminSectionsServiceProvider.stub');
97 97
             $this->files->put($file, $contents);
98 98
             $this->line('<info>AdminSectionsServiceProvider file was created:</info> '.str_replace(base_path(), '', $file));
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     protected function createRoutesFile()
106 106
     {
107 107
         $file = config('sleeping_owl.bootstrapDirectory').'/routes.php';
108
-        if (! file_exists($file)) {
108
+        if (!file_exists($file)) {
109 109
             $contents = $this->files->get(__DIR__.'/stubs/routes.stub');
110 110
             $this->files->put($file, $contents);
111 111
             $this->line('<info>Bootstrap file was created:</info> '.str_replace(base_path(), '', $file));
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     protected function createPublicDefaultStructure()
119 119
     {
120 120
         $uploadsDirectory = public_path('images/uploads');
121
-        if (! is_dir($uploadsDirectory)) {
121
+        if (!is_dir($uploadsDirectory)) {
122 122
             $this->files->makeDirectory($uploadsDirectory, 0755, true, true);
123 123
         }
124 124
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     {
133 133
         $file = config_path('sleeping_owl.php');
134 134
 
135
-        if (! is_null($title)) {
135
+        if (!is_null($title)) {
136 136
             $contents = $this->files->get($file);
137 137
             $contents = str_replace('Sleeping Owl administrator', $title, $contents);
138 138
             $this->files->put($file, $contents);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     protected function getOptions()
147 147
     {
148 148
         return [
149
-            ['title', null, InputOption::VALUE_REQUIRED, 'Title for admin module.'],
149
+            [ 'title', null, InputOption::VALUE_REQUIRED, 'Title for admin module.' ],
150 150
         ];
151 151
     }
152 152
 }
Please login to merge, or discard this patch.
src/Commands/SectionMake.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     protected function getArguments()
83 83
     {
84 84
         $arguments = parent::getArguments();
85
-        $arguments[] = ['model', InputArgument::REQUIRED, 'The name of the model class'];
85
+        $arguments[ ] = [ 'model', InputArgument::REQUIRED, 'The name of the model class' ];
86 86
 
87 87
         return $arguments;
88 88
     }
Please login to merge, or discard this patch.
src/Auth/Administrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
      */
33 33
     public function setPasswordAttribute($value)
34 34
     {
35
-        if (! empty($value)) {
36
-            $this->attributes['password'] = bcrypt($value);
35
+        if (!empty($value)) {
36
+            $this->attributes[ 'password' ] = bcrypt($value);
37 37
         }
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Templates/TemplateDefault.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
             'Sortable',
20 20
         ]);
21 21
 
22
-        Meta::AddJs('adminScripts', route('admin.scripts'), ['libraries']);
22
+        Meta::AddJs('adminScripts', route('admin.scripts'), [ 'libraries' ]);
23 23
     }
24 24
 
25 25
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
64 64
      */
65
-    public function view($view, $data = [], $mergeData = [])
65
+    public function view($view, $data = [ ], $mergeData = [ ])
66 66
     {
67 67
         if ($view instanceof \Illuminate\View\View) {
68 68
             return $view->with($data);
Please login to merge, or discard this patch.
src/Contracts/TemplateInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,5 +23,5 @@
 block discarded – undo
23 23
      *
24 24
      * @return \BladeView|bool|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
25 25
      */
26
-    public function view($view, $data = [], $mergeData = []);
26
+    public function view($view, $data = [ ], $mergeData = [ ]);
27 27
 }
Please login to merge, or discard this patch.
src/Contracts/ModelConfigurationInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,14 +142,14 @@
 block discarded – undo
142 142
      *
143 143
      * @return string
144 144
      */
145
-    public function getDisplayUrl(array $parameters = []);
145
+    public function getDisplayUrl(array $parameters = [ ]);
146 146
 
147 147
     /**
148 148
      * @param array $parameters
149 149
      *
150 150
      * @return string
151 151
      */
152
-    public function getCreateUrl(array $parameters = []);
152
+    public function getCreateUrl(array $parameters = [ ]);
153 153
 
154 154
     /**
155 155
      * @return string
Please login to merge, or discard this patch.
src/Form/FormElement.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @var array
30 30
      */
31
-    protected $validationRules = [];
31
+    protected $validationRules = [ ];
32 32
 
33 33
     public function __construct()
34 34
     {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function getValidationMessages()
47 47
     {
48
-        return [];
48
+        return [ ];
49 49
     }
50 50
 
51 51
     /**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function getValidationLabels()
55 55
     {
56
-        return [];
56
+        return [ ];
57 57
     }
58 58
 
59 59
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function addValidationRule($rule, $message = null)
74 74
     {
75
-        $this->validationRules[] = $rule;
75
+        $this->validationRules[ ] = $rule;
76 76
 
77 77
         return $this;
78 78
     }
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function setValidationRules($validationRules)
86 86
     {
87
-        if (! is_array($validationRules)) {
87
+        if (!is_array($validationRules)) {
88 88
             $validationRules = func_get_args();
89 89
         }
90 90
 
91
-        $this->validationRules = [];
91
+        $this->validationRules = [ ];
92 92
         foreach ($validationRules as $rule) {
93
-            $this->validationRules[] = explode('|', $rule);
93
+            $this->validationRules[ ] = explode('|', $rule);
94 94
         }
95 95
 
96 96
         return $this;
Please login to merge, or discard this patch.
src/Form/FormPanel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function setItems($items)
42 42
     {
43
-        if (! is_array($items)) {
43
+        if (!is_array($items)) {
44 44
             $items = func_get_args();
45 45
         }
46 46
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function addHeader($items)
70 70
     {
71
-        if (! is_array($items)) {
71
+        if (!is_array($items)) {
72 72
             $items = func_get_args();
73 73
         }
74 74
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function addBody($items)
86 86
     {
87
-        if (! is_array($items)) {
87
+        if (!is_array($items)) {
88 88
             $items = func_get_args();
89 89
         }
90 90
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function addFooter($items)
106 106
     {
107
-        if (! is_array($items)) {
107
+        if (!is_array($items)) {
108 108
             $items = func_get_args();
109 109
         }
110 110
 
Please login to merge, or discard this patch.
src/Form/FormElements.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @param array $elements
23 23
      */
24
-    public function __construct(array $elements = [])
24
+    public function __construct(array $elements = [ ])
25 25
     {
26 26
         parent::__construct();
27 27
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         parent::initialize();
34 34
 
35
-        $this->getElements()->each(function ($element) {
35
+        $this->getElements()->each(function($element) {
36 36
             if ($element instanceof Initializable) {
37 37
                 $element->initialize();
38 38
             }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         parent::setModel($model);
82 82
 
83
-        $this->getElements()->each(function ($element) use ($model) {
83
+        $this->getElements()->each(function($element) use ($model) {
84 84
             if ($element instanceof FormElementInterface) {
85 85
                 $element->setModel($model);
86 86
             }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     {
97 97
         $rules = parent::getValidationRules();
98 98
 
99
-        $this->getElements()->each(function ($element) use (&$rules) {
99
+        $this->getElements()->each(function($element) use (&$rules) {
100 100
             if ($element instanceof FormElementInterface) {
101 101
                 $rules += $element->getValidationRules();
102 102
             }
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function getValidationMessages()
112 112
     {
113
-        $messages = [];
113
+        $messages = [ ];
114 114
 
115
-        $this->getElements()->each(function ($element) use (&$messages) {
115
+        $this->getElements()->each(function($element) use (&$messages) {
116 116
             if ($element instanceof NamedFormElement) {
117 117
                 $messages += $element->getValidationMessages();
118 118
             }
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function getValidationLabels()
128 128
     {
129
-        $labels = [];
129
+        $labels = [ ];
130 130
 
131
-        $this->getElements()->each(function ($element) use (&$labels) {
131
+        $this->getElements()->each(function($element) use (&$labels) {
132 132
             if ($element instanceof NamedFormElement) {
133 133
                 $labels += $element->getValidationLabels();
134 134
             }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     {
142 142
         parent::save();
143 143
 
144
-        $this->getElements()->each(function ($element) use (&$labels) {
144
+        $this->getElements()->each(function($element) use (&$labels) {
145 145
             if ($element instanceof FormElementInterface) {
146 146
                 $element->save();
147 147
             }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     {
153 153
         parent::afterSave();
154 154
 
155
-        $this->getElements()->each(function ($element) use (&$labels) {
155
+        $this->getElements()->each(function($element) use (&$labels) {
156 156
             if ($element instanceof FormElementInterface) {
157 157
                 $element->afterSave();
158 158
             }
Please login to merge, or discard this patch.