Completed
Push — master ( 87e5e7...0e505d )
by Roberto
02:54
created

Convert   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 27
ccs 0
cts 7
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A txt2xml() 0 3 1
1
<?php
2
3
namespace NFePHP\CTe;
4
5
/**
6
 * Classe para a conversão de Conhecimentos de transporte do formato TXT conforme padrão
7
 * do emissor gratuito para o formato XML.
8
 *
9
 * @category  NFePHP
10
 * @package   NFePHP\CTe\Convert
11
 * @copyright Copyright (c) 2008-2015
12
 * @license   http://www.gnu.org/licenses/lesser.html LGPL v3
13
 * @author    Roberto L. Machado <linux.rlm at gmail dot com>
14
 * @link      http://github.com/nfephp-org/nfephp for the canonical source repository
15
 */
16
17
use NFePHP\Common\Strings\Strings;
18
use NFePHP\Common\Exception;
19
use NFePHP\CTe\Make;
20
21
class Convert
22
{
23
    protected $limparString = true;
24
25
    /**
26
     * contruct
27
     * Método contrutor da classe
28
     *
29
     * @param  boolean $limparString Ativa flag para limpar os caracteres especiais e acentos
30
     * @return none
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
31
     */
32
    public function __construct($limparString = true)
33
    {
34
        $this->limparString = $limparString;
35
    }
36
    
37
    /**
38
     * txt2xml
39
     * Converte uma ou multiplos CTe em formato txt em xml
40
     *
41
     * @param  mixed $txt Path para txt, txt ou array de txt
42
     * @return array
43
     */
44
    public function txt2xml($txt)
0 ignored issues
show
Unused Code introduced by
The parameter $txt is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
45
    {
46
    }
47
}
48