diff --git a/src/GitList/Controller/NetworkController.php b/src/GitList/Controller/NetworkController.php index 1c6a920..beaa6eb 100644 --- a/src/GitList/Controller/NetworkController.php +++ b/src/GitList/Controller/NetworkController.php @@ -67,17 +67,18 @@ class NetworkController implements ControllerProviderInterface ); } - // when no commits are given, return an empty response - issue #369 - if( count($commits) === 0 ) { - return $app->json( array( - 'repo' => $repo, - 'commitishPath' => $commitishPath, - 'nextPage' => null, - 'start' => null, - 'commits' => $jsonFormattedCommits - ), 200 - ); - } + // when no commits are given, return an empty response - issue #369 + if (count($commits) === 0) { + return $app->json( + array( + 'repo' => $repo, + 'commitishPath' => $commitishPath, + 'nextPage' => null, + 'start' => null, + 'commits' => $jsonFormattedCommits + ), 200 + ); + } return $app->json( array( 'repo' => $repo,