Completed
Push — support-coverage ( 9a8e61...2263e6 )
by Kentaro
34:05
created
src/Eccube/Controller/NonMemberShoppingController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -432,7 +432,7 @@
 block discarded – undo
432 432
      *
433 433
      * @param array $data リクエストパラメータ
434 434
      *
435
-     * @return array
435
+     * @return \Symfony\Component\Validator\ConstraintViolationListInterface[]
436 436
      */
437 437
     protected function customerValidation(array &$data)
438 438
     {
Please login to merge, or discard this patch.
src/Eccube/DependencyInjection/EccubeExtension.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@  discard block
 block discarded – undo
73 73
         $this->configureTranslations($container, $enabled, $pluginDir);
74 74
     }
75 75
 
76
+    /**
77
+     * @param string $pluginDir
78
+     */
76 79
     protected function configureTwigPaths(ContainerBuilder $container, $enabled, $pluginDir)
77 80
     {
78 81
         $paths = [];
@@ -92,6 +95,9 @@  discard block
 block discarded – undo
92 95
         }
93 96
     }
94 97
 
98
+    /**
99
+     * @param string $pluginDir
100
+     */
95 101
     protected function configureTranslations(ContainerBuilder $container, $enabled, $pluginDir)
96 102
     {
97 103
         $paths = [];
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
         $stmt = $conn->query('select * from dtb_plugin');
57 57
         $plugins = $stmt->fetchAll();
58 58
 
59
-        $enabled = array_filter($plugins, function ($plugin) {
59
+        $enabled = array_filter($plugins, function($plugin) {
60 60
             return true === (bool) $plugin['enabled'];
61 61
         });
62 62
 
63
-        $disabled = array_filter($plugins, function ($plugin) {
63
+        $disabled = array_filter($plugins, function($plugin) {
64 64
             return false === (bool) $plugin['enabled'];
65 65
         });
66 66
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         $sm = $conn->getSchemaManager();
127 127
         $tables = array_filter(
128 128
             $sm->listTables(),
129
-            function ($table) {
129
+            function($table) {
130 130
                 return $table->getName() === 'dtb_plugin';
131 131
             }
132 132
         );
Please login to merge, or discard this patch.
src/Eccube/Doctrine/Query/JoinClause.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     /**
56 56
      * JoinClause constructor.
57 57
      *
58
-     * @param $leftJoin
58
+     * @param boolean $leftJoin
59 59
      * @param $join
60 60
      * @param $alias
61 61
      * @param $conditionType
Please login to merge, or discard this patch.
src/Eccube/Doctrine/Query/WhereClause.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@
 block discarded – undo
50 50
         $this->params = $params;
51 51
     }
52 52
 
53
+    /**
54
+     * @param Expr\Comparison $expr
55
+     */
53 56
     private static function newWhereClause($expr, $x, $y)
54 57
     {
55 58
         if ($y) {
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/ProductClassEditType.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -270,6 +270,9 @@
 block discarded – undo
270 270
         });
271 271
     }
272 272
 
273
+    /**
274
+     * @param string $key
275
+     */
273 276
     protected function addErrors($key, FormInterface $form, ConstraintViolationListInterface $errors)
274 277
     {
275 278
         foreach ($errors as $error) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         if (!$this->baseInfoRepository->get()->isOptionProductTaxRule()) {
165 165
             return;
166 166
         }
167
-        $builder->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
167
+        $builder->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
168 168
             $data = $event->getData();
169 169
             if (!$data instanceof ProductClass) {
170 170
                 return;
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     protected function setCheckbox(FormBuilderInterface $builder)
185 185
     {
186
-        $builder->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) {
186
+        $builder->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) {
187 187
             $data = $event->getData();
188 188
             if (!$data instanceof ProductClass) {
189 189
                 return;
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             }
195 195
         });
196 196
 
197
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
197
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
198 198
             $form = $event->getForm();
199 199
             $data = $event->getData();
200 200
             $data->setVisible($form['checked']->getData() ? true : false);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
     protected function addValidations(FormBuilderInterface $builder)
205 205
     {
206
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
206
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) {
207 207
             $form = $event->getForm();
208 208
             $data = $form->getData();
209 209
 
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Front/CustomerAddressType.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
     protected $eccubeConfig;
48 48
 
49 49
     /**
50
-     * @param array $config
51 50
      */
52 51
     public function __construct(EccubeConfig $eccubeConfig)
53 52
     {
Please login to merge, or discard this patch.
src/Eccube/Form/Type/SearchProductType.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,6 @@
 block discarded – undo
48 48
     /**
49 49
      * SearchProductType constructor.
50 50
      *
51
-     * @param Application $app
52 51
      */
53 52
     public function __construct(CategoryRepository $categoryRepository)
54 53
     {
Please login to merge, or discard this patch.
src/Eccube/Repository/BlockRepository.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param $block_id
64 64
      * @param $DeviceType
65 65
      *
66
-     * @return array|\Eccube\Entity\Block
66
+     * @return Block|null
67 67
      */
68 68
     public function findOrCreate($block_id, $DeviceType)
69 69
     {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      *
125 125
      * @param  \Eccube\Entity\Master\DeviceType $DeviceType
126 126
      *
127
-     * @return array
127
+     * @return null|\Symfony\Component\HttpFoundation\Request
128 128
      */
129 129
     public function getList($DeviceType)
130 130
     {
Please login to merge, or discard this patch.
src/Eccube/Repository/TaxRuleRepository.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      * @param  int|null|\Eccube\Entity\Master\Pref    $Pref         都道府県
101 101
      * @param  int|null|\Eccube\Entity\Master\Country $Country      国
102 102
      *
103
-     * @return \Eccube\Entity\TaxRule                 税設定情報
103
+     * @return integer                 税設定情報
104 104
      *
105 105
      * @throws NoResultException
106 106
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
         }
229 229
 
230 230
         // 適用日降順, sortNo 降順にソートする
231
-        usort($TaxRules, function ($a, $b) {
231
+        usort($TaxRules, function($a, $b) {
232 232
             return $a->compareTo($b);
233 233
         });
234 234
 
Please login to merge, or discard this patch.