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
Pull Request — master (#3)
by Cristian
05:05 queued 02:27
created
src/app/Http/Controllers/SettingCrudController.php 2 patches
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -9,74 +9,74 @@
 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
-                                'disabled' => 'disabled',
26
-                            ]);
27
-    }
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
+								'disabled' => 'disabled',
26
+							]);
27
+	}
28 28
 
29
-    /**
30
-     * Display all rows in the database for this entity.
31
-     * This overwrites the default CrudController behaviour:
32
-     * - instead of showing all entries, only show the "active" ones.
33
-     *
34
-     * @return Response
35
-     */
36
-    public function index()
37
-    {
38
-        // if view_table_permission is false, abort
39
-        $this->crud->hasAccessOrFail('list');
40
-        $this->crud->addClause('where', 'active', 1); // <---- this is where it's different from CrudController::index()
29
+	/**
30
+	 * Display all rows in the database for this entity.
31
+	 * This overwrites the default CrudController behaviour:
32
+	 * - instead of showing all entries, only show the "active" ones.
33
+	 *
34
+	 * @return Response
35
+	 */
36
+	public function index()
37
+	{
38
+		// if view_table_permission is false, abort
39
+		$this->crud->hasAccessOrFail('list');
40
+		$this->crud->addClause('where', 'active', 1); // <---- this is where it's different from CrudController::index()
41 41
 
42
-        $this->data['entries'] = $this->crud->getEntries();
43
-        $this->data['crud'] = $this->crud;
44
-        $this->data['title'] = ucfirst($this->crud->entity_name_plural);
42
+		$this->data['entries'] = $this->crud->getEntries();
43
+		$this->data['crud'] = $this->crud;
44
+		$this->data['title'] = ucfirst($this->crud->entity_name_plural);
45 45
 
46
-        // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
47
-        return view('crud::list', $this->data);
48
-    }
46
+		// load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
47
+		return view('crud::list', $this->data);
48
+	}
49 49
 
50
-    public function store(StoreRequest $request)
51
-    {
52
-        return parent::storeCrud();
53
-    }
50
+	public function store(StoreRequest $request)
51
+	{
52
+		return parent::storeCrud();
53
+	}
54 54
 
55
-    /**
56
-     * Show the form for editing the specified resource.
57
-     *
58
-     * @param int $id
59
-     *
60
-     * @return Response
61
-     */
62
-    public function edit($id)
63
-    {
64
-        $this->crud->hasAccessOrFail('update');
55
+	/**
56
+	 * Show the form for editing the specified resource.
57
+	 *
58
+	 * @param int $id
59
+	 *
60
+	 * @return Response
61
+	 */
62
+	public function edit($id)
63
+	{
64
+		$this->crud->hasAccessOrFail('update');
65 65
 
66
-        $this->data['entry'] = $this->crud->getEntry($id);
67
-        $this->crud->addField((array) json_decode($this->data['entry']->field)); // <---- this is where it's different
68
-        $this->data['crud'] = $this->crud;
69
-        $this->data['fields'] = $this->crud->getUpdateFields($id);
70
-        $this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name;
66
+		$this->data['entry'] = $this->crud->getEntry($id);
67
+		$this->crud->addField((array) json_decode($this->data['entry']->field)); // <---- this is where it's different
68
+		$this->data['crud'] = $this->crud;
69
+		$this->data['fields'] = $this->crud->getUpdateFields($id);
70
+		$this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name;
71 71
 
72
-        $this->data['id'] = $id;
72
+		$this->data['id'] = $id;
73 73
 
74
-        // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
75
-        return view('crud::edit', $this->data);
76
-    }
74
+		// load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package
75
+		return view('crud::edit', $this->data);
76
+	}
77 77
 
78
-    public function update(UpdateRequest $request)
79
-    {
80
-        return parent::updateCrud();
81
-    }
78
+	public function update(UpdateRequest $request)
79
+	{
80
+		return parent::updateCrud();
81
+	}
82 82
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         $this->crud->hasAccessOrFail('update');
65 65
 
66 66
         $this->data['entry'] = $this->crud->getEntry($id);
67
-        $this->crud->addField((array) json_decode($this->data['entry']->field)); // <---- this is where it's different
67
+        $this->crud->addField((array)json_decode($this->data['entry']->field)); // <---- this is where it's different
68 68
         $this->data['crud'] = $this->crud;
69 69
         $this->data['fields'] = $this->crud->getUpdateFields($id);
70 70
         $this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name;
Please login to merge, or discard this patch.