Page MenuHomePhorge

D25262.1734975643.diff
No OneTemporary

D25262.1734975643.diff

diff --git a/src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php b/src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php
--- a/src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php
+++ b/src/infrastructure/diff/view/PHUIDiffTableOfContentsItemView.php
@@ -42,6 +42,11 @@
return $this;
}
+ /**
+ * Get the Coverage, expressed as a string, each letter with this meaning:
+ * N: Not Executable, C: Covered, U: Uncovered.
+ * @return string|null
+ */
public function getCoverage() {
return $this->coverage;
}
@@ -139,7 +144,7 @@
$not_applicable = '-';
$coverage = $this->getCoverage();
- if (!strlen($coverage)) {
+ if (!phutil_nonempty_string($coverage)) {
return $not_applicable;
}
@@ -157,7 +162,7 @@
$not_applicable = '-';
$coverage = $this->getCoverage();
- if (!strlen($coverage)) {
+ if (!phutil_nonempty_string($coverage)) {
return $not_applicable;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 17:40 (17 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1026946
Default Alt Text
D25262.1734975643.diff (985 B)

Event Timeline