GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#14)
by Michael
25:57 queued 15:32
created

EbayEnterprise_Tax_Test_Helper_FactoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateTaxRecord() 0 6 1
1
<?php
2
/**
3
 * Copyright (c) 2013-2014 eBay Enterprise, Inc.
4
 *
5
 * NOTICE OF LICENSE
6
 *
7
 * This source file is subject to the Open Software License (OSL 3.0)
8
 * that is bundled with this package in the file LICENSE.md.
9
 * It is also available through the world-wide-web at this URL:
10
 * http://opensource.org/licenses/osl-3.0.php
11
 *
12
 * @copyright   Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/)
13
 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
14
 */
15
16
class EbayEnterprise_Tax_Test_Helper_FactoryTest extends EcomDev_PHPUnit_Test_Case
17
{
18
    /**
19
     * Test constructing a new tax record.
20
     *
21
     * @param int $taxSource Should be one of the tax record source consts.
0 ignored issues
show
Bug introduced by
There is no parameter named $taxSource. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
22
     * @param int
23
     * @param int
24
     * @param int|null $itemId Address level taxes may not have an associated item id.
0 ignored issues
show
Bug introduced by
There is no parameter named $itemId. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
25
     * @param ITax $taxPayload|null SDK payload of tax data to use to populate the tax record.
0 ignored issues
show
Bug introduced by
There is no parameter named $taxPayload|null. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
26
     * @param array $recordData Tax record data to be set directly on the tax record. May be used in place of an ITax payload.
0 ignored issues
show
Bug introduced by
There is no parameter named $recordData. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
27
     * @return EbayEnterprise_Tax_Model_Record
0 ignored issues
show
Documentation introduced by
Should the return type not be EbayEnterprise_Tax_Model_Record|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
28
     */
29
    public function testCreateTaxRecord()
30
    {
31
        $factory = Mage::helper('ebayenterprise_tax/factory');
32
        $taxRecord = $factory->createTaxRecord(0, 0, 0);
33
        $this->assertInstanceOf('EbayEnterprise_Tax_Model_Record', $taxRecord);
34
    }
35
}
36