From 78638ad7277075ae2283184c5d4dd84f95bcf58e Mon Sep 17 00:00:00 2001 From: Krishan Koenig Date: Sat, 7 Sep 2019 13:29:36 +0200 Subject: [PATCH] fix wrong method call --- src/Commands/PrefillFactory.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Commands/PrefillFactory.php b/src/Commands/PrefillFactory.php index 12609bc..c59bd14 100644 --- a/src/Commands/PrefillFactory.php +++ b/src/Commands/PrefillFactory.php @@ -86,9 +86,9 @@ public function handle() return $this->getPropertiesFromTable($column, $tableName, $tableIndexes); })->merge( $this->getPropertiesFromMethods() - )->filter(function ($data) { - return (bool) $data; - }) + )->filter(function ($data) { + return (bool) $data; + }) ->unique() ->values() ->all(); @@ -369,7 +369,7 @@ protected function qualifyClass($name) $rootNamespace = app()->getNamespace(); - if ($this->option('own-namespace') || starts_with($name, $rootNamespace)) { + if ($this->option('own-namespace') || Str::startsWith($name, $rootNamespace)) { return $name; }