From d344cdc84242cc6f1c3e7e482089dd16e89357c3 Mon Sep 17 00:00:00 2001 From: liquid207 <48850370+liquid207@users.noreply.github.com> Date: Sun, 8 Sep 2019 17:55:17 +0800 Subject: [PATCH] Fix phpcs (#803) --- src/Console/ModelsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 3ed2b63..a1379f4 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -456,7 +456,7 @@ class ModelsCommand extends Command //Use reflection to inspect the code, based on Illuminate/Support/SerializableClosure.php $reflection = new \ReflectionMethod($model, $method); // php 7.x type or fallback to docblock - $type = (string)($reflection->getReturnType() ?: $this->getReturnTypeFromDocBlock($reflection)); + $type = (string) ($reflection->getReturnType() ?: $this->getReturnTypeFromDocBlock($reflection)); $file = new \SplFileObject($reflection->getFileName()); $file->seek($reflection->getStartLine() - 1);