Conditions | 3 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 16 |
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 | $games = $this->provider->getDataForDwh(); |
||
|
|||
31 | |||
32 | foreach ($games as $game) { |
||
33 | $id = $game->getId(); |
||
34 | $object = new DwhGame(); |
||
35 | $object->setDate($date1->format('Y-m-d')); |
||
36 | $object->setFromArray( |
||
37 | array( |
||
38 | 'id' => $game->getId(), |
||
39 | 'nbPost' => $game->getNbPost(), |
||
40 | ) |
||
41 | ); |
||
42 | $object->setNbPostDay((isset($data1[$id])) ? $data1[$id] : 0); |
||
43 | $this->em->persist($object); |
||
44 | } |
||
45 | $this->em->flush(); |
||
46 | } |
||
63 |
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.