@@ 83-87 (lines=5) @@ | ||
80 | */ |
|
81 | public function first(string $field) |
|
82 | { |
|
83 | foreach ($this->parsedRows as $row) { |
|
84 | if ($row['key'] === $this->getKey($field)) { |
|
85 | return $row['value']; |
|
86 | } |
|
87 | } |
|
88 | ||
89 | return null; |
|
90 | } |
|
@@ 100-104 (lines=5) @@ | ||
97 | { |
|
98 | $result = []; |
|
99 | ||
100 | foreach ($this->parsedRows as $row) { |
|
101 | if ($row['key'] === $this->getKey($field)) { |
|
102 | $result[] = $row['value']; |
|
103 | } |
|
104 | } |
|
105 | ||
106 | switch (count($result)) { |
|
107 | case 0: |