We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | if (in_array($fieldName, array_column($relations, 'name'))) { |
26 | - return array_filter($relations, function ($arr) use ($fieldName) { |
|
26 | + return array_filter($relations, function($arr) use ($fieldName) { |
|
27 | 27 | if (isset($arr['name'])) { |
28 | 28 | return $arr['name'] == $fieldName; |
29 | 29 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public function inferFieldAttributesFromRelationship($method) |
74 | 74 | { |
75 | - if (! method_exists($this->model, $method)) { |
|
75 | + if (!method_exists($this->model, $method)) { |
|
76 | 76 | return false; |
77 | 77 | } |
78 | 78 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | return ['name' => $field]; |
40 | 40 | } |
41 | 41 | |
42 | - if (is_array($field) && ! isset($field['name'])) { |
|
42 | + if (is_array($field) && !isset($field['name'])) { |
|
43 | 43 | abort(500, 'All fields must have their name defined'); |
44 | 44 | } |
45 | 45 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | protected function makeSureFieldHasRelationshipData($field) |
93 | 93 | { |
94 | 94 | // only do this if "entity" is defined on the field |
95 | - if (! isset($field['entity'])) { |
|
95 | + if (!isset($field['entity'])) { |
|
96 | 96 | return $field; |
97 | 97 | } |
98 | 98 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | // if this is a relation type field and no corresponding model was specified, |
113 | 113 | // get it from the relation method defined in the main model |
114 | - if (isset($field['entity']) && ! isset($field['model'])) { |
|
114 | + if (isset($field['entity']) && !isset($field['model'])) { |
|
115 | 115 | $field['model'] = $this->getRelationModel($field['entity']); |
116 | 116 | } |
117 | 117 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | */ |
128 | 128 | protected function makeSureFieldHasLabel($field) |
129 | 129 | { |
130 | - if (! isset($field['label'])) { |
|
130 | + if (!isset($field['label'])) { |
|
131 | 131 | $name = is_array($field['name']) ? $field['name'][0] : $field['name']; |
132 | 132 | $name = str_replace('_id', '', $name); |
133 | 133 | $field['label'] = mb_ucfirst(str_replace('_', ' ', $name)); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | */ |
146 | 146 | protected function makeSureFieldHasType($field) |
147 | 147 | { |
148 | - if (! isset($field['type'])) { |
|
148 | + if (!isset($field['type'])) { |
|
149 | 149 | $field['type'] = $this->inferFieldTypeFromDbColumnType($field['name']); |
150 | 150 | } |
151 | 151 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | { |
163 | 163 | // if a tab was mentioned, we should enable it |
164 | 164 | if (isset($field['tab'])) { |
165 | - if (! $this->tabsEnabled()) { |
|
165 | + if (!$this->tabsEnabled()) { |
|
166 | 166 | $this->enableTabs(); |
167 | 167 | } |
168 | 168 | } |