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 ( b2510c...ee0bb8 )
by
unknown
12:46
created
src/Console/Commands/UpdateCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
         collect([
25 25
             Installation\PublishAssets::class,
26 26
         ])
27
-            ->map(function ($installer) {
27
+            ->map(function($installer) {
28 28
                 return new $installer($this, $this->config);
29 29
             })
30
-            ->filter(function ($installer) {
31
-                return $this->hasOption('force') ? true : ! $installer->installed();
32
-            })->each(function ($installer) {
30
+            ->filter(function($installer) {
31
+                return $this->hasOption('force') ? true : !$installer->installed();
32
+            })->each(function($installer) {
33 33
                 $installer->install();
34 34
                 $installer->showInfo();
35 35
             });
Please login to merge, or discard this patch.
resources/views/default/form/tabbed.blade.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 			<?php $active = null; ?>
9 9
 			@foreach ($items as $label => $_tmp)
10 10
 				<?php
11
-					if (is_null($active)) {
12
-						$active = $label;
13
-					}
14
-				?>
11
+                    if (is_null($active)) {
12
+                        $active = $label;
13
+                    }
14
+                ?>
15 15
 				<li role="presentation" {!! ($active == $label) ? 'class="active"' : '' !!}>
16 16
 					<a href="#{{ md5($label) }}" aria-controls="{{ md5($label) }}" role="tab" data-toggle="tab">{{ $label }}</a>
17 17
 				</li>
Please login to merge, or discard this patch.
src/Display/Tree/NestedsetType.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @param $root
68 68
      * @param $parentId
69
-     * @param $left
69
+     * @param integer $left
70 70
      *
71
-     * @return mixed
71
+     * @return integer
72 72
      */
73 73
     protected function recursiveReorder($root, $parentId, $left)
74 74
     {
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @param $id
90 90
      * @param $parentId
91
-     * @param $left
92
-     * @param $right
91
+     * @param integer $left
92
+     * @param integer $right
93 93
      */
94 94
     protected function move($id, $parentId, $left, $right)
95 95
     {
Please login to merge, or discard this patch.
src/Form/Element/SelectAjax.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         parent::__construct($path, $label);
25 25
 
26
-        $this->setLoadOptionsQueryPreparer(function ($item, $query) {
26
+        $this->setLoadOptionsQueryPreparer(function($item, $query) {
27 27
             $repository = app(RepositoryInterface::class);
28 28
             $repository->setModel($this->getModelForOptions());
29 29
             $key = $repository->getModel()->getKeyName();
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $routeName = 'admin.form.element.'.static::$route;
41 41
 
42
-        if (! $router->has($routeName)) {
42
+        if (!$router->has($routeName)) {
43 43
             $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [
44 44
                 'as'   => $routeName,
45 45
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\FormElementController@selectSearch',
Please login to merge, or discard this patch.
src/Form/Element/File.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $routeName = 'admin.form.element.'.static::$route;
29 29
 
30
-        if (! $router->has($routeName)) {
30
+        if (!$router->has($routeName)) {
31 31
             $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [
32 32
                 'as'   => $routeName,
33 33
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@fromField',
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function getUploadPath(UploadedFile $file)
129 129
     {
130
-        if (! is_callable($this->uploadPath)) {
130
+        if (!is_callable($this->uploadPath)) {
131 131
             return $this->defaultUploadPath($file);
132 132
         }
133 133
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function getUploadFileName(UploadedFile $file)
155 155
     {
156
-        if (! is_callable($this->uploadFileName)) {
156
+        if (!is_callable($this->uploadFileName)) {
157 157
             return $this->defaultUploadFilename($file);
158 158
         }
159 159
 
Please login to merge, or discard this patch.
src/Routing/ModelRouter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     protected function registerModelBindings(Collection $aliases)
60 60
     {
61
-        $this->router->bind('adminModel', function ($model, Route $route) use ($aliases) {
61
+        $this->router->bind('adminModel', function($model, Route $route) use ($aliases) {
62 62
             if (is_null($model = $aliases->get($model))) {
63 63
                 throw new ModelNotFoundException();
64 64
             }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     protected function runCustomController(Route $route, $controller, $action)
81 81
     {
82
-        $route->uses(function () use ($route, $controller, $action) {
82
+        $route->uses(function() use ($route, $controller, $action) {
83 83
             return (new \Illuminate\Routing\ControllerDispatcher($this->app))->dispatch(
84 84
                 $route, $this->app->make($controller), $action
85 85
             );
Please login to merge, or discard this patch.
src/Repositories/BaseRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function setClass($class)
58 58
     {
59
-        if (! class_exists($class)) {
59
+        if (!class_exists($class)) {
60 60
             throw new RepositoryException("Class {$class} not found.");
61 61
         }
62 62
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function with($with)
105 105
     {
106
-        if (! is_array($with)) {
106
+        if (!is_array($with)) {
107 107
             $with = func_get_args();
108 108
         }
109 109
 
Please login to merge, or discard this patch.
src/Repositories/TreeRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function __construct($treeType = null)
42 42
     {
43
-        if (! is_null($treeType)) {
43
+        if (!is_null($treeType)) {
44 44
             $this->setTreeType($treeType);
45 45
         }
46 46
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $this->treeType = new $treeType($this);
56 56
 
57
-        if (! ($this->treeType instanceof TreeTypeInterface)) {
57
+        if (!($this->treeType instanceof TreeTypeInterface)) {
58 58
             throw new DisplayTreeException('Tree type class must be instanced of [SleepingOwl\Admin\Contracts\Display\Tree\TreeTypeInterface]');
59 59
         }
60 60
     }
Please login to merge, or discard this patch.
src/Http/Controllers/FormElementController.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function dependentSelect(Request $request, ModelConfigurationInterface $model, $field, $id = null)
22 22
     {
23
-        if (! is_null($id)) {
23
+        if (!is_null($id)) {
24 24
             $item = $model->getRepository()->find($id);
25
-            if (is_null($item) || ! $model->isEditable($item)) {
25
+            if (is_null($item) || !$model->isEditable($item)) {
26 26
                 return new JsonResponse([
27 27
                     'message' => trans('lang.message.access_denied'),
28 28
                 ], 403);
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
             $form = $model->fireEdit($id);
32 32
         } else {
33
-            if (! $model->isCreatable()) {
33
+            if (!$model->isCreatable()) {
34 34
                 return new JsonResponse([
35 35
                     'message' => trans('lang.message.access_denied'),
36 36
                 ], 403);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         }
58 58
 
59 59
         return new JsonResponse([
60
-            'output' => collect($options)->map(function ($value, $key) {
60
+            'output' => collect($options)->map(function($value, $key) {
61 61
                 return ['id' => $key, 'name' => $value];
62 62
             }),
63 63
             'selected' => $element->getValueFromModel(),
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function multiselectSearch(Request $request, ModelConfigurationInterface $model, $field, $id = null)
76 76
     {
77
-        if (! is_null($id)) {
77
+        if (!is_null($id)) {
78 78
             $item = $model->getRepository()->find($id);
79
-            if (is_null($item) || ! $model->isEditable($item)) {
79
+            if (is_null($item) || !$model->isEditable($item)) {
80 80
                 return new JsonResponse([
81 81
                     'message' => trans('lang.message.access_denied'),
82 82
                 ], 403);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
             $form = $model->fireEdit($id);
86 86
         } else {
87
-            if (! $model->isCreatable()) {
87
+            if (!$model->isCreatable()) {
88 88
                 return new JsonResponse([
89 89
                     'message' => trans('lang.message.access_denied'),
90 90
                 ], 403);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             return new JsonResponse(
108 108
                 $model::where($request->field, 'like', "%{$request->q}%")
109 109
                     ->get()
110
-                    ->map(function ($item) use ($field) {
110
+                    ->map(function($item) use ($field) {
111 111
                         return [
112 112
                             'tag_name'    => $item->{$field},
113 113
                             'id'          => $item->id,
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
      */
129 129
     public function selectSearch(Request $request, ModelConfigurationInterface $model, $field, $id = null)
130 130
     {
131
-        if (! is_null($id)) {
131
+        if (!is_null($id)) {
132 132
             $item = $model->getRepository()->find($id);
133
-            if (is_null($item) || ! $model->isEditable($item)) {
133
+            if (is_null($item) || !$model->isEditable($item)) {
134 134
                 return new JsonResponse([
135 135
                     'message' => trans('lang.message.access_denied'),
136 136
                 ], 403);
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
             $form = $model->fireEdit($id);
140 140
         } else {
141
-            if (! $model->isCreatable()) {
141
+            if (!$model->isCreatable()) {
142 142
                 return new JsonResponse([
143 143
                     'message' => trans('lang.message.access_denied'),
144 144
                 ], 403);
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
             return new JsonResponse(
162 162
                 $model::where($request->field, 'like', "%{$request->q}%")
163 163
                     ->get()
164
-                    ->map(function ($item) use ($field) {
164
+                    ->map(function($item) use ($field) {
165 165
                         return [
166 166
                             'tag_name'    => $item->{$field},
167 167
                             'id'          => $item->id,
Please login to merge, or discard this patch.