Test Setup Failed
Push — master ( 795707...861da3 )
by
unknown
03:21
created
src/Oro/Bundle/SalesBundle/Controller/Api/Rest/OpportunityController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
      */
55 55
     public function cgetAction(Request $request)
56 56
     {
57
-        $page  = (int) $request->get('page', 1);
58
-        $limit = (int) $request->get('limit', self::ITEMS_PER_PAGE);
57
+        $page  = (int)$request->get('page', 1);
58
+        $limit = (int)$request->get('limit', self::ITEMS_PER_PAGE);
59 59
 
60 60
         $contactIdFilter  = new IdentifierToReferenceFilter($this->getDoctrine(), 'OroContactBundle:Contact');
61 61
         $filterParameters = [
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Entity/Repository/OpportunityRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
             $qb->setParameter(':organization', $organization);
68 68
         }
69 69
 
70
-        return (bool) $qb->getQuery()->getSingleScalarResult();
70
+        return (bool)$qb->getQuery()->getSingleScalarResult();
71 71
     }
72 72
 
73 73
     /**
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Controller/Api/Rest/B2bCustomerController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
      */
48 48
     public function cgetAction(Request $request)
49 49
     {
50
-        $page = (int) $request->get('page', 1);
51
-        $limit = (int) $request->get('limit', self::ITEMS_PER_PAGE);
50
+        $page = (int)$request->get('page', 1);
51
+        $limit = (int)$request->get('limit', self::ITEMS_PER_PAGE);
52 52
 
53 53
         return $this->handleGetListRequest($page, $limit);
54 54
     }
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Validator/UniqueCustomerEmailValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                 $value->getChannel()->getType()
44 44
             );
45 45
 
46
-            if (! $transportProvider instanceof MagentoTransportInterface) {
46
+            if (!$transportProvider instanceof MagentoTransportInterface) {
47 47
                 throw new UnexpectedTypeException($transportProvider, MagentoTransportInterface::class);
48 48
             }
49 49
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                 /**
53 53
                  * @var $transportProvider MagentoTransportInterface
54 54
                  */
55
-                if (! $transportProvider->isCustomerHasUniqueEmail($value)) {
55
+                if (!$transportProvider->isCustomerHasUniqueEmail($value)) {
56 56
                     $this->context->buildViolation($constraint->message)
57 57
                         ->atPath('email')
58 58
                         ->addViolation();
Please login to merge, or discard this patch.
ReportCRMBundle/Tests/Functional/DatagridReport/LeadsByDateReportTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@
 block discarded – undo
67 67
     {
68 68
         return [
69 69
             'rows' => array_map(
70
-                function ($item) use ($keys) {
70
+                function($item) use ($keys) {
71 71
                     return array_intersect_key($item, array_flip($keys));
72 72
                 },
73 73
                 $response['data']
74 74
             ),
75 75
             'totals' => array_map(
76
-                function ($item) {
76
+                function($item) {
77 77
                     return $item['total'] ?? $item['label'];
78 78
                 },
79 79
                 array_intersect_key($response['options']['totals']['grand_total']['columns'], array_flip($keys))
Please login to merge, or discard this patch.
ContactBundle/Tests/Functional/Handler/ContactEmailAddressHandlerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,13 +101,13 @@
 block discarded – undo
101 101
     private function getEmailAddresses(EmailAddressManager $emailAddressManager): array
102 102
     {
103 103
         $repo = $emailAddressManager->getEmailAddressRepository();
104
-        $emailAddresses = array_filter($repo->findAll(), function (EmailAddress $emailAddress) {
104
+        $emailAddresses = array_filter($repo->findAll(), function(EmailAddress $emailAddress) {
105 105
             return $emailAddress->getOwner() instanceof Contact;
106 106
         });
107 107
 
108 108
         return array_values(
109 109
             array_map(
110
-                function (EmailAddress $emailAddress) {
110
+                function(EmailAddress $emailAddress) {
111 111
                     return $emailAddress->getEmail();
112 112
                 },
113 113
                 $emailAddresses
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Form/Type/CustomerChannelSelectType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 
78 78
         $resolver->setNormalizer(
79 79
             'query_builder',
80
-            function (Options $options, $value) {
80
+            function(Options $options, $value) {
81 81
                 $entities     = $options['entities'];
82 82
                 $queryBuilder = $this->channelsProvider->getChannelsByEntitiesQB($entities);
83 83
 
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Form/Type/CustomerGroupSelectType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@
 block discarded – undo
43 43
         // Set store form type readonly if ASSIGN permissions for integration not set
44 44
         $resolver->setNormalizer(
45 45
             'disabled',
46
-            function (Options $options, $value) {
46
+            function(Options $options, $value) {
47 47
                 return $this->isReadOnly() ? true : $value;
48 48
             }
49 49
         )->setNormalizer(
50 50
             'validation_groups',
51
-            function (Options $options, $value) {
51
+            function(Options $options, $value) {
52 52
                 return $options['disabled'] ? false : $value;
53 53
             }
54 54
         );
Please login to merge, or discard this patch.
Bundle/MagentoBundle/Tests/Unit/Form/Type/CartItemCollectionTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             ->method('setNormalizer')
27 27
             ->with(
28 28
                 'entry_options',
29
-                function (Options $options, $values) {
29
+                function(Options $options, $values) {
30 30
                     if (!$values) {
31 31
                         $values = [];
32 32
                     }
Please login to merge, or discard this patch.