Skip to content

Commit 605e3cd

Browse files
author
Radoslaw Ziemniewicz
committed
Fixed the issue with the method and 4 returns
1 parent 4b129ae commit 605e3cd

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/Providers/BinaryUuidServiceProvider.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,9 @@ private function shouldPublishConfig(): bool
6363
return false;
6464
}
6565

66-
if (!method_exists($this->app, 'runningInConsole')) {
67-
return false;
68-
}
69-
70-
if (!method_exists($this->app, 'configPath')) {
71-
return false;
72-
}
66+
$hasMethods = method_exists($this->app, 'runningInConsole')
67+
&& method_exists($this->app, 'configPath');
7368

74-
return $this->app->runningInConsole();
69+
return $hasMethods && $this->app->runningInConsole();
7570
}
7671
}

0 commit comments

Comments
 (0)