Failed Conditions
Pull Request — 4.0 (#4910)
by
unknown
05:39
created
src/Eccube/Controller/Admin/Product/ProductController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -550,7 +550,7 @@
 block discarded – undo
550 550
                     if (!$this->productImageRepository->findOneBy(['file_name' => $delete_image])) {
551 551
                         // 削除
552 552
                         $fs = new Filesystem();
553
-                        $fs->remove($this->eccubeConfig['eccube_save_image_dir'] . '/' . $delete_image);
553
+                        $fs->remove($this->eccubeConfig['eccube_save_image_dir'].'/'.$delete_image);
554 554
                     }
555 555
                 }
556 556
                 $this->entityManager->persist($Product);
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CsvImportController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
                     '%from%' => $this->convertLineNo(2),
893 893
                     '%to%' => $this->currentLineNo]),
894 894
                 'errors' => $this->errors,
895
-                'error_message' => trans('admin.common.csv_upload_line_error',[
895
+                'error_message' => trans('admin.common.csv_upload_line_error', [
896 896
                     '%from%' => $this->convertLineNo(2)])
897 897
             ]);
898 898
         }
@@ -1641,7 +1641,7 @@  discard block
 block discarded – undo
1641 1641
             return $this->json(['success' => true, 'file_name' => $fileName, 'max_file_no' => $fileNo]);
1642 1642
         }
1643 1643
 
1644
-        return $this->json(['success' => false, 'message' => $form->getErrors(true ,true)]);
1644
+        return $this->json(['success' => false, 'message' => $form->getErrors(true, true)]);
1645 1645
     }
1646 1646
 
1647 1647
     /**
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/MasterdataType.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
                     // OrderStatus/OrderStatusColorは対象外
68 68
                     // @see https://github.com/EC-CUBE/ec-cube/pull/4844
69
-                    if (in_array($meta->getName(), [OrderStatus::class, OrderStatusColor::class, CustomerOrderStatus::class,])) {
69
+                    if (in_array($meta->getName(), [OrderStatus::class, OrderStatusColor::class, CustomerOrderStatus::class, ])) {
70 70
                         continue;
71 71
                     }
72 72
 
Please login to merge, or discard this patch.
src/Eccube/EventListener/MaintenanceListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $baseUrl = htmlspecialchars(\rawurldecode($request->getBaseUrl()), ENT_QUOTES);
67 67
 
68 68
         \ob_start();
69
-        require __DIR__ . '/../../../maintenance.php';
69
+        require __DIR__.'/../../../maintenance.php';
70 70
         $response = new Response(\ob_get_clean(), 503);
71 71
         $event->setResponse($response);
72 72
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     private function safelyUnserialize($serializedToken)
91 91
     {
92 92
         $e = $token = null;
93
-        $prevUnserializeHandler = \ini_set('unserialize_callback_func', __CLASS__ . '::handleUnserializeCallback');
93
+        $prevUnserializeHandler = \ini_set('unserialize_callback_func', __CLASS__.'::handleUnserializeCallback');
94 94
         $prevErrorHandler = \set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) {
95 95
             if (__FILE__ === $file) {
96 96
                 throw new \UnexpectedValueException($msg, 0x37313bc);
@@ -120,6 +120,6 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public static function handleUnserializeCallback($class)
122 122
     {
123
-        throw new \UnexpectedValueException('Class not found: ' . $class, 0x37313bc);
123
+        throw new \UnexpectedValueException('Class not found: '.$class, 0x37313bc);
124 124
     }
125 125
 }
Please login to merge, or discard this patch.