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 ( 9016b0...c1f61a )
by Cristian
06:37
created
src/app/Http/Controllers/SettingCrudController.php 1 patch
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -9,76 +9,76 @@
 block discarded – undo
9 9
 
10 10
 class SettingCrudController extends CrudController
11 11
 {
12
-    public function __construct()
13
-    {
14
-        parent::__construct();
12
+	public function __construct()
13
+	{
14
+		parent::__construct();
15 15
 
16
-        $this->crud->setModel("Backpack\Settings\app\Models\Setting");
17
-        $this->crud->setEntityNameStrings('setting', 'settings');
18
-        $this->crud->setRoute('admin/setting');
19
-        $this->crud->denyAccess(['create', 'delete']);
20
-        $this->crud->setColumns(['name', 'value', 'description']);
21
-        $this->crud->addField([
22
-                                'name'       => 'name',
23
-                                'label'      => 'Name',
24
-                                'type'       => 'text',
25
-                                'attributes' => [
26
-                                    'disabled' => 'disabled',
27
-                                    ]
28
-                            ]);
29
-    }
16
+		$this->crud->setModel("Backpack\Settings\app\Models\Setting");
17
+		$this->crud->setEntityNameStrings('setting', 'settings');
18
+		$this->crud->setRoute('admin/setting');
19
+		$this->crud->denyAccess(['create', 'delete']);
20
+		$this->crud->setColumns(['name', 'value', 'description']);
21
+		$this->crud->addField([
22
+								'name'       => 'name',
23
+								'label'      => 'Name',
24
+								'type'       => 'text',
25
+								'attributes' => [
26
+									'disabled' => 'disabled',
27
+									]
28
+							]);
29
+	}
30 30
 
31
-    /**
32
-     * Display all rows in the database for this entity.
33
-     * This overwrites the default CrudController behaviour:
34
-     * - instead of showing all entries, only show the "active" ones.
35
-     *
36
-     * @return Response
37
-     */
38
-    public function index()
39
-    {
40
-        // if view_table_permission is false, abort
41
-        $this->crud->hasAccessOrFail('list');
42
-        $this->crud->addClause('where', 'active', 1); // <---- this is where it's different from CrudController::index()
31
+	/**
32
+	 * Display all rows in the database for this entity.
33
+	 * This overwrites the default CrudController behaviour:
34
+	 * - instead of showing all entries, only show the "active" ones.
35
+	 *
36
+	 * @return Response
37
+	 */
38
+	public function index()
39
+	{
40
+		// if view_table_permission is false, abort
41
+		$this->crud->hasAccessOrFail('list');
42
+		$this->crud->addClause('where', 'active', 1); // <---- this is where it's different from CrudController::index()
43 43
 
44
-        $this->data['entries'] = $this->crud->getEntries();
45
-        $this->data['crud'] = $this->crud;
46
-        $this->data['title'] = ucfirst($this->crud->entity_name_plural);
44
+		$this->data['entries'] = $this->crud->getEntries();
45
+		$this->data['crud'] = $this->crud;
46
+		$this->data['title'] = ucfirst($this->crud->entity_name_plural);
47 47
 
48
-        // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
49
-        return view('crud::list', $this->data);
50
-    }
48
+		// load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
49
+		return view('crud::list', $this->data);
50
+	}
51 51
 
52
-    public function store(StoreRequest $request)
53
-    {
54
-        return parent::storeCrud();
55
-    }
52
+	public function store(StoreRequest $request)
53
+	{
54
+		return parent::storeCrud();
55
+	}
56 56
 
57
-    /**
58
-     * Show the form for editing the specified resource.
59
-     *
60
-     * @param int $id
61
-     *
62
-     * @return Response
63
-     */
64
-    public function edit($id)
65
-    {
66
-        $this->crud->hasAccessOrFail('update');
57
+	/**
58
+	 * Show the form for editing the specified resource.
59
+	 *
60
+	 * @param int $id
61
+	 *
62
+	 * @return Response
63
+	 */
64
+	public function edit($id)
65
+	{
66
+		$this->crud->hasAccessOrFail('update');
67 67
 
68
-        $this->data['entry'] = $this->crud->getEntry($id);
69
-        $this->crud->addField((array) json_decode($this->data['entry']->field)); // <---- this is where it's different
70
-        $this->data['crud'] = $this->crud;
71
-        $this->data['fields'] = $this->crud->getUpdateFields($id);
72
-        $this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name;
68
+		$this->data['entry'] = $this->crud->getEntry($id);
69
+		$this->crud->addField((array) json_decode($this->data['entry']->field)); // <---- this is where it's different
70
+		$this->data['crud'] = $this->crud;
71
+		$this->data['fields'] = $this->crud->getUpdateFields($id);
72
+		$this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name;
73 73
 
74
-        $this->data['id'] = $id;
74
+		$this->data['id'] = $id;
75 75
 
76
-        // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
77
-        return view('crud::edit', $this->data);
78
-    }
76
+		// load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
77
+		return view('crud::edit', $this->data);
78
+	}
79 79
 
80
-    public function update(UpdateRequest $request)
81
-    {
82
-        return parent::updateCrud();
83
-    }
80
+	public function update(UpdateRequest $request)
81
+	{
82
+		return parent::updateCrud();
83
+	}
84 84
 }
Please login to merge, or discard this patch.