Test Setup Failed
Push — master ( 80f464...13bd30 )
by
unknown
03:16
created
src/Oro/Bridge/CallCRM/Migrations/Data/Demo/ORM/LoadCallData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function getDependencies()
41 41
     {
42
-        return ['Oro\Bundle\DemoDataBundle\Migrations\Data\Demo\ORM\LoadContactData',];
42
+        return ['Oro\Bundle\DemoDataBundle\Migrations\Data\Demo\ORM\LoadContactData', ];
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
src/Oro/Bridge/MarketingCRM/Entity/Repository/ChannelRepository.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
         $qb = $this->_em->createQueryBuilder();
38 38
 
39 39
         $entityName = $this->isPrecalculatedStatisticEnabled() ?
40
-            'OroTrackingBundle:UniqueTrackingVisit' :
41
-            'OroTrackingBundle:TrackingVisit';
40
+            'OroTrackingBundle:UniqueTrackingVisit' : 'OroTrackingBundle:TrackingVisit';
42 41
 
43 42
         $qb->select('COUNT(visit.id)')
44 43
             ->from($entityName, 'visit')
Please login to merge, or discard this patch.
src/Oro/Bridge/MarketingCRM/Provider/TrackingVisitProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                     ->setParameter('to', $to);
82 82
             }
83 83
 
84
-            return (int) $this->aclHelper->apply($queryBuilder)->getSingleScalarResult();
84
+            return (int)$this->aclHelper->apply($queryBuilder)->getSingleScalarResult();
85 85
         } catch (NoResultException $ex) {
86 86
             return 0;
87 87
         }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                     ->setParameter('to', $to);
129 129
             }
130 130
 
131
-            return (int) $this->aclHelper->apply($queryBuilder)->getSingleScalarResult();
131
+            return (int)$this->aclHelper->apply($queryBuilder)->getSingleScalarResult();
132 132
         } catch (NoResultException $ex) {
133 133
             return 0;
134 134
         }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             ->getQuery()
167 167
             ->getSingleResult();
168 168
 
169
-        $count = (int) $result['cnt'];
169
+        $count = (int)$result['cnt'];
170 170
         $first = new \DateTimeImmutable($result['first']);
171 171
         $last = new \DateTimeImmutable($result['last']);
172 172
         $daysDiff = $last->diff($first)->d;
Please login to merge, or discard this patch.
src/Oro/Bridge/MarketingCRM/Provider/WebsiteVisitProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         );
67 67
         $this->applyDateFiltering($visitsQb, 'visit.firstActionTime', $start, $end);
68 68
 
69
-        return (int) $this->aclHelper->apply($visitsQb)->getSingleScalarResult();
69
+        return (int)$this->aclHelper->apply($visitsQb)->getSingleScalarResult();
70 70
     }
71 71
 
72 72
     /**
Please login to merge, or discard this patch.
src/Oro/Bridge/MarketingCRM/Provider/TrackingCustomerIdentification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
             $identifierData  = [];
229 229
             array_walk(
230 230
                 $identifierArray,
231
-                function ($string) use (&$identifierData) {
231
+                function($string) use (&$identifierData) {
232 232
                     $data = explode('=', $string);
233 233
                     if (count($data) === 2) {
234 234
                         $identifierData[$data[0]] = $data[1];
Please login to merge, or discard this patch.
src/Oro/Bridge/MarketingCRM/Migrations/Data/Demo/ORM/LoadCampaignData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             ->get('kernel')
69 69
             ->locateResource('@OroDemoDataBundle/Migrations/Data/Demo/ORM/dictionaries');
70 70
 
71
-        $handle = fopen($dictionaryDir . DIRECTORY_SEPARATOR. "campaigns.csv", "r");
71
+        $handle = fopen($dictionaryDir . DIRECTORY_SEPARATOR . "campaigns.csv", "r");
72 72
         if ($handle) {
73 73
             $headers = array();
74 74
             if (($data = fgetcsv($handle, 1000, ",")) !== false) {
Please login to merge, or discard this patch.
Oro/Bundle/ContactBundle/Tests/Unit/Formatter/ContactNameFormatterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         $this->nameFormatter->expects($this->any())
29 29
             ->method('format')
30
-            ->will($this->returnCallback(function (Contact $contact) {
30
+            ->will($this->returnCallback(function(Contact $contact) {
31 31
                 return trim(implode(' ', [$contact->getFirstName(), $contact->getLastName()]));
32 32
             }));
33 33
     }
Please login to merge, or discard this patch.
Oro/Bundle/DemoDataBundle/Migrations/Data/Demo/ORM/AbstractDemoFixture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
             ->getArrayResult();
165 165
 
166 166
         return array_map(
167
-            function ($item) {
167
+            function($item) {
168 168
                 return $item['id'];
169 169
             },
170 170
             $items
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Tests/Unit/Form/Type/CustomerAddressTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 $this->isType('string'),
47 47
                 $this->isType('string'),
48 48
                 $this->callback(
49
-                    function ($item) {
49
+                    function($item) {
50 50
                         $this->assertInternalType('array', $item);
51 51
                         $this->assertArrayHasKey('label', $item);
52 52
 
Please login to merge, or discard this patch.