Skip to content

Commit 1f1de81

Browse files
authored
Apply fixes from StyleCI (#2163)
1 parent 8c9cb55 commit 1f1de81

File tree

4 files changed

+24
-23
lines changed

4 files changed

+24
-23
lines changed

src/Fields/Blueprint.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ private function addEnsuredFieldToContents($contents, $ensured)
145145
return (isset($field['import'])) ? 'import:'.$field['import'] : $field['handle'];
146146
})->map(function ($field) use ($sectionHandle) {
147147
$field['section'] = $sectionHandle;
148+
148149
return $field;
149150
});
150151
});

tests/Feature/Collections/Blueprints/UpdateBlueprintTest.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public function blueprint_gets_saved()
9696
'handle' => 'title',
9797
'field' => [
9898
'type' => 'text',
99-
'required' => true
100-
]
99+
'required' => true,
100+
],
101101
],
102102
[
103103
'handle' => 'one-one',
@@ -122,11 +122,11 @@ public function blueprint_gets_saved()
122122
'field' => [
123123
'type' => 'slug',
124124
'localizable' => true,
125-
'required' => true
126-
]
125+
'required' => true,
126+
],
127127
],
128-
]
129-
]
128+
],
129+
],
130130
],
131131
], Facades\Blueprint::find('collections.test.test')->contents());
132132
}
@@ -253,8 +253,8 @@ public function width_of_100_gets_stripped_out_for_inline_fields_but_left_in_for
253253
'handle' => 'title',
254254
'field' => [
255255
'type' => 'text',
256-
'required' => true
257-
]
256+
'required' => true,
257+
],
258258
],
259259
[
260260
'handle' => 'one-one',
@@ -285,12 +285,12 @@ public function width_of_100_gets_stripped_out_for_inline_fields_but_left_in_for
285285
'field' => [
286286
'type' => 'slug',
287287
'localizable' => true,
288-
'required' => true
289-
]
288+
'required' => true,
289+
],
290290
],
291-
]
292-
]
293-
]
291+
],
292+
],
293+
],
294294
], Facades\Blueprint::find('collections.test.test')->contents());
295295
}
296296

tests/Feature/Taxonomies/Blueprints/UpdateBlueprintTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public function blueprint_gets_saved()
9696
'handle' => 'title',
9797
'field' => [
9898
'type' => 'text',
99-
'required' => true
100-
]
99+
'required' => true,
100+
],
101101
],
102102
[
103103
'handle' => 'one-one',
@@ -121,8 +121,8 @@ public function blueprint_gets_saved()
121121
'handle' => 'slug',
122122
'field' => [
123123
'type' => 'slug',
124-
'required' => true
125-
]
124+
'required' => true,
125+
],
126126
],
127127
],
128128
],
@@ -252,8 +252,8 @@ public function width_of_100_gets_stripped_out_for_inline_fields_but_left_in_for
252252
'handle' => 'title',
253253
'field' => [
254254
'type' => 'text',
255-
'required' => true
256-
]
255+
'required' => true,
256+
],
257257
],
258258
[
259259
'handle' => 'one-one',
@@ -283,8 +283,8 @@ public function width_of_100_gets_stripped_out_for_inline_fields_but_left_in_for
283283
'handle' => 'slug',
284284
'field' => [
285285
'type' => 'slug',
286-
'required' => true
287-
]
286+
'required' => true,
287+
],
288288
],
289289
],
290290
],

tests/Fields/BlueprintTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ public function it_merges_undefined_config_overrides_when_ensuring_a_field_that_
534534
[
535535
'import' => 'the_partial',
536536
'config' => [
537-
'one' => ['foo' => 'bar']
538-
]
537+
'one' => ['foo' => 'bar'],
538+
],
539539
],
540540
],
541541
],

0 commit comments

Comments
 (0)