Skip to content

Commit 43c028d

Browse files
Merge pull request #23 from verbanent/hotfix/method-returns
Fixed the issue with the method and 4 returns
2 parents 4b129ae + 605e3cd commit 43c028d

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)