We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -47,7 +47,7 @@ |
||
47 | 47 | $separator = $config['separator']; |
48 | 48 | $attribute = $attribute.'->'.$this->getLocale(); |
49 | 49 | |
50 | - return $query->where(function (Builder $q) use ($attribute, $slug, $separator) { |
|
50 | + return $query->where(function(Builder $q) use ($attribute, $slug, $separator) { |
|
51 | 51 | $q->where($attribute, '=', $slug) |
52 | 52 | ->orWhere($attribute, 'LIKE', $slug.$separator.'%'); |
53 | 53 | }); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function getAttributeValue($key) |
26 | 26 | { |
27 | - if (! $this->isTranslatableAttribute($key)) { |
|
27 | + if (!$this->isTranslatableAttribute($key)) { |
|
28 | 28 | return parent::getAttributeValue($key); |
29 | 29 | } |
30 | 30 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public function update(array $attributes = [], array $options = []) |
74 | 74 | { |
75 | - if (! $this->exists) { |
|
75 | + if (!$this->exists) { |
|
76 | 76 | return false; |
77 | 77 | } |
78 | 78 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $this->crud->hasAccessOrFail('revisions'); |
42 | 42 | |
43 | 43 | $revisionId = \Request::input('revision_id', false); |
44 | - if (! $revisionId) { |
|
44 | + if (!$revisionId) { |
|
45 | 45 | abort(500, 'Can\'t restore revision without revision_id'); |
46 | 46 | } else { |
47 | 47 | $this->crud->restoreRevision($id, $revisionId); // do the update |
@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | //for update form, get initial state of the entity |
27 | - if( isset($id) && $id ){ |
|
27 | + if (isset($id) && $id) { |
|
28 | 28 | |
29 | 29 | //get entity with relations for primary dependency |
30 | 30 | $entity_dependencies = $entity_model->with($primary_dependency['entity']) |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | public function tabsDisabled() |
31 | 31 | { |
32 | - return ! $this->tabsEnabled; |
|
32 | + return !$this->tabsEnabled; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | public function setTabsType($type) |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | { |
92 | 92 | $all_fields = $this->getCurrentFields(); |
93 | 93 | |
94 | - $fields_without_a_tab = collect($all_fields)->filter(function ($value, $key) { |
|
95 | - return ! isset($value['tab']); |
|
94 | + $fields_without_a_tab = collect($all_fields)->filter(function($value, $key) { |
|
95 | + return !isset($value['tab']); |
|
96 | 96 | }); |
97 | 97 | |
98 | 98 | return $fields_without_a_tab; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if ($this->tabExists($label)) { |
104 | 104 | $all_fields = $this->getCurrentFields(); |
105 | 105 | |
106 | - $fields_for_current_tab = collect($all_fields)->filter(function ($value, $key) use ($label) { |
|
106 | + $fields_for_current_tab = collect($all_fields)->filter(function($value, $key) use ($label) { |
|
107 | 107 | return isset($value['tab']) && $value['tab'] == $label; |
108 | 108 | }); |
109 | 109 | |
@@ -119,11 +119,11 @@ discard block |
||
119 | 119 | $fields = $this->getCurrentFields(); |
120 | 120 | |
121 | 121 | $fields_with_tabs = collect($fields) |
122 | - ->filter(function ($value, $key) { |
|
122 | + ->filter(function($value, $key) { |
|
123 | 123 | return isset($value['tab']); |
124 | 124 | }) |
125 | - ->each(function ($value, $key) use (&$tabs) { |
|
126 | - if (! in_array($value['tab'], $tabs)) { |
|
125 | + ->each(function($value, $key) use (&$tabs) { |
|
126 | + if (!in_array($value['tab'], $tabs)) { |
|
127 | 127 | $tabs[] = $value['tab']; |
128 | 128 | } |
129 | 129 | }); |
@@ -24,19 +24,19 @@ |
||
24 | 24 | if (isset($field['fake']) && $field['fake'] == true) { |
25 | 25 | // add it to the request in its appropriate variable - the one defined, if defined |
26 | 26 | if (isset($field['store_in'])) { |
27 | - if (! in_array($field['store_in'], $fakeFieldsColumnsArray, true)) { |
|
27 | + if (!in_array($field['store_in'], $fakeFieldsColumnsArray, true)) { |
|
28 | 28 | array_push($fakeFieldsColumnsArray, $field['store_in']); |
29 | 29 | } |
30 | 30 | } else { |
31 | 31 | //otherwise in the one defined in the $crud variable |
32 | - if (! in_array('extras', $fakeFieldsColumnsArray, true)) { |
|
32 | + if (!in_array('extras', $fakeFieldsColumnsArray, true)) { |
|
33 | 33 | array_push($fakeFieldsColumnsArray, 'extras'); |
34 | 34 | } |
35 | 35 | } |
36 | 36 | } |
37 | 37 | } |
38 | 38 | |
39 | - if (! count($fakeFieldsColumnsArray)) { |
|
39 | + if (!count($fakeFieldsColumnsArray)) { |
|
40 | 40 | $fakeFieldsColumnsArray = ['extras']; |
41 | 41 | } |
42 | 42 |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function removeButton($name, $stack = null) |
96 | 96 | { |
97 | - $this->buttons = $this->buttons->reject(function ($button) use ($name, $stack) { |
|
97 | + $this->buttons = $this->buttons->reject(function($button) use ($name, $stack) { |
|
98 | 98 | return $stack == null ? $button->name == $name : ($button->stack == $stack) && ($button->name == $name); |
99 | 99 | }); |
100 | 100 | } |
@@ -106,14 +106,14 @@ discard block |
||
106 | 106 | |
107 | 107 | public function removeAllButtonsFromStack($stack) |
108 | 108 | { |
109 | - $this->buttons = $this->buttons->reject(function ($button) use ($stack) { |
|
109 | + $this->buttons = $this->buttons->reject(function($button) use ($stack) { |
|
110 | 110 | return $button->stack == $stack; |
111 | 111 | }); |
112 | 112 | } |
113 | 113 | |
114 | 114 | public function removeButtonFromStack($name, $stack) |
115 | 115 | { |
116 | - $this->buttons = $this->buttons->reject(function ($button) use ($name, $stack) { |
|
116 | + $this->buttons = $this->buttons->reject(function($button) use ($name, $stack) { |
|
117 | 117 | return $button->name == $name && $button->stack == $stack; |
118 | 118 | }); |
119 | 119 | } |
@@ -13,13 +13,13 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('roles', function (Blueprint $table) { |
|
16 | + Schema::create('roles', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name')->unique(); |
19 | 19 | $table->timestamps(); |
20 | 20 | }); |
21 | 21 | |
22 | - Schema::create('user_role', function (Blueprint $table) { |
|
22 | + Schema::create('user_role', function(Blueprint $table) { |
|
23 | 23 | $table->integer('user_id')->length(10)->unsigned(); |
24 | 24 | $table->integer('role_id')->length(10)->unsigned(); |
25 | 25 | $table->timestamps(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('addresses', function (Blueprint $table) { |
|
16 | + Schema::create('addresses', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('account_details_id')->length(10)->unsigned(); |
19 | 19 | $table->string('city'); |