@@ -45,11 +45,17 @@ |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $name |
|
| 50 | + */ |
|
| 48 | 51 | public function setTestName($name) |
| 49 | 52 | { |
| 50 | 53 | $this->testName = $name; |
| 51 | 54 | } |
| 52 | 55 | |
| 56 | + /** |
|
| 57 | + * @param string $status |
|
| 58 | + */ |
|
| 53 | 59 | public function setTestStatus($status) |
| 54 | 60 | { |
| 55 | 61 | $this->status = $status; |
@@ -91,6 +91,9 @@ |
||
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | |
| 94 | + /** |
|
| 95 | + * @param string $textDomain |
|
| 96 | + */ |
|
| 94 | 97 | protected function translatePart($translate, $result, $textDomain, $locale) |
| 95 | 98 | { |
| 96 | 99 | $newResult = parent::translate($result, $textDomain, $locale); |
@@ -53,7 +53,9 @@ |
||
| 53 | 53 | $max = false; |
| 54 | 54 | $min = PHP_INT_MAX; |
| 55 | 55 | foreach ($matchedParts as $part) { |
| 56 | - if ($part === null) continue; |
|
| 56 | + if ($part === null) { |
|
| 57 | + continue; |
|
| 58 | + } |
|
| 57 | 59 | if ($part >= $max) { |
| 58 | 60 | $max = $part; |
| 59 | 61 | } |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $this->street1 = trim(array_shift($rows)); |
| 60 | 60 | $this->business = trim(array_shift($rows)); |
| 61 | 61 | //Easy |
| 62 | - }else if (count($rows) == 1) { |
|
| 62 | + } else if (count($rows) == 1) { |
|
| 63 | 63 | $this->street1 = trim(array_shift($rows)); |
| 64 | 64 | |
| 65 | 65 | // Not so easy |