Code Duplication    Length = 11-11 lines in 2 locations

src/Tools.php 2 locations

@@ 188-198 (lines=11) @@
185
        $procXML = $procmdfe->saveXML();
186
        //remove as informações indesejadas
187
        $procXML = Strings::clearProt($procXML);
188
        if ($saveFile) {
189
            $filename = "$chaveMDFe-protMDFe.xml";
190
            $this->zGravaFile(
191
                'mdfe',
192
                $tpAmb,
193
                $filename,
194
                $procXML,
195
                'enviadas'.DIRECTORY_SEPARATOR.'aprovadas',
196
                $anomes
197
            );
198
        }
199
        return $procXML;
200
    }
201
@@ 262-272 (lines=11) @@
259
                $procXML = $docmdfe->saveXML();
260
                //remove as informações indesejadas
261
                $procXML = Strings::clearProt($procXML);
262
                if ($saveFile) {
263
                    $filename = "$chaveMDFe-protMDFe.xml";
264
                    $this->zGravaFile(
265
                        'mdfe',
266
                        $tpAmb,
267
                        $filename,
268
                        $procXML,
269
                        'enviadas'.DIRECTORY_SEPARATOR.'aprovadas',
270
                        $anomes
271
                    );
272
                }
273
                break;
274
            }
275
        }