| Conditions | 5 |
| Paths | 3 |
| Total Lines | 25 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function process(): void |
||
| 24 | { |
||
| 25 | $date1 = new DateTime(); |
||
| 26 | $date1->sub(new DateInterval('P1D')); |
||
| 27 | $date2 = new DateTime(); |
||
| 28 | |||
| 29 | $data1 = $this->provider->getNbPostDay($date1, $date2); |
||
| 30 | $data2 = $this->provider->getDataRank(); |
||
|
|
|||
| 31 | $list = $this->provider->getDataForDwh(); |
||
| 32 | |||
| 33 | foreach ($list as $row) { |
||
| 34 | $idPlayer = $row['id']; |
||
| 35 | $dwhPlayer = new DwhPlayer(); |
||
| 36 | $dwhPlayer->setDate($date1->format('Y-m-d')); |
||
| 37 | $dwhPlayer->setFromArray($row); |
||
| 38 | $dwhPlayer->setNbPostDay((isset($data1[$idPlayer])) ? $data1[$idPlayer] : 0); |
||
| 39 | if (isset($data2[$idPlayer])) { |
||
| 40 | foreach ($data2[$idPlayer] as $key => $value) { |
||
| 41 | $dwhPlayer->setChartRank($key, $value); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | $this->em->persist($dwhPlayer); |
||
| 45 | } |
||
| 46 | |||
| 47 | $this->em->flush(); |
||
| 48 | } |
||
| 64 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.