@@ -54,6 +54,7 @@ public function renderSingle(DiffEntries $entries, $title, $withUrls)
5454
5555 /**
5656 * @param bool $withUrls
57+ *
5758 * @return string[]
5859 */
5960 private function getTableRow (DiffEntry $ entry , $ withUrls )
@@ -62,6 +63,7 @@ private function getTableRow(DiffEntry $entry, $withUrls)
6263 if ($ operation instanceof InstallOperation) {
6364 $ packageName = $ operation ->getPackage ()->getName ();
6465 $ packageUrl = $ withUrls ? $ this ->formatUrl ($ this ->getProjectUrl ($ operation ), $ packageName ) : $ packageName ;
66+
6567 return array (
6668 $ packageUrl ?: $ packageName ,
6769 '<fg=green>New</> ' ,
@@ -73,6 +75,7 @@ private function getTableRow(DiffEntry $entry, $withUrls)
7375 if ($ operation instanceof UpdateOperation) {
7476 $ packageName = $ operation ->getInitialPackage ()->getName ();
7577 $ projectUrl = $ withUrls ? $ this ->formatUrl ($ this ->getProjectUrl ($ operation ), $ packageName ) : $ packageName ;
78+
7679 return array (
7780 $ projectUrl ?: $ packageName ,
7881 $ entry ->isChange () ? '<fg=magenta>Changed</> ' : ($ entry ->isUpgrade () ? '<fg=cyan>Upgraded</> ' : '<fg=yellow>Downgraded</> ' ),
@@ -84,6 +87,7 @@ private function getTableRow(DiffEntry $entry, $withUrls)
8487 if ($ operation instanceof UninstallOperation) {
8588 $ packageName = $ operation ->getPackage ()->getName ();
8689 $ packageUrl = $ withUrls ? $ this ->formatUrl ($ this ->getProjectUrl ($ operation ), $ packageName ) : $ packageName ;
90+
8791 return array (
8892 $ packageUrl ?: $ packageName ,
8993 '<fg=red>Removed</> ' ,
0 commit comments