| Conditions | 8 |
| Paths | 6 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function handle() |
||
| 41 | { |
||
| 42 | foreach ($this->book->toArray() as $param => $value) { |
||
| 43 | if (!$this->origin->hasParamValue($param)) { |
||
| 44 | if (in_array($param, self::SKIP_PARAMS)) { |
||
| 45 | continue; |
||
| 46 | } |
||
| 47 | // skip 'année' if 'date' not empty |
||
| 48 | if ('année' === $param && $this->origin->hasParamValue('date')) { |
||
| 49 | continue; |
||
| 50 | } |
||
| 51 | |||
| 52 | $this->origin->setParam($param, $value); |
||
| 53 | |||
| 54 | if ('langue' === $param && self::WIKI_LANGUAGE === $value) { |
||
| 55 | //$this->log('fr'.$param); |
||
| 56 | continue; |
||
| 57 | } |
||
| 58 | |||
| 59 | $this->optiStatus->addSummaryLog('++' . $param); |
||
| 60 | $this->optiStatus->setMajor(true); |
||
| 61 | $this->optiStatus->setNotCosmetic(true); |
||
| 62 | } |
||
| 65 | } |