We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -15,7 +15,7 @@ |
||
15 | 15 | // uncomment the next statement to map strings to enum types in doctrine and get over the 'Unknown database type enum' DBAL error |
16 | 16 | // Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string'); |
17 | 17 | |
18 | - Schema::create('column_types', function ($table) { |
|
18 | + Schema::create('column_types', function($table) { |
|
19 | 19 | $table->bigInteger('bigIntegerCol'); |
20 | 20 | $table->binary('binaryCol'); |
21 | 21 | $table->boolean('booleanCol'); |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\Tests\Unit\CrudPanel; |
4 | 4 | |
5 | -use Illuminate\Database\Eloquent\Builder; |
|
6 | 5 | use Backpack\CRUD\Tests\Unit\Models\TestModel; |
6 | +use Illuminate\Database\Eloquent\Builder; |
|
7 | 7 | |
8 | 8 | class CrudPanelTest extends BaseCrudPanelTest |
9 | 9 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\Tests\Unit\CrudPanel; |
4 | 4 | |
5 | -use Faker\Factory; |
|
6 | -use Illuminate\Support\Facades\DB; |
|
7 | 5 | use Backpack\CRUD\Tests\Unit\Models\User; |
6 | +use Faker\Factory; |
|
8 | 7 | use Illuminate\Database\Eloquent\ModelNotFoundException; |
8 | +use Illuminate\Support\Facades\DB; |
|
9 | 9 | |
10 | 10 | class CrudPanelUpdateTest extends BaseDBCrudPanelTest |
11 | 11 | { |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | - return [ |
|
16 | + return [ |
|
17 | 17 | 'infoFiltered' => '(filtered from _MAX_ total entries)', |
18 | 18 | 'thousands' => ',', |
19 | 19 | 'admin' => 'المشرف', |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * Check if the application is running in normal conditions |
11 | 11 | * (production env, not in console, not in unit tests). |
12 | 12 | * |
13 | - * @return void |
|
13 | + * @return boolean |
|
14 | 14 | */ |
15 | 15 | private function runningInProduction() |
16 | 16 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @param string $method HTTP Method to use for the request. |
87 | 87 | * @param string $url URL to point the request at. |
88 | 88 | * @param array $payload The data you want sent to the URL. |
89 | - * @return void |
|
89 | + * @return boolean |
|
90 | 90 | */ |
91 | 91 | private function makeCurlRequest($method, $url, $payload) |
92 | 92 | { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | private function sendUsageStats() |
39 | 39 | { |
40 | 40 | // only send usage stats in production |
41 | - if (! $this->runningInProduction()) { |
|
41 | + if (!$this->runningInProduction()) { |
|
42 | 42 | return; |
43 | 43 | } |
44 | 44 |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\Tests\Unit\CrudPanel; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\DB; |
|
6 | 5 | use Backpack\CRUD\Tests\Unit\Models\Article; |
6 | +use Illuminate\Support\Facades\DB; |
|
7 | 7 | |
8 | 8 | class CrudPanelTabsTest extends BaseDBCrudPanelTest |
9 | 9 | { |
@@ -24,7 +24,6 @@ |
||
24 | 24 | /** |
25 | 25 | * Create duplicates of multiple entries in the datatabase. |
26 | 26 | * |
27 | - * @param int $id |
|
28 | 27 | * |
29 | 28 | * @return Response |
30 | 29 | */ |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $this->crud->allowAccess('bulkClone'); |
31 | 31 | |
32 | - $this->crud->operation('list', function () { |
|
32 | + $this->crud->operation('list', function() { |
|
33 | 33 | $this->crud->enableBulkActions(); |
34 | 34 | $this->crud->addButton('bottom', 'bulk_clone', 'view', 'crud::buttons.bulk_clone', 'beginning'); |
35 | 35 | }); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * |
27 | 27 | * @param int $id |
28 | 28 | * |
29 | - * @return Response |
|
29 | + * @return string |
|
30 | 30 | */ |
31 | 31 | public function clone($id) |
32 | 32 | { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $this->crud->allowAccess('clone'); |
31 | 31 | |
32 | - $this->crud->operation(['list', 'show'], function () { |
|
32 | + $this->crud->operation(['list', 'show'], function() { |
|
33 | 33 | $this->crud->addButton('line', 'clone', 'view', 'crud::buttons.clone', 'end'); |
34 | 34 | }); |
35 | 35 | } |
@@ -9,7 +9,6 @@ |
||
9 | 9 | /** |
10 | 10 | * Define which routes are needed for this operation. |
11 | 11 | * |
12 | - * @param string $name Name of the current entity (singular). Used as first URL segment. |
|
13 | 12 | * @param string $routeName Prefix of the route name. |
14 | 13 | * @param string $controller Name of the current CrudController. |
15 | 14 | */ |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $this->crud->set('reorder.enabled', true); |
37 | 37 | $this->crud->allowAccess('reorder'); |
38 | 38 | |
39 | - $this->crud->operation('list', function () { |
|
39 | + $this->crud->operation('list', function() { |
|
40 | 40 | $this->crud->addButton('top', 'reorder', 'view', 'crud::buttons.reorder'); |
41 | 41 | }); |
42 | 42 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $this->crud->applyConfigurationFromSettings('reorder'); |
54 | 54 | $this->crud->hasAccessOrFail('reorder'); |
55 | 55 | |
56 | - if (! $this->crud->isReorderEnabled()) { |
|
56 | + if (!$this->crud->isReorderEnabled()) { |
|
57 | 57 | abort(403, 'Reorder is disabled.'); |
58 | 58 | } |
59 | 59 |