| Conditions | 3 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function process(): void |
||
| 23 | { |
||
| 24 | $date1 = new DateTime(); |
||
| 25 | $date1->sub(new DateInterval('P1D')); |
||
| 26 | $date2 = new DateTime(); |
||
| 27 | |||
| 28 | $data1 = $this->provider->getNbPostDay($date1, $date2); |
||
| 29 | $list = $this->provider->getDataForDwh(); |
||
|
|
|||
| 30 | |||
| 31 | foreach ($list as $row) { |
||
| 32 | $idTeam = $row['id']; |
||
| 33 | $dwhTeam = new DwhTeam(); |
||
| 34 | $dwhTeam->setDate($date1->format('Y-m-d')); |
||
| 35 | $dwhTeam->setFromArray($row); |
||
| 36 | $dwhTeam->setNbPostDay((isset($data1[$idTeam])) ? $data1[$idTeam] : 0); |
||
| 37 | $this->em->persist($dwhTeam); |
||
| 38 | } |
||
| 39 | |||
| 40 | $this->em->flush(); |
||
| 41 | } |
||
| 57 |
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.