Showing 65 of 97 total issues
BaseSale
has 67 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class BaseSale implements DocumentInterface
{
/**
* @var string
*/
SaleDetail
has 56 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SaleDetail
{
/**
* Codigo unidad de Medida.
*
Method create
has 178 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(): ?DocumentInterface
{
$invoice = new Invoice();
$invoice
->setFecVencimiento(new DateTime())
Shipment
has 42 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Shipment
{
/**
* Motivo del traslado.
*
SummaryDetail
has 38 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SummaryDetail
{
/**
* @var string
*/
Invoice
has 36 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Invoice extends BaseSale
{
/**
* Tipo operacion (Catálogo 51).
*
File BaseSale.php
has 350 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: Giansalex
* Date: 17/07/2017
Method create
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(): ?DocumentInterface
{
$perc = new SalePerception();
$perc->setCodReg('01') // 51 on UBL2.1 - Catalog 53
->setMto(2)
Method create
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(): ?DocumentInterface
{
$rel = new AdditionalDoc();
$rel->setTipoDesc('Factura')
->setTipo('01')
Despatch
has 31 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Despatch implements DocumentInterface
{
/**
* @var string
*/
File InvoiceParser.php
has 288 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: Giansalex
* Date: 05/10/2017
File SaleDetail.php
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Created by PhpStorm.
* User: Giansalex
* Date: 15/07/2017
Method load
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function load(ClassMetadata $metadata)
{
$metadata->addPropertyConstraints('tipoDoc', [
new Assert\NotBlank(),
new Assert\Length([
Method create
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(): ?DocumentInterface
{
$detiail1 = new SummaryDetail();
$detiail1->setTipoDoc('03')
->setSerieNro('B001-1')
Perception
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Perception implements DocumentInterface
{
/**
* Serie del Documento (ejem: P001).
*
Receipt
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Receipt implements DocumentInterface
{
/**
* Persona natural que emite el recibo.
*
Retention
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Retention implements DocumentInterface
{
/**
* Serie del Documento (ejem: R001).
*
Method create
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(): ?DocumentInterface
{
$invoice = new Invoice();
$invoice
->setUblVersion('2.1')
Method create
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(): ?DocumentInterface
{
$baja = new Document();
$baja->setTipoDoc('09')
->setNroDoc('T001-00001');
Method create
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(): ?DocumentInterface
{
$invoice = new Invoice();
$invoice