Skip to content

Commit ee9dd54

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 751c7e8 commit ee9dd54

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

src/app/Http/Controllers/CrudController.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function __construct()
4040
$this->setupDefaults();
4141
$this->setup();
4242
$this->setupConfigurationForCurrentOperation();
43+
4344
return $next($request);
4445
});
4546
}
@@ -95,7 +96,7 @@ protected function setupDefaults()
9596
protected function setupConfigurationForCurrentOperation()
9697
{
9798
$operationName = $this->crud->getCurrentOperation();
98-
99+
99100
$setupClassName = 'setup'.Str::studly($operationName).'Operation';
100101

101102
/*
@@ -109,7 +110,7 @@ protected function setupConfigurationForCurrentOperation()
109110
* write is done after the default, so you can remove default settings, etc;
110111
*/
111112
$this->crud->applyConfigurationFromSettings($operationName);
112-
113+
113114
/*
114115
* THEN, run the corresponding setupXxxOperation if it exists.
115116
*/

src/app/Library/CrudPanel/CrudPanel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function getFirstOfItsTypeInArray($type, $array)
309309
}
310310

311311
/**
312-
* TONE FUNCTIONS - UNDOCUMENTED, UNTESTED, SOME MAY BE USED IN THIS FILE
312+
* TONE FUNCTIONS - UNDOCUMENTED, UNTESTED, SOME MAY BE USED IN THIS FILE.
313313
*
314314
* TODO:
315315
* - figure out if they are really needed

tests/Unit/CrudPanel/CrudPanelSaveActionsTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -167,21 +167,21 @@ public function testItCanHideSaveActions()
167167

168168
public function testItCanGetSaveActionFromSession()
169169
{
170-
$this->crudPanel->allowAccess(['create','update','list']);
170+
$this->crudPanel->allowAccess(['create', 'update', 'list']);
171171
$this->crudPanel->addSaveAction($this->singleSaveAction);
172172
$this->crudPanel->setupDefaultSaveActions();
173173
$saveActions = $this->crudPanel->getSaveAction();
174-
174+
175175
$expected = [
176176
'active' => [
177177
'value' => 'save_action_one',
178-
'label' => 'custom'
178+
'label' => 'custom',
179179
],
180180
'options' => [
181181
'save_and_back' => 'Save and back',
182182
'save_and_edit' => 'Save and edit this item',
183-
'save_and_new' => 'Save and new item'
184-
]
183+
'save_and_new' => 'Save and new item',
184+
],
185185
];
186186
$this->assertEquals($expected, $saveActions);
187187
}

tests/Unit/CrudPanel/ViewNamespacesTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testGetWithFallbackFromConfigViewNamespace()
3232
}
3333

3434
public function testItCanGetTheViewPathsForGivenElement()
35-
{
35+
{
3636
ViewNamespaces::addFor('fields', ['crud::fields', 'pro::fields']);
3737
$viewPaths = ViewNamespaces::getViewPathsFor('fields', 'test');
3838
$this->assertCount(2, $viewPaths);

tests/Unit/Http/Controllers/UserCrudController.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class UserCrudController extends CrudController
1212
use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation;
1313

1414
public function setup()
15-
{
15+
{
1616
$this->crud->setModel(User::class);
1717
$this->crud->setRoute('users');
1818
}
1919

20-
public function setupUpdateOperation() {
21-
20+
public function setupUpdateOperation()
21+
{
2222
}
2323
}

0 commit comments

Comments
 (0)