Test Setup Failed
Pull Request — master (#793)
by
unknown
04:30
created
MessageQueueBundle/Consumption/Extension/ConsumerHeartbeatExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         $currentTime = new \DateTime('now', new \DateTimeZone('UTC'));
47 47
         if (!$this->lastUpdatedTime
48
-            || (($currentTime->getTimestamp() - $this->lastUpdatedTime->getTimestamp())/60
48
+            || (($currentTime->getTimestamp() - $this->lastUpdatedTime->getTimestamp()) / 60
49 49
                 >= $this->updateHeartbeatPeriod
50 50
             )
51 51
         ) {
Please login to merge, or discard this patch.
src/Oro/Bundle/MessageQueueBundle/Consumption/ConsumerHeartbeat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,6 +48,6 @@
 block discarded – undo
48 48
             return false;
49 49
         }
50 50
 
51
-        return !(($currentTime->getTimestamp() - $lastAliveTime->getTimestamp())/60 >= $this->updatePeriod);
51
+        return !(($currentTime->getTimestamp() - $lastAliveTime->getTimestamp()) / 60 >= $this->updatePeriod);
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
src/Oro/Bundle/UIBundle/Tests/Unit/View/ScrollDataTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@
 block discarded – undo
395 395
             'priority' => 77,
396 396
             'class' => 'Old Class',
397 397
             'subblocks' => []
398
-        ] ;
398
+        ];
399 399
 
400 400
         return [
401 401
             'remove not existing block' => [
Please login to merge, or discard this patch.
src/Oro/Bundle/DistributionBundle/Controller/PackageController.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
                 if (!$forceDependenciesInstalling && $requirements = $manager->getRequirements($packageName)) {
141 141
                     $responseContent['requirements'] = array_map(
142
-                        function (PackageRequirement $pr) {
142
+                        function(PackageRequirement $pr) {
143 143
                             return $pr->toArray();
144 144
                         },
145 145
                         $requirements
@@ -154,8 +154,7 @@  discard block
 block discarded – undo
154 154
             $manager->install($packageName, $packageVersion, (bool)$loadDemoData);
155 155
         } catch (\Exception $e) {
156 156
             $message = $e instanceof VerboseException ?
157
-                $e->getMessage() . '_' . $e->getVerboseMessage() :
158
-                $e->getMessage();
157
+                $e->getMessage() . '_' . $e->getVerboseMessage() : $e->getMessage();
159 158
             $responseContent = [
160 159
                 'code' => self::CODE_ERROR,
161 160
                 'message' => $message
Please login to merge, or discard this patch.
src/Oro/Bundle/SyncBundle/Tests/Unit/Wamp/TopicPublisherTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
             ->with(
35 35
                 json_encode(
36 36
                     array(
37
-                          \Ratchet\Wamp\ServerProtocol::MSG_PUBLISH,
38
-                          self::TOPIC,
39
-                          self::MESSAGE
37
+                            \Ratchet\Wamp\ServerProtocol::MSG_PUBLISH,
38
+                            self::TOPIC,
39
+                            self::MESSAGE
40 40
                     )
41 41
                 )
42 42
             );
Please login to merge, or discard this patch.
Tests/Unit/DependencyInjection/Compiler/SkipTagTrackingPassTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $definition->expects($this->any())
56 56
             ->method('addMethodCall')
57 57
             ->with('markSkipped')
58
-            ->willReturnCallback(function ($method, array $arguments) use (&$skippedEntityClasses) {
58
+            ->willReturnCallback(function($method, array $arguments) use (&$skippedEntityClasses) {
59 59
                 $skippedEntityClasses[] = $arguments[0];
60 60
             });
61 61
 
Please login to merge, or discard this patch.
src/Oro/Bundle/SyncBundle/Content/TopicSender.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         if (!empty($tags)) {
55 55
             $userName = $this->getUserName();
56 56
             $tags = array_map(
57
-                function ($tag) use ($userName) {
57
+                function($tag) use ($userName) {
58 58
                     return ['username' => $userName, 'tagname' => $tag];
59 59
                 },
60 60
                 $tags
Please login to merge, or discard this patch.
ImportExportBundle/Strategy/Import/ConfigurableAddOrReplaceStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
             if (!$this->strategyHelper->isGranted('CREATE', 'entity:' . ClassUtils::getClass($entity))) {
176 176
                 $error = $this->translator->trans(
177 177
                     'oro.importexport.import.errors.access_denied_entity',
178
-                    ['%entity_name%' => $entityClass,]
178
+                    ['%entity_name%' => $entityClass, ]
179 179
                 );
180 180
                 $this->context->addError($error);
181 181
 
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
         if (!$this->strategyHelper->isGranted($permission, $entity)) {
591 591
             $error = $this->translator->trans(
592 592
                 'oro.importexport.import.errors.access_denied_entity',
593
-                ['%entity_name%' => $entityClass,]
593
+                ['%entity_name%' => $entityClass, ]
594 594
             );
595 595
             $this->context->addError($error);
596 596
 
Please login to merge, or discard this patch.
Oro/Bundle/ImportExportBundle/Tests/Functional/AbstractImportExportTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
      */
434 434
     protected function removedIgnoredColumnsFromData(array &$data, array $ignoredColumns)
435 435
     {
436
-        array_walk($data, function (array $item, $key) use ($ignoredColumns, &$data) {
436
+        array_walk($data, function(array $item, $key) use ($ignoredColumns, &$data) {
437 437
             $data[$key] = array_diff_key($data[$key], array_flip($ignoredColumns));
438 438
         });
439 439
     }
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
     {
448 448
         $resultData = str_getcsv($content, "\n");
449 449
         $header = str_getcsv(array_shift($resultData));
450
-        array_walk($resultData, function (&$row) use ($header, $resultData) {
450
+        array_walk($resultData, function(&$row) use ($header, $resultData) {
451 451
             $row = array_combine($header, str_getcsv($row));
452 452
             $resultData[] = $row;
453 453
         });
Please login to merge, or discard this patch.