projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #18354 from totten/master-bs3b
[civicrm-core.git]
/
Civi
/
CiUtil
/
ComparisonPrinter.php
diff --git
a/Civi/CiUtil/ComparisonPrinter.php
b/Civi/CiUtil/ComparisonPrinter.php
index 60f5f2cb8173880a4c0cc9dbac0f5e275a9563bc..27acd8908c6c8106da2928f2c1e65a00cb38ebee 100644
(file)
--- a/
Civi/CiUtil/ComparisonPrinter.php
+++ b/
Civi/CiUtil/ComparisonPrinter.php
@@
-1,15
+1,23
@@
<?php
namespace Civi\CiUtil;
<?php
namespace Civi\CiUtil;
+/**
+ * Class ComparisonPrinter
+ *
+ * @package Civi\CiUtil
+ */
class ComparisonPrinter {
class ComparisonPrinter {
-
var
$headers;
-
var
$hasHeader = FALSE;
+
public
$headers;
+
public
$hasHeader = FALSE;
- function __construct($headers) {
+ /**
+ * @param $headers
+ */
+ public function __construct($headers) {
$this->headers = $headers;
}
$this->headers = $headers;
}
- function printHeader() {
+
public
function printHeader() {
if ($this->hasHeader) {
return;
}
if ($this->hasHeader) {
return;
}
@@
-35,7
+43,11
@@
class ComparisonPrinter {
$this->hasHeader = TRUE;
}
$this->hasHeader = TRUE;
}
- function printRow($test, $values) {
+ /**
+ * @param $test
+ * @param $values
+ */
+ public function printRow($test, $values) {
$this->printHeader();
printf("%-90s ", $test);
foreach ($values as $value) {
$this->printHeader();
printf("%-90s ", $test);
foreach ($values as $value) {
@@
-43,4
+55,5
@@
class ComparisonPrinter {
}
print "\n";
}
}
print "\n";
}
-}
\ No newline at end of file
+
+}