Conditions | 5 |
Paths | 6 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function handle() |
||
20 | { |
||
21 | // dewikification |
||
22 | $params = ['date', 'année', 'mois', 'jour']; |
||
23 | foreach ($params as $param) { |
||
24 | if ( |
||
25 | $this->ouvrage->hasParamValue($param) |
||
26 | && WikiTextUtil::isWikify(' ' . $this->ouvrage->getParam($param)) |
||
27 | ) { |
||
28 | $this->ouvrage->setParam($param, WikiTextUtil::unWikify($this->ouvrage->getParam($param))); |
||
|
|||
29 | } |
||
30 | } |
||
31 | |||
32 | try { |
||
33 | $this->moveDate2Year(); |
||
34 | } catch (Exception $e) { |
||
35 | // nothing (log?) |
||
52 | } |