Failed Conditions
Pull Request — 4.0 (#4409)
by Kentaro
05:58
created
src/Eccube/Controller/EntryController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
             ]
252 252
         );
253 253
 
254
-        if(!is_null($qtyInCart)) {
254
+        if (!is_null($qtyInCart)) {
255 255
 
256 256
             return [
257 257
                 'qtyInCart' => $qtyInCart,
Please login to merge, or discard this patch.
src/Eccube/Command/InstallerCommand.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -245,6 +245,9 @@
 block discarded – undo
245 245
         $this->io->success('EC-CUBE installation successful.');
246 246
     }
247 247
 
248
+    /**
249
+     * @param string $databaseUrl
250
+     */
248 251
     protected function getDatabaseName($databaseUrl)
249 252
     {
250 253
         if (0 === strpos($databaseUrl, 'sqlite')) {
Please login to merge, or discard this patch.
src/Eccube/Controller/AbstractController.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -112,6 +112,9 @@  discard block
 block discarded – undo
112 112
         $this->eventDispatcher = $eventDispatcher;
113 113
     }
114 114
 
115
+    /**
116
+     * @param string $message
117
+     */
115 118
     public function addSuccess($message, $namespace = 'front')
116 119
     {
117 120
         $this->session->getFlashBag()->add('eccube.'.$namespace.'.success', $message);
@@ -122,6 +125,9 @@  discard block
 block discarded – undo
122 125
         $this->session->getFlashBag()->add('eccube.'.$namespace.'.error', $message);
123 126
     }
124 127
 
128
+    /**
129
+     * @param string $message
130
+     */
125 131
     public function addDanger($message, $namespace = 'front')
126 132
     {
127 133
         $this->session->getFlashBag()->add('eccube.'.$namespace.'.danger', $message);
@@ -132,6 +138,9 @@  discard block
 block discarded – undo
132 138
         $this->session->getFlashBag()->add('eccube.'.$namespace.'.warning', $message);
133 139
     }
134 140
 
141
+    /**
142
+     * @param string $message
143
+     */
135 144
     public function addInfo($message, $namespace = 'front')
136 145
     {
137 146
         $this->session->getFlashBag()->add('eccube.'.$namespace.'.info', $message);
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/CsvImportController.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -1347,6 +1347,7 @@
 block discarded – undo
1347 1347
 
1348 1348
     /**
1349 1349
      * 登録、更新時のエラー画面表示
1350
+     * @param string $message
1350 1351
      */
1351 1352
     protected function addErrors($message)
1352 1353
     {
Please login to merge, or discard this patch.
src/Eccube/Entity/AbstractEntity.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 namespace Eccube\Entity;
15 15
 
16
-use Doctrine\Common\Annotations\Reader;
17 16
 use Doctrine\Common\Collections\Collection;
18 17
 use Doctrine\Common\Inflector\Inflector;
19 18
 use Doctrine\ORM\Mapping\Id;
Please login to merge, or discard this patch.
src/Eccube/Event/TemplateEvent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
     }
111 111
 
112 112
     /**
113
-     * @param $key
113
+     * @param string $key
114 114
      * @param $value
115 115
      */
116 116
     public function setParameter($key, $value)
Please login to merge, or discard this patch.
src/Eccube/Form/Validator/EmailValidator.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 
16 16
 use Eccube\Validator\EmailValidator\NoRFCEmailValidator;
17 17
 use Symfony\Component\Validator\Constraint;
18
-use Symfony\Component\Validator\Constraints\EmailValidator as BaseEmailValidator;
19 18
 use Symfony\Component\Validator\ConstraintValidator;
19
+use Symfony\Component\Validator\Constraints\EmailValidator as BaseEmailValidator;
20 20
 use Symfony\Component\Validator\Exception\UnexpectedTypeException;
21 21
 
22 22
 /**
Please login to merge, or discard this patch.
src/Eccube/Resource/functions/log.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@  discard block
 block discarded – undo
37 37
     $logger->error($message, $context);
38 38
 }
39 39
 
40
+/**
41
+ * @param string $message
42
+ */
40 43
 function log_warning($message, array $context = [])
41 44
 {
42 45
     $logger = LoggerFacade::create();
@@ -55,6 +58,9 @@  discard block
 block discarded – undo
55 58
     $logger->info($message, $context);
56 59
 }
57 60
 
61
+/**
62
+ * @param string $message
63
+ */
58 64
 function log_debug($message, array $context = [])
59 65
 {
60 66
     $logger = LoggerFacade::create();
Please login to merge, or discard this patch.
src/Eccube/Service/CsvExportService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 use Eccube\Repository\OrderRepository;
29 29
 use Eccube\Repository\ProductRepository;
30 30
 use Eccube\Repository\ShippingRepository;
31
-use Eccube\Util\EntityUtil;
32 31
 use Eccube\Util\FormUtil;
33 32
 use Symfony\Component\Form\FormFactoryInterface;
34 33
 use Symfony\Component\HttpFoundation\Request;
Please login to merge, or discard this patch.