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 (#331)
by
unknown
12:46 queued 06:25
created
src/Display/Column/Order.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     /**
86 86
      * Get instance move up url.
87
-     * @return Route
87
+     * @return string
88 88
      */
89 89
     protected function moveUpUrl()
90 90
     {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     /**
107 107
      * Get instance move down url.
108
-     * @return Route
108
+     * @return string
109 109
      */
110 110
     protected function moveDownUrl()
111 111
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         Route::post('{adminModel}/{adminModelId}/up', [
19 19
             'as' => 'admin.model.move-up',
20
-            function ($model, $id) {
20
+            function($model, $id) {
21 21
                 $instance = $model->getRepository()->find($id);
22 22
                 $instance->moveUp();
23 23
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         Route::post('{adminModel}/{adminModelId}/down', [
29 29
             'as' => 'admin.model.move-down',
30
-            function ($model, $id) {
30
+            function($model, $id) {
31 31
                 $instance = $model->getRepository()->find($id);
32 32
                 $instance->moveDown();
33 33
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function getModel()
50 50
     {
51
-        if (! in_array(OrderableModel::class, trait_uses_recursive($class = get_class($this->model)))) {
51
+        if (!in_array(OrderableModel::class, trait_uses_recursive($class = get_class($this->model)))) {
52 52
             throw new \Exception("Model [$class] should uses trait [SleepingOwl\\Admin\\Traits\\OrderableModel]");
53 53
         }
54 54
 
Please login to merge, or discard this patch.
src/Display/DisplayDatatablesAsync.php 3 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     }
123 123
 
124 124
     /**
125
-     * @param mixed $distinct
125
+     * @param string|null $distinct
126 126
      *
127 127
      * @return $this
128 128
      */
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     /**
166 166
      * Apply offset and limit to the query.
167 167
      *
168
-     * @param $query
168
+     * @param Builder $query
169 169
      */
170 170
     protected function applyOffset($query)
171 171
     {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     /**
183 183
      * Apply orders to the query.
184 184
      *
185
-     * @param $query
185
+     * @param Builder $query
186 186
      */
187 187
     protected function applyOrders($query)
188 188
     {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
     /**
248 248
      * Convert collection to the datatables structure.
249 249
      *
250
-     * @param array|Collection $collection
250
+     * @param Collection $collection
251 251
      * @param int $totalCount
252 252
      * @param int $filteredCount
253 253
      *
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Routing\Router;
6 6
 use Request;
7
-use Route;
8 7
 use Illuminate\Support\Collection;
9 8
 use Illuminate\Database\Eloquent\Builder;
10 9
 use SleepingOwl\Admin\Contracts\ModelConfigurationInterface;
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public static function registerRoutes(Router $router)
27 27
     {
28
-        $router->get('{adminModel}/async/{adminDisplayName?}', ['as' => 'admin.model.async',
29
-            function (ModelConfigurationInterface $model, $name = null) {
28
+        $router->get('{adminModel}/async/{adminDisplayName?}', [ 'as' => 'admin.model.async',
29
+            function(ModelConfigurationInterface $model, $name = null) {
30 30
                 $display = $model->fireDisplay();
31 31
                 if ($display instanceof DisplayTabbed) {
32 32
                     $display = static::findDatatablesAsyncByName($display, $name);
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $totalCount = $query->count();
160 160
         $filteredCount = 0;
161 161
 
162
-        if (! is_null($this->distinct)) {
162
+        if (!is_null($this->distinct)) {
163 163
             $filteredCount = $query->distinct()->count($this->getDistinct());
164 164
         }
165 165
 
@@ -202,11 +202,11 @@  discard block
 block discarded – undo
202 202
      */
203 203
     protected function applyOrders($query)
204 204
     {
205
-        $orders = Request::input('order', []);
205
+        $orders = Request::input('order', [ ]);
206 206
 
207 207
         foreach ($orders as $order) {
208
-            $columnIndex = $order['column'];
209
-            $orderDirection = $order['dir'];
208
+            $columnIndex = $order[ 'column' ];
209
+            $orderDirection = $order[ 'dir' ];
210 210
             $column = $this->getColumns()->all()->get($columnIndex);
211 211
 
212 212
             if ($column instanceof NamedColumn && $column->isOrderable()) {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
             return;
232 232
         }
233 233
 
234
-        $query->where(function ($query) use ($search) {
234
+        $query->where(function($query) use ($search) {
235 235
             $columns = $this->getColumns()->all();
236 236
             foreach ($columns as $column) {
237 237
                 if (in_array(get_class($column), $this->searchableColumns)) {
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      */
250 250
     protected function applyColumnSearch(Builder $query)
251 251
     {
252
-        $queryColumns = Request::input('columns', []);
252
+        $queryColumns = Request::input('columns', [ ]);
253 253
 
254 254
         foreach ($queryColumns as $index => $queryColumn) {
255 255
             $search = array_get($queryColumn, 'search.value');
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
             $column = $this->getColumns()->all()->get($index);
258 258
             $columnFilter = array_get($this->getColumnFilters()->all(), $index);
259 259
 
260
-            if (! is_null($columnFilter) && ! is_null($column)) {
260
+            if (!is_null($columnFilter) && !is_null($column)) {
261 261
                 $columnFilter->apply($this->repository, $column, $query, $search, $fullSearch);
262 262
             }
263 263
         }
@@ -276,26 +276,26 @@  discard block
 block discarded – undo
276 276
     {
277 277
         $columns = $this->getColumns();
278 278
 
279
-        $result = [];
280
-        $result['draw'] = Request::input('draw', 0);
281
-        $result['recordsTotal'] = $totalCount;
282
-        $result['recordsFiltered'] = $filteredCount;
283
-        $result['data'] = [];
279
+        $result = [ ];
280
+        $result[ 'draw' ] = Request::input('draw', 0);
281
+        $result[ 'recordsTotal' ] = $totalCount;
282
+        $result[ 'recordsFiltered' ] = $filteredCount;
283
+        $result[ 'data' ] = [ ];
284 284
 
285 285
         foreach ($collection as $instance) {
286
-            $_row = [];
286
+            $_row = [ ];
287 287
 
288 288
             foreach ($columns->all() as $column) {
289 289
                 $column->setModel($instance);
290 290
 
291
-                if($column instanceof Control) {
291
+                if ($column instanceof Control) {
292 292
                     $column->initialize();
293 293
                 }
294 294
 
295
-                $_row[] = (string) $column;
295
+                $_row[ ] = (string) $column;
296 296
             }
297 297
 
298
-            $result['data'][] = $_row;
298
+            $result[ 'data' ][ ] = $_row;
299 299
         }
300 300
 
301 301
         return $result;
Please login to merge, or discard this patch.
src/Display/Extension/ColumnFilters.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return Collection|\SleepingOwl\Admin\Contracts\ActionInterface[]
51
+     * @return ColumnFilterInterface[]
52 52
      */
53 53
     public function all()
54 54
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      * @var ColumnFilterInterface[]
17 17
      */
18
-    protected $columnFilters = [];
18
+    protected $columnFilters = [ ];
19 19
 
20 20
     /**
21 21
      * @var string|\Illuminate\View\View
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function set($columnFilters)
36 36
     {
37
-        if (! is_array($columnFilters)) {
37
+        if (!is_array($columnFilters)) {
38 38
             $columnFilters = func_get_args();
39 39
         }
40 40
 
41
-        $this->columnFilters = [];
41
+        $this->columnFilters = [ ];
42 42
 
43 43
         foreach ($columnFilters as $filter) {
44 44
             $this->push($filter);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function push(ColumnFilterInterface $filter = null)
64 64
     {
65
-        $this->columnFilters[] = $filter;
65
+        $this->columnFilters[ ] = $filter;
66 66
 
67 67
         return $this;
68 68
     }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             }
156 156
         }
157 157
 
158
-        if (! $this->hasHtmlAttribute('class')) {
158
+        if (!$this->hasHtmlAttribute('class')) {
159 159
             $this->setHtmlAttribute('class', 'panel-footer');
160 160
         }
161 161
     }
Please login to merge, or discard this patch.
src/Display/Extension/Scopes.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @param array|string $scopes
24 24
      *
25
-     * @return $this
25
+     * @return \SleepingOwl\Admin\Contracts\DisplayInterface
26 26
      */
27 27
     public function set($scopes)
28 28
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * @var string[]
11 11
      */
12
-    protected $scopes = [];
12
+    protected $scopes = [ ];
13 13
 
14 14
     /**
15 15
      * @return string[]
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function push($scope)
40 40
     {
41
-        if (! is_array($scope)) {
41
+        if (!is_array($scope)) {
42 42
             $scope = func_get_args();
43 43
         }
44 44
 
45
-        $this->scopes[] = $scope;
45
+        $this->scopes[ ] = $scope;
46 46
 
47 47
         return $this;
48 48
     }
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
     public function modifyQuery(Builder $query)
66 66
     {
67 67
         foreach ($this->scopes as $scope) {
68
-            if (! is_null($scope)) {
68
+            if (!is_null($scope)) {
69 69
                 if (is_array($scope)) {
70 70
                     $method = array_shift($scope);
71 71
                     $params = $scope;
72 72
                 } else {
73 73
                     $method = $scope;
74
-                    $params = [];
74
+                    $params = [ ];
75 75
                 }
76 76
 
77 77
                 call_user_func_array([
Please login to merge, or discard this patch.
src/Form/Columns/Column.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return string
51
+     * @return integer
52 52
      */
53 53
     public function getSize()
54 54
     {
Please login to merge, or discard this patch.
src/Traits/OrderableModel.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     /**
47 47
      * Move model in the $destination.
48 48
      *
49
-     * @param $destination -1 (move down) or 1 (move up)
49
+     * @param integer $destination -1 (move down) or 1 (move up)
50 50
      */
51 51
     protected function move($destination)
52 52
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@
 block discarded – undo
73 73
     protected function updateOrderFieldOnDelete()
74 74
     {
75 75
         static::orderModel()
76
-              ->where($this->getOrderField(), '>', $this->getOrderValue())
77
-              ->decrement($this->getOrderField());
76
+                ->where($this->getOrderField(), '>', $this->getOrderValue())
77
+                ->decrement($this->getOrderField());
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@
 block discarded – undo
9 9
      */
10 10
     protected static function bootOrderableModel()
11 11
     {
12
-        static::creating(function ($row) {
12
+        static::creating(function($row) {
13 13
             $row->updateOrderFieldOnCreate();
14 14
         });
15 15
 
16
-        static::deleted(function ($row) {
16
+        static::deleted(function($row) {
17 17
             $row->updateOrderFieldOnDelete();
18 18
         });
19 19
     }
Please login to merge, or discard this patch.
src/Wysiwyg/Manager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     /**
81 81
      * @param string $editorId
82 82
      *
83
-     * @return bool
83
+     * @return boolean|null
84 84
      */
85 85
     public function loadEditor($editorId)
86 86
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function register($editorId, WysiwygFilterInterface $filter = null, $name = null)
45 45
     {
46
-        $config = config('sleeping_owl.wysiwyg.'.$editorId, []);
46
+        $config = config('sleeping_owl.wysiwyg.'.$editorId, [ ]);
47 47
 
48 48
         $this->getFilters()->push(
49 49
             $editor = new Editor($editorId, $name, $filter, $config)
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function getEditor($editorId)
69 69
     {
70
-        return $this->getFilters()->filter(function (WysiwygEditorInterface $editor) use ($editorId) {
70
+        return $this->getFilters()->filter(function(WysiwygEditorInterface $editor) use ($editorId) {
71 71
             return $editor->getId() == $editorId;
72 72
         })->first();
73 73
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function loadEditor($editorId)
86 86
     {
87
-        if (! is_null($editor = $this->getEditor($editorId))) {
87
+        if (!is_null($editor = $this->getEditor($editorId))) {
88 88
             if ($editor->isUsed()) {
89 89
                 return true;
90 90
             }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function applyFilter($editorId, $text)
106 106
     {
107
-        if (! is_null($editor = $this->getEditor($editorId))) {
107
+        if (!is_null($editor = $this->getEditor($editorId))) {
108 108
             return $editor->applyFilter($text);
109 109
         }
110 110
 
Please login to merge, or discard this patch.
resources/lang/uk/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,6 +87,6 @@
 block discarded – undo
87 87
     |
88 88
     */
89 89
 
90
-    'attributes' => [],
90
+    'attributes' => [ ],
91 91
 
92 92
 ];
Please login to merge, or discard this patch.
resources/lang/es/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
     |
63 63
     */
64 64
 
65
-    'attributes'              => [],
65
+    'attributes'              => [ ],
66 66
 
67 67
 ];
Please login to merge, or discard this patch.