Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 3195c5...0b5ddf )
by Cristian
02:56
created
src/CrudServiceProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Backpack\CRUD;
3 3
 
4 4
 use Illuminate\Support\ServiceProvider;
5
-use Illuminate\Routing\Router;
6 5
 use Route;
7 6
 
8 7
 class CrudServiceProvider extends ServiceProvider
Please login to merge, or discard this patch.
src/app/Http/Controllers/CrudController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
 	 * Remove the specified resource from storage.
162 162
 	 *
163 163
 	 * @param  int  $id
164
-	 * @return string
164
+	 * @return \Illuminate\Http\Response
165 165
 	 */
166 166
 	public function destroy($id)
167 167
 	{
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,16 +3,12 @@
 block discarded – undo
3 3
 use Illuminate\Foundation\Bus\DispatchesJobs;
4 4
 use Illuminate\Routing\Controller as BaseController;
5 5
 use Illuminate\Foundation\Validation\ValidatesRequests;
6
-use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
7
-use Illuminate\Support\Facades\Form as Form;
8 6
 use Illuminate\Http\Request;
9 7
 use Backpack\CRUD\Crud;
10
-use Crypt;
11 8
 use Alert;
12 9
 
13 10
 
14 11
 // VALIDATION: change the requests to match your own file names if you need form validation
15
-use Backpack\CRUD\app\Http\Requests\CrudRequest as StoreRequest;
16 12
 use Backpack\CRUD\app\Http\Requests\CrudRequest as UpdateRequest;
17 13
 
18 14
 class CrudController extends BaseController {
Please login to merge, or discard this patch.
src/app/Http/Controllers/ExampleCrudController.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -1,12 +1,8 @@
 block discarded – undo
1 1
 <?php namespace App\Http\Controllers\Admin;
2 2
 
3
-use App\Http\Requests;
4
-use App\Http\Controllers\Controller;
5 3
 use Backpack\CRUD\app\Http\Controllers\CrudController;
6
-use Illuminate\Http\Request;
7 4
 
8 5
 // VALIDATION: change the requests to match your own file names if you need form validation
9
-use Backpack\CRUD\app\Http\Requests\CrudRequest as StoreRequest;
10 6
 use Backpack\CRUD\app\Http\Requests\CrudRequest as UpdateRequest;
11 7
 
12 8
 class ExampleCrudController extends CrudController {
Please login to merge, or discard this patch.
src/app/Http/Controllers/ToneCrudNestedController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * Store a newly created resource in storage.
55 55
      *
56 56
      * @param  \Illuminate\Http\Request  $request
57
-     * @return \Illuminate\Http\Response
57
+     * @return \Illuminate\Http\RedirectResponse
58 58
      */
59 59
     public function crudStore(Request $request = null)
60 60
     {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @param  \Illuminate\Http\Request  $request
103 103
      * @param  int  $id
104
-     * @return \Illuminate\Http\Response
104
+     * @return \Illuminate\Http\RedirectResponse
105 105
      */
106 106
     public function crudUpdate($parentId, $id, Request $request = null)
107 107
     {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,10 +4,7 @@
 block discarded – undo
4 4
  */
5 5
 namespace Backpack\Crud\Http\Controllers;
6 6
 
7
-use Illuminate\Foundation\Bus\DispatchesJobs;
8 7
 use Illuminate\Routing\Controller as BaseController;
9
-use Illuminate\Foundation\Validation\ValidatesRequests;
10
-use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
11 8
 use Backpack\Crud\Crud;
12 9
 
13 10
 /**
Please login to merge, or discard this patch.
src/CrudTrait.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,6 @@
 block discarded – undo
1 1
 <?php namespace Backpack\CRUD;
2 2
 
3
-use Illuminate\Database\Eloquent\Collection;
4
-use Illuminate\Database\Eloquent\Model;
5 3
 use DB;
6
-use Lang;
7 4
 
8 5
 trait CrudTrait {
9 6
 
Please login to merge, or discard this patch.
src/app/Http/Controllers/ToneCrudController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,10 +4,7 @@
 block discarded – undo
4 4
  */
5 5
 namespace Backpack\Crud\Http\Controllers;
6 6
 
7
-use Illuminate\Foundation\Bus\DispatchesJobs;
8 7
 use Illuminate\Routing\Controller as BaseController;
9
-use Illuminate\Foundation\Validation\ValidatesRequests;
10
-use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
11 8
 use Backpack\Crud\Crud;
12 9
 
13 10
 /**
Please login to merge, or discard this patch.
src/Crud.php 1 patch
Doc Comments   +21 added lines, -4 removed lines patch added patch discarded remove patch
@@ -334,6 +334,7 @@  discard block
 block discarded – undo
334 334
      * Delete a row from the database.
335 335
      *
336 336
      * @param  [int] The id of the item to be deleted.
337
+     * @param integer $id
337 338
      * @return [bool] Deletion confirmation.
338 339
      *
339 340
      * TODO: should this delete items with relations to it too?
@@ -452,7 +453,8 @@  discard block
 block discarded – undo
452 453
      * Check if a permission is enabled for a Crud Panel. Fail if not.
453 454
      *
454 455
      * @param  [string] Permission.
455
-     * @return boolean
456
+     * @param string $permission
457
+     * @return boolean|null
456 458
      */
457 459
     public function hasAccessOrFail($permission)
458 460
     {
@@ -481,6 +483,7 @@  discard block
 block discarded – undo
481 483
      * All Create-Read-Update-Delete operations are done using that Eloquent Collection.
482 484
      *
483 485
      * @param [string] Full model namespace. Ex: App\Models\Article
486
+     * @param string $model_namespace
484 487
      */
485 488
     public function setModel($model_namespace)
486 489
     {
@@ -508,6 +511,7 @@  discard block
 block discarded – undo
508 511
      *
509 512
      * @param [string] Route name.
510 513
      * @param [array] Parameters.
514
+     * @param string $route
511 515
      */
512 516
     public function setRoute($route)
513 517
     {
@@ -540,7 +544,7 @@  discard block
 block discarded – undo
540 544
      * - $this->crud->setRouteName('admin.article')
541 545
      * - $this->crud->route = "admin/article"
542 546
      *
543
-     * @return [string]
547
+     * @return string
544 548
      */
545 549
     public function getRoute()
546 550
     {
@@ -553,6 +557,8 @@  discard block
 block discarded – undo
553 557
      *
554 558
      * @param [string] Entity name, in singular. Ex: article
555 559
      * @param [string] Entity name, in plural. Ex: articles
560
+     * @param string $singular
561
+     * @param string $plural
556 562
      */
557 563
     public function setEntityNameStrings($singular, $plural) {
558 564
         $this->entity_name = $singular;
@@ -731,8 +737,6 @@  discard block
 block discarded – undo
731 737
 
732 738
     /**
733 739
      * Add a field to the create/update form or both.
734
-     * @param [string] $name    Field name (the column name in the db in most cases)
735
-     * @param [array] $options Field-type-specific information.
736 740
      * @param string $form    The form to add the field to (create/update/both)
737 741
      */
738 742
     public function addField($field, $form='both')
@@ -1374,6 +1378,9 @@  discard block
 block discarded – undo
1374 1378
     //     return array_filter($this->{$entity}[] = $this->syncField($field));
1375 1379
     // }
1376 1380
 
1381
+    /**
1382
+     * @param string $entity
1383
+     */
1377 1384
     public function addMultiple($entity, $field)
1378 1385
     {
1379 1386
         $this->{$entity} = array_filter(array_map([$this, 'syncField'], $fields));
@@ -1398,11 +1405,17 @@  discard block
 block discarded – undo
1398 1405
     //     return array_values(array_filter($this->{$entity}, function($field) use ($fields) { return !in_array($field['name'], (array)$fields);}));
1399 1406
     // }
1400 1407
 
1408
+    /**
1409
+     * @param string $items
1410
+     */
1401 1411
     public function setSort($items, $order)
1402 1412
     {
1403 1413
         $this->sort[$items] = $order;
1404 1414
     }
1405 1415
 
1416
+    /**
1417
+     * @param string $items
1418
+     */
1406 1419
     public function sort($items)
1407 1420
     {
1408 1421
         if (array_key_exists($items, $this->sort))
@@ -1438,6 +1451,10 @@  discard block
 block discarded – undo
1438 1451
     }
1439 1452
 
1440 1453
     // face un fel de merge intre ce ii dai si ce e in CRUD
1454
+
1455
+    /**
1456
+     * @param string $entity
1457
+     */
1441 1458
     public function syncRelations($entity)
1442 1459
     {
1443 1460
         foreach ($this->relations as $field => $relation) {
Please login to merge, or discard this patch.