Failed Conditions
Pull Request — master (#1798)
by Kentaro
691:01 queued 682:45
created
eccube_install.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 out('EC-CUBE3 installer use database driver of ', null, false);
32 32
 
33 33
 $database_driver = 'pdo_sqlite';
34
-switch($argv[1]) {
34
+switch ($argv[1]) {
35 35
     case 'mysql':
36 36
         $database_driver = 'pdo_mysql';
37 37
         break;
@@ -350,15 +350,15 @@  discard block
 block discarded – undo
350 350
     foreach ($finder as $content) {
351 351
         $permission = $content->getPerms();
352 352
         // see also http://www.php.net/fileperms
353
-        if (!($permission & 0x0010) || !($permission & 0x0002)) {
353
+        if (!($permission&0x0010) || !($permission&0x0002)) {
354 354
             $realPath = $content->getRealPath();
355 355
             if ($verbose) {
356 356
                 out(sprintf('%s %s to ', $realPath, substr(sprintf('%o', $permission), -4)), 'info', false);
357 357
             }
358
-            $permission = !($permission & 0x0020) ? $permission += 040 : $permission; // g+r
359
-            $permission = !($permission & 0x0010) ? $permission += 020 : $permission; // g+w
360
-            $permission = !($permission & 0x0004) ? $permission += 04 : $permission;  // o+r
361
-            $permission = !($permission & 0x0002) ? $permission += 02 : $permission;  // o+w
358
+            $permission = !($permission&0x0020) ? $permission += 040 : $permission; // g+r
359
+            $permission = !($permission&0x0010) ? $permission += 020 : $permission; // g+w
360
+            $permission = !($permission&0x0004) ? $permission += 04 : $permission; // o+r
361
+            $permission = !($permission&0x0002) ? $permission += 02 : $permission; // o+w
362 362
             $result = chmod($realPath, $permission);
363 363
             if ($verbose) {
364 364
                 if ($result) {
@@ -389,13 +389,13 @@  discard block
 block discarded – undo
389 389
 
390 390
 function getConfig()
391 391
 {
392
-    $config = array (
392
+    $config = array(
393 393
         'auth_magic' => \Eccube\Util\Str::random(32),
394 394
         'password_hash_algos' => 'sha256',
395 395
         'shop_name' => getenv('SHOP_NAME'),
396 396
         'force_ssl' => NULL,
397 397
         'admin_allow_host' =>
398
-        array (
398
+        array(
399 399
         ),
400 400
         'cookie_lifetime' => 0,
401 401
         'locale' => 'ja',
@@ -407,9 +407,9 @@  discard block
 block discarded – undo
407 407
 
408 408
 function getDatabaseConfig($database_driver)
409 409
 {
410
-    $database = array (
410
+    $database = array(
411 411
         'database' =>
412
-        array (
412
+        array(
413 413
             'driver' => $database_driver,
414 414
         )
415 415
     );
@@ -436,9 +436,9 @@  discard block
 block discarded – undo
436 436
 
437 437
 function getMailConfig()
438 438
 {
439
-    $mail = array (
439
+    $mail = array(
440 440
         'mail' =>
441
-        array (
441
+        array(
442 442
             'transport' => getenv('MAIL_BACKEND'),
443 443
             'host' => getenv('MAIL_HOST'),
444 444
             'port' => getenv('MAIL_PORT'),
Please login to merge, or discard this patch.