Code Duplication    Length = 11-11 lines in 2 locations

command/AbstractBillCommandHandler.php 1 location

@@ 133-143 (lines=11) @@
130
     * @param Facture                        $object
131
     * @param int                            $id
132
     */
133
    protected function generateBillDocument(CreateReceiverMonthBillCommand $command, $object, $id)
134
    {
135
        $object->fetch($id);
136
        $object->generateDocument(
137
            $command->getModelDocument(),
138
            $this->langs,
139
            $this->isDetailHidden(),
140
            $this->isDescriptionHidden(),
141
            $this->isReferenceHidden()
142
        );
143
    }
144
145
    /**
146
     * @param Product $flightProduct

command/CreateFlightBillCommandHandler.php 1 location

@@ 213-223 (lines=11) @@
210
     * @param Facture                 $object
211
     * @param int                     $id
212
     */
213
    private function generateBillDocument(CreateFlightBillCommand $command, $object, $id)
214
    {
215
        $object->fetch($id);
216
        $object->generateDocument(
217
            $command->getModelDocument(),
218
            $this->langs,
219
            $this->isDetailHidden(),
220
            $this->isDescriptionHidden(),
221
            $this->isReferenceHidden()
222
        );
223
    }
224
225
    /**
226
     * @param $flightProduct