Code style fixes.

This commit is contained in:
Dmitry Khomutov 2017-05-08 12:32:01 +07:00
commit efbf2650bb
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
5 changed files with 121 additions and 123 deletions

View file

@ -889,7 +889,7 @@ class Project extends Model
$default_branch = ($branch == $this->getBranch());
foreach($environments['items'] as $environment) {
/** @var Environment $environment */
if ($default_branch or in_array($branch, $environment->getBranches())) {
if ($default_branch || in_array($branch, $environment->getBranches())) {
$environments_names[] = $environment->getName();
}
}