Test Setup Failed
Pull Request — master (#798)
by Paul
05:57
created
Oro/Bundle/TestFrameworkBundle/Behat/Isolation/UnixMysqlSyncIsolator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
         $container = $kernel->getContainer();
51 51
 
52 52
         $this->dbHost = $container->getParameter('database_host');
53
-        $this->dbPort = $container->getParameter('database_port') ? : 3306;
53
+        $this->dbPort = $container->getParameter('database_port') ?: 3306;
54 54
         $this->dbName = $container->getParameter('database_name');
55 55
         $this->dbUser = $container->getParameter('database_user');
56 56
         $this->dbPass = $container->getParameter('database_password');
57
-        $this->dbDump = sys_get_temp_dir().DIRECTORY_SEPARATOR.$this->dbName.TokenGenerator::generateToken('db');
58
-        $this->dbTempName = $this->dbName.'_temp'.TokenGenerator::generateToken('db');
57
+        $this->dbDump = sys_get_temp_dir() . DIRECTORY_SEPARATOR . $this->dbName . TokenGenerator::generateToken('db');
58
+        $this->dbTempName = $this->dbName . '_temp' . TokenGenerator::generateToken('db');
59 59
     }
60 60
 
61 61
     /** {@inheritdoc} */
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     protected function renameTempDb()
209 209
     {
210 210
         $this->restoreDbFromDumpProcess = $this->runProcess(sprintf(
211
-            'MYSQL_PWD=%s && for table in `mysql -h %s -P %s -u %s -s -N -e "use %s;show tables from %4$s;"`; '.
211
+            'MYSQL_PWD=%s && for table in `mysql -h %s -P %s -u %s -s -N -e "use %s;show tables from %4$s;"`; ' .
212 212
             'do mysql -h %2$s -u %3$s -s -N -e "use %4$s;rename table %4$s.$table to %5$s.$table;"; done;',
213 213
             $this->dbPass,
214 214
             $this->dbHost,
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     private function isDbExists($dbName)
274 274
     {
275 275
         $process = $this->runProcess(sprintf(
276
-            'MYSQL_PWD=%s mysql -e "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA '.
276
+            'MYSQL_PWD=%s mysql -e "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA ' .
277 277
             'WHERE SCHEMA_NAME = \'%s\'" -h %s -P %s -u %s',
278 278
             $this->dbPass,
279 279
             $dbName,
Please login to merge, or discard this patch.
src/Oro/Bundle/TestFrameworkBundle/Behat/HealthChecker/FeatureCSChecker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
         $path = $event->getFeature()->getFile();
52 52
 
53 53
         $featureFileName = pathinfo($path, PATHINFO_BASENAME);
54
-        $expectedFileName = $this->canonize($featureTitle).'.feature';
54
+        $expectedFileName = $this->canonize($featureTitle) . '.feature';
55 55
 
56 56
         if ($expectedFileName != $featureFileName) {
57 57
             $this->rename($path, $expectedFileName);
58 58
             $this->errors[] = sprintf(
59
-                'Feature "%s" should be renamed to "%s"'.PHP_EOL.
59
+                'Feature "%s" should be renamed to "%s"' . PHP_EOL .
60 60
                     'Actually it is renamed, so please apply and commit changes',
61 61
                 $featureFileName,
62 62
                 $expectedFileName
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     private function rename($featurePath, $newFileName)
119 119
     {
120 120
         $dir = pathinfo($featurePath, PATHINFO_DIRNAME);
121
-        $newFeaturePath = $dir.DIRECTORY_SEPARATOR.$newFileName;
121
+        $newFeaturePath = $dir . DIRECTORY_SEPARATOR . $newFileName;
122 122
 
123 123
         if (is_file($newFeaturePath)) {
124 124
             $this->errors[] = sprintf('File "%s" cannot be renamed to "%s"', $featurePath, $newFeaturePath);
Please login to merge, or discard this patch.
src/Oro/Bundle/TestFrameworkBundle/Behat/HealthChecker/FixturesChecker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,9 +120,9 @@
 block discarded – undo
120 120
     private function addDetails(&$message, BeforeFeatureTested $event, $exception)
121 121
     {
122 122
         $message = sprintf(
123
-            $message.PHP_EOL.
124
-            '   Suite: %s'.PHP_EOL.
125
-            '   Feature: %s'.PHP_EOL.
123
+            $message . PHP_EOL .
124
+            '   Suite: %s' . PHP_EOL .
125
+            '   Feature: %s' . PHP_EOL .
126 126
             '   %s',
127 127
             $event->getSuite()->getName(),
128 128
             $event->getFeature()->getFile(),
Please login to merge, or discard this patch.
src/Oro/Bundle/TestFrameworkBundle/Behat/Listener/JsLogSubscriber.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
     {
44 44
         $this->mink = $mink;
45 45
         $this->logDir = $logDir;
46
-        $this->logFile = $this->logDir.DIRECTORY_SEPARATOR.'behat_'.LogType::BROWSER.'.log';
46
+        $this->logFile = $this->logDir . DIRECTORY_SEPARATOR . 'behat_' . LogType::BROWSER . '.log';
47 47
     }
48 48
 
49 49
     /**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         foreach ($content as $item) {
115 115
             $time = isset($item['timestamp'])
116
-                ? '@'.round($item['timestamp']/1000)
116
+                ? '@' . round($item['timestamp'] / 1000)
117 117
                 : 'now';
118 118
             $dateTime = new \DateTime($time);
119 119
             $level = isset($item['level'])
Please login to merge, or discard this patch.
src/Oro/Bundle/OrganizationBundle/Tests/Functional/ControllersTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $request = array(
33 33
             "user" => array(
34 34
                 "username" => 'user_' . mt_rand(),
35
-                "email" => 'test_'  . mt_rand() . '@test.com',
35
+                "email" => 'test_' . mt_rand() . '@test.com',
36 36
                 "enabled" => '1',
37 37
                 "plainPassword" => '1231231q',
38 38
                 "firstName" => "firstName",
Please login to merge, or discard this patch.
src/Oro/Bundle/CurrencyBundle/Formatter/MoneyValueTypeFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $roundedValue = $this->roundingService->round($value);
54 54
         return $this->formatter->formatDecimal(
55 55
             $roundedValue,
56
-            [ 'fraction_digits' => $this->roundingService->getPrecision() ]
56
+            ['fraction_digits' => $this->roundingService->getPrecision()]
57 57
         );
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
src/Oro/Bundle/CurrencyBundle/Formatter/NumberFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
         $replaceSymbols = array_filter(
54 54
             [$currency, $currencySymbol, $currencyIntlSymbol],
55
-            function ($symbol) use ($localizedCurrencySymbol) {
55
+            function($symbol) use ($localizedCurrencySymbol) {
56 56
                 return $symbol !== $localizedCurrencySymbol;
57 57
             }
58 58
         );
Please login to merge, or discard this patch.
LayoutBundle/Tests/Unit/DependencyInjection/OroLayoutExtensionTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -209,11 +209,11 @@
 block discarded – undo
209 209
         ksort($resources);
210 210
         array_walk(
211 211
             $resources,
212
-            function (&$resource) {
212
+            function(&$resource) {
213 213
                 ksort($resource);
214 214
                 array_walk(
215 215
                     $resource,
216
-                    function (&$subResource) {
216
+                    function(&$subResource) {
217 217
                         sort($subResource);
218 218
                     }
219 219
                 );
Please login to merge, or discard this patch.
src/Oro/Bundle/LayoutBundle/Assetic/LayoutResource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             if (!isset($asset['output']) || empty($asset['inputs'])) {
109 109
                 continue;
110 110
             }
111
-            $name = self::RESOURCE_ALIAS . '_' . $theme->getName(). '_' . $assetKey;
111
+            $name = self::RESOURCE_ALIAS . '_' . $theme->getName() . '_' . $assetKey;
112 112
             $asset = $this->prepareAssets($asset);
113 113
             $formulae[$name] = [
114 114
                 $asset['inputs'],
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         }
223 223
         $inputs = array_merge($settingsInputs, $variablesInputs, $restInputs);
224 224
 
225
-        $file = $this->outputDir . '/' . $output . '.'. $extension;
225
+        $file = $this->outputDir . '/' . $output . '.' . $extension;
226 226
 
227 227
         $mtime = $this->getLastModified($inputs);
228 228
         if (!array_key_exists($file, $this->mtimeOutputs) || $this->mtimeOutputs[$file] < $mtime) {
Please login to merge, or discard this patch.