Skip to content

Commit 738e3e9

Browse files
committed
Use studly case
1 parent 4d349b7 commit 738e3e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ContentMigrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ protected function migrateField($handle, $value, $config = null)
198198
$config = $config ?? $this->getFieldConfig($handle);
199199
$fieldtype = $this->getFieldtype($config);
200200

201-
$migrateMethod = 'migrate'.ucfirst(strtolower($fieldtype)).'Field';
201+
$migrateMethod = 'migrate'.str($fieldtype)->studly().'Field';
202202

203203
if (method_exists($this, $migrateMethod)) {
204204
return $this->{$migrateMethod}($handle, $value, $config);

src/FieldsetMigrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ protected function migrateFieldConfig($config, $handle)
181181

182182
$fieldtype = $config['type'] ?? 'text';
183183

184-
$migrateMethod = 'migrate'.ucfirst(strtolower($fieldtype)).'Field';
184+
$migrateMethod = 'migrate'.str($fieldtype)->studly().'Field';
185185

186186
if (method_exists($this, $migrateMethod)) {
187187
$config = $this->{$migrateMethod}($config, $handle);

0 commit comments

Comments
 (0)