Skip to content

Commit 9a99fbc

Browse files
committed
Added missing if braces
1 parent cd7feac commit 9a99fbc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Symfony/src/Codebender/LibraryBundle/Handler/DefaultHandler.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,16 @@ public function checkGithubUpdates()
135135
}
136136

137137
$lastCommitFromGithub = $this->getLastCommitFromGithub($gitOwner, $gitRepo, $branch, $directoryInRepo);
138-
if ($lastCommitFromGithub !== $lib->getLastCommit())
139-
$needToUpdate[] = array(
138+
if ($lastCommitFromGithub !== $lib->getLastCommit()) {
139+
$needToUpdate[] = [
140140
'Machine Name' => $lib->getMachineName(),
141141
'Human Name' => $lib->getHumanName(),
142142
'Git Owner' => $lib->getOwner(),
143143
'Git Repo' => $lib->getRepo(),
144144
'Git Branch' => $lib->getBranch(),
145145
'Path in Git Repo' => $lib->getInRepoPath()
146-
);
146+
];
147+
}
147148
}
148149
if (empty($needToUpdate)) {
149150
return new JsonResponse(['success' => true, 'message' => 'No external libraries need to be updated']);

0 commit comments

Comments
 (0)