| Conditions | 4 |
| Paths | 6 |
| Total Lines | 24 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function extract () |
||
| 45 | { |
||
| 46 | $previousExtractorResult = parent::extract(); |
||
| 47 | |||
| 48 | $copy = []; |
||
| 49 | |||
| 50 | foreach ( $previousExtractorResult as $currentRow ) { |
||
| 51 | $copy[] = $currentRow[$this->filterField]; |
||
| 52 | } |
||
| 53 | |||
| 54 | asort( $copy ); |
||
| 55 | |||
| 56 | $min = reset( $copy ); |
||
| 57 | $max = end( $copy ); |
||
| 58 | |||
| 59 | $result = []; |
||
| 60 | |||
| 61 | for ( $i = $min; $i <= $max; $i++ ) { |
||
| 62 | if ( !in_array( $i, $copy ) ) { |
||
| 63 | $result[] = new Row( [ $this->filterField => $i ] ); |
||
| 64 | } |
||
| 65 | } |
||
| 66 | |||
| 67 | return $result; |
||
| 68 | } |
||
| 70 |