Completed
Push — 1.10 ( 93e51c...7f32fb )
by
unknown
11:06
created
OroCRM/Bundle/MagentoBundle/Controller/Api/Rest/CartAddressController.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -3,22 +3,17 @@
 block discarded – undo
3 3
 namespace OroCRM\Bundle\MagentoBundle\Controller\Api\Rest;
4 4
 
5 5
 use Doctrine\ORM\EntityNotFoundException;
6
-
7 6
 use Symfony\Component\HttpFoundation\JsonResponse;
8 7
 use Symfony\Component\HttpFoundation\Response;
9
-
10 8
 use FOS\RestBundle\Controller\Annotations\NamePrefix;
11 9
 use FOS\RestBundle\Routing\ClassResourceInterface;
12 10
 use FOS\RestBundle\Util\Codes;
13
-
14 11
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
15
-
16 12
 use Oro\Bundle\SecurityBundle\Annotation\Acl;
17 13
 use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
18 14
 use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController;
19 15
 use Oro\Bundle\AddressBundle\Entity\AddressType;
20 16
 use Oro\Bundle\SecurityBundle\Exception\ForbiddenException;
21
-
22 17
 use OroCRM\Bundle\MagentoBundle\Entity\Cart;
23 18
 use OroCRM\Bundle\MagentoBundle\Entity\CartAddress;
24 19
 
Please login to merge, or discard this patch.
src/OroCRM/Bundle/MagentoBundle/Controller/Api/Rest/CartController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,13 +3,10 @@
 block discarded – undo
3 3
 namespace OroCRM\Bundle\MagentoBundle\Controller\Api\Rest;
4 4
 
5 5
 use Symfony\Component\HttpFoundation\Response;
6
-
7 6
 use FOS\RestBundle\Controller\Annotations\NamePrefix;
8 7
 use FOS\RestBundle\Controller\Annotations\QueryParam;
9 8
 use FOS\RestBundle\Controller\Annotations\RouteResource;
10
-
11 9
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
12
-
13 10
 use Oro\Bundle\SecurityBundle\Annotation\Acl;
14 11
 use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
15 12
 use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController;
Please login to merge, or discard this patch.
src/OroCRM/Bundle/MagentoBundle/Controller/Api/Rest/CartItemController.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -3,21 +3,16 @@
 block discarded – undo
3 3
 namespace OroCRM\Bundle\MagentoBundle\Controller\Api\Rest;
4 4
 
5 5
 use Doctrine\ORM\EntityNotFoundException;
6
-
7 6
 use Symfony\Component\HttpFoundation\JsonResponse;
8 7
 use Symfony\Component\HttpFoundation\Response;
9
-
10 8
 use FOS\RestBundle\Controller\Annotations\NamePrefix;
11 9
 use FOS\RestBundle\Routing\ClassResourceInterface;
12 10
 use FOS\RestBundle\Util\Codes;
13
-
14 11
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
15
-
16 12
 use Oro\Bundle\SecurityBundle\Annotation\Acl;
17 13
 use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
18 14
 use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController;
19 15
 use Oro\Bundle\SecurityBundle\Exception\ForbiddenException;
20
-
21 16
 use OroCRM\Bundle\MagentoBundle\Entity\Cart;
22 17
 use OroCRM\Bundle\MagentoBundle\Entity\Manager\CartApiEntityManager;
23 18
 use OroCRM\Bundle\MagentoBundle\Entity\CartItem;
Please login to merge, or discard this patch.
Bundle/MagentoBundle/Controller/Api/Rest/CustomerAddressController.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -4,21 +4,16 @@
 block discarded – undo
4 4
 
5 5
 use Symfony\Component\HttpFoundation\JsonResponse;
6 6
 use Symfony\Component\HttpFoundation\Response;
7
-
8 7
 use Doctrine\ORM\EntityNotFoundException;
9
-
10 8
 use FOS\RestBundle\Controller\Annotations\NamePrefix;
11 9
 use FOS\RestBundle\Routing\ClassResourceInterface;
12 10
 use FOS\RestBundle\Util\Codes;
13
-
14 11
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
15
-
16 12
 use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
17 13
 use Oro\Bundle\SecurityBundle\Annotation\Acl;
18 14
 use Oro\Bundle\AddressBundle\Entity\AbstractTypedAddress;
19 15
 use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController;
20 16
 use Oro\Bundle\SecurityBundle\Exception\ForbiddenException;
21
-
22 17
 use OroCRM\Bundle\MagentoBundle\Entity\Address;
23 18
 use OroCRM\Bundle\MagentoBundle\Entity\Customer;
24 19
 use OroCRM\Bundle\MagentoBundle\Entity\Manager\CustomerApiEntityManager;
Please login to merge, or discard this patch.
src/OroCRM/Bundle/MagentoBundle/Controller/Api/Rest/CustomerController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,14 +3,11 @@
 block discarded – undo
3 3
 namespace OroCRM\Bundle\MagentoBundle\Controller\Api\Rest;
4 4
 
5 5
 use Symfony\Component\HttpFoundation\Response;
6
-
7 6
 use FOS\RestBundle\Controller\Annotations\NamePrefix;
8 7
 use FOS\RestBundle\Controller\Annotations\QueryParam;
9 8
 use FOS\RestBundle\Routing\ClassResourceInterface;
10 9
 use FOS\RestBundle\Controller\Annotations\RouteResource;
11
-
12 10
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
13
-
14 11
 use Oro\Bundle\SecurityBundle\Annotation\Acl;
15 12
 use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
16 13
 use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController;
Please login to merge, or discard this patch.
OroCRM/Bundle/MagentoBundle/Controller/Api/Rest/OrderAddressController.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -3,21 +3,16 @@
 block discarded – undo
3 3
 namespace OroCRM\Bundle\MagentoBundle\Controller\Api\Rest;
4 4
 
5 5
 use Doctrine\ORM\EntityNotFoundException;
6
-
7 6
 use Symfony\Component\HttpFoundation\JsonResponse;
8 7
 use Symfony\Component\HttpFoundation\Response;
9
-
10 8
 use FOS\RestBundle\Controller\Annotations\NamePrefix;
11 9
 use FOS\RestBundle\Routing\ClassResourceInterface;
12 10
 use FOS\RestBundle\Util\Codes;
13
-
14 11
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
15
-
16 12
 use Oro\Bundle\SecurityBundle\Annotation\Acl;
17 13
 use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
18 14
 use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController;
19 15
 use Oro\Bundle\SecurityBundle\Exception\ForbiddenException;
20
-
21 16
 use OroCRM\Bundle\MagentoBundle\Entity\Order;
22 17
 use OroCRM\Bundle\MagentoBundle\Entity\Manager\OrderApiEntityManager;
23 18
 use OroCRM\Bundle\MagentoBundle\Entity\OrderAddress;
Please login to merge, or discard this patch.
src/OroCRM/Bundle/MagentoBundle/Controller/Api/Rest/OrderItemController.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -3,21 +3,16 @@
 block discarded – undo
3 3
 namespace OroCRM\Bundle\MagentoBundle\Controller\Api\Rest;
4 4
 
5 5
 use Doctrine\ORM\EntityNotFoundException;
6
-
7 6
 use Symfony\Component\HttpFoundation\JsonResponse;
8 7
 use Symfony\Component\HttpFoundation\Response;
9
-
10 8
 use FOS\RestBundle\Controller\Annotations\NamePrefix;
11 9
 use FOS\RestBundle\Routing\ClassResourceInterface;
12 10
 use FOS\RestBundle\Util\Codes;
13
-
14 11
 use Nelmio\ApiDocBundle\Annotation\ApiDoc;
15
-
16 12
 use Oro\Bundle\SecurityBundle\Annotation\Acl;
17 13
 use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
18 14
 use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController;
19 15
 use Oro\Bundle\SecurityBundle\Exception\ForbiddenException;
20
-
21 16
 use OroCRM\Bundle\MagentoBundle\Entity\Order;
22 17
 use OroCRM\Bundle\MagentoBundle\Entity\Manager\OrderApiEntityManager;
23 18
 use OroCRM\Bundle\MagentoBundle\Entity\OrderItem;
Please login to merge, or discard this patch.
OroCRM/Bundle/MagentoBundle/Controller/NewsletterSubscriberController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,10 @@
 block discarded – undo
4 4
 
5 5
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6 6
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
7
-
8 7
 use Symfony\Component\HttpFoundation\JsonResponse;
9 8
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
10
-
11 9
 use Oro\Bundle\SecurityBundle\Annotation\Acl;
12 10
 use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
13
-
14 11
 use OroCRM\Bundle\MagentoBundle\Entity\Customer;
15 12
 use OroCRM\Bundle\MagentoBundle\Entity\NewsletterSubscriber;
16 13
 
Please login to merge, or discard this patch.
src/OroCRM/Bundle/MagentoBundle/Entity/Customer.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,14 +5,12 @@
 block discarded – undo
5 5
 use Doctrine\Common\Collections\ArrayCollection;
6 6
 use Doctrine\Common\Collections\Collection;
7 7
 use Doctrine\ORM\Mapping as ORM;
8
-
9 8
 use Oro\Bundle\AddressBundle\Entity\AbstractAddress;
10 9
 use Oro\Bundle\DataAuditBundle\Metadata\Annotation as Oro;
11 10
 use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\Config;
12 11
 use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;
13 12
 use Oro\Bundle\OrganizationBundle\Entity\Organization;
14 13
 use Oro\Bundle\UserBundle\Entity\User;
15
-
16 14
 use OroCRM\Bundle\AccountBundle\Entity\Account;
17 15
 use OroCRM\Bundle\AnalyticsBundle\Model\RFMAwareInterface;
18 16
 use OroCRM\Bundle\AnalyticsBundle\Model\RFMAwareTrait;
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
     }
662 662
 
663 663
     /**
664
-     * @return string
664
+     * @return double
665 665
      */
666 666
     public function getVat()
667 667
     {
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
     /**
716 716
      * @param int $originId
717 717
      *
718
-     * @return Address|false
718
+     * @return boolean
719 719
      */
720 720
     public function getAddressByOriginId($originId)
721 721
     {
Please login to merge, or discard this patch.