| @@ 51-58 (lines=8) @@ | ||
| 48 | ||
| 49 | $prefix = $match[1] ?? null; |
|
| 50 | switch ($prefix) { |
|
| 51 | case '>': |
|
| 52 | $actualBytes = $this->toBytes($actualValue); |
|
| 53 | $bytes = $this->toBytes($match[2]); |
|
| 54 | ||
| 55 | if (! ($actualBytes > $bytes)) { |
|
| 56 | $this->options[$option] = $actualValue; |
|
| 57 | } |
|
| 58 | break; |
|
| 59 | ||
| 60 | case '>=': |
|
| 61 | $actualBytes = $this->toBytes($actualValue); |
|
| @@ 60-67 (lines=8) @@ | ||
| 57 | } |
|
| 58 | break; |
|
| 59 | ||
| 60 | case '>=': |
|
| 61 | $actualBytes = $this->toBytes($actualValue); |
|
| 62 | $bytes = $this->toBytes($match[2]); |
|
| 63 | ||
| 64 | if (! ($actualBytes >= $bytes)) { |
|
| 65 | $this->options[$option] = $actualValue; |
|
| 66 | } |
|
| 67 | break; |
|
| 68 | ||
| 69 | case '<': |
|
| 70 | $actualBytes = $this->toBytes($actualValue); |
|
| @@ 69-76 (lines=8) @@ | ||
| 66 | } |
|
| 67 | break; |
|
| 68 | ||
| 69 | case '<': |
|
| 70 | $actualBytes = $this->toBytes($actualValue); |
|
| 71 | $bytes = $this->toBytes($match[2]); |
|
| 72 | ||
| 73 | if (! ($actualBytes < $bytes)) { |
|
| 74 | $this->options[$option] = $actualValue; |
|
| 75 | } |
|
| 76 | break; |
|
| 77 | ||
| 78 | case '<=': |
|
| 79 | $actualBytes = $this->toBytes($actualValue); |
|
| @@ 78-85 (lines=8) @@ | ||
| 75 | } |
|
| 76 | break; |
|
| 77 | ||
| 78 | case '<=': |
|
| 79 | $actualBytes = $this->toBytes($actualValue); |
|
| 80 | $bytes = $this->toBytes($match[2]); |
|
| 81 | ||
| 82 | if (! ($actualBytes <= $bytes)) { |
|
| 83 | $this->options[$option] = $actualValue; |
|
| 84 | } |
|
| 85 | break; |
|
| 86 | ||
| 87 | default: |
|
| 88 | if ($value !== $actualValue) { |
|