Test Setup Failed
Pull Request — master (#798)
by Paul
05:57
created
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.
Tests/Functional/Controller/ImportExportControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@
 block discarded – undo
260 260
         );
261 261
         $this->assertJsonResponseSuccess();
262 262
         $tmpFiles = glob($tmpDirName . DIRECTORY_SEPARATOR . '*.csv');
263
-        $tmpFile = new File($tmpFiles[count($tmpFiles)-1]);
263
+        $tmpFile = new File($tmpFiles[count($tmpFiles) - 1]);
264 264
         $this->assertEquals(
265 265
             substr_count(file_get_contents($file), "\n"),
266 266
             substr_count(file_get_contents($tmpFile->getPathname()), "\r\n")
Please login to merge, or discard this patch.
src/Oro/Bundle/ImportExportBundle/Tests/Unit/Reader/CsvFileReaderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
             ->method('hasOption')
280 280
             ->will(
281 281
                 $this->returnCallback(
282
-                    function ($option) use ($options) {
282
+                    function($option) use ($options) {
283 283
                         return isset($options[$option]);
284 284
                     }
285 285
                 )
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
             ->method('getOption')
289 289
             ->will(
290 290
                 $this->returnCallback(
291
-                    function ($option) use ($options) {
291
+                    function($option) use ($options) {
292 292
                         return $options[$option];
293 293
                     }
294 294
                 )
Please login to merge, or discard this patch.