| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function toArray(Lead $object, $fields = []) |
||
| 28 | { |
||
| 29 | $array = [ |
||
| 30 | "id" => $object->getId(), |
||
| 31 | "date_event" => $object->getDateEvent(), |
||
| 32 | "origin" => $object->getOrigin(), |
||
| 33 | "product" => $object->getProduct(), |
||
| 34 | "external_reference" => $object->getExternalReference(), |
||
| 35 | "pixel" => $object->getPixel(), |
||
| 36 | "ip_address" => $object->getIpAddress(), |
||
| 37 | "serialisation" => $object->getSerialisation(), |
||
| 38 | ]; |
||
| 39 | |||
| 40 | return $this->exportFields($array, $fields); |
||
| 41 | } |
||
| 42 | } |
||
|
|
|||
| 43 |
This check marks files that end in a newline character, i.e. an empy line.