| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 1 | public function importPages( Iterator $entityPageIterator ) { |
|
| 27 | 1 | $startTime = microtime( true ); |
|
| 28 | |||
| 29 | 1 | $reporter = new StatsTrackingReporter( $this->importer->getReporter() ); |
|
| 30 | |||
| 31 | 1 | $this->importer->setReporter( $reporter ); |
|
| 32 | |||
| 33 | 1 | $this->runImportLoop( $entityPageIterator ); |
|
| 34 | |||
| 35 | 1 | $stats = $reporter->getStats(); |
|
| 36 | 1 | $stats->setDuration( microtime( true ) - $startTime ); |
|
| 37 | 1 | $this->statsReporter->reportStats( $stats ); |
|
| 38 | 1 | } |
|
| 39 | |||
| 65 |