Completed
Push — dev/product_visibility ( 1ee472...5f956d )
by Kiyotaka
10:56 queued 05:04
created
tests/Eccube/Tests/Web/Admin/Content/NewsControllerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
73 73
         $this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl));
74 74
     }
75 75
 
76
+    /**
77
+     * @param \Eccube\Entity\Member $TestCreator
78
+     */
76 79
     private function createNews($TestCreator, $sortNo = 1)
77 80
     {
78 81
         $TestNews = new \Eccube\Entity\News();
Please login to merge, or discard this patch.
tests/Eccube/Tests/Web/Admin/Order/CsvImportControllerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -197,6 +197,9 @@
 block discarded – undo
197 197
         self::assertEquals($this->parseDate('2018-03-22'), $Shipping3->getShippingDate());
198 198
     }
199 199
 
200
+    /**
201
+     * @param string $value
202
+     */
200 203
     private function parseDate($value)
201 204
     {
202 205
         $result = \DateTime::createFromFormat('Y-m-d', $value);
Please login to merge, or discard this patch.
tests/Eccube/Tests/Web/Admin/Product/ClassCategoryContorllerTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -243,6 +243,9 @@  discard block
 block discarded – undo
243 243
         $this->assertContains($this->expected, $this->actual);
244 244
     }
245 245
 
246
+    /**
247
+     * @param \Eccube\Entity\Member $TestCreator
248
+     */
246 249
     private function newTestClassName($TestCreator)
247 250
     {
248 251
         $TestClassName = new \Eccube\Entity\ClassName();
@@ -253,6 +256,10 @@  discard block
 block discarded – undo
253 256
         return $TestClassName;
254 257
     }
255 258
 
259
+    /**
260
+     * @param \Eccube\Entity\Member $TestCreator
261
+     * @param \Eccube\Entity\ClassName $TestClassName
262
+     */
256 263
     private function newTestClassCategory($TestCreator, $TestClassName)
257 264
     {
258 265
         $TestClassCategory = new \Eccube\Entity\ClassCategory();
Please login to merge, or discard this patch.
tests/Eccube/Tests/Web/Admin/Setting/System/AuthorityControllerTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -198,9 +198,9 @@
 block discarded – undo
198 198
     }
199 199
 
200 200
     /**
201
-     * @param null $AuthorityRole
201
+     * @param \Eccube\Entity\AuthorityRole $AuthorityRole
202 202
      *
203
-     * @return array
203
+     * @return string
204 204
      */
205 205
     protected function createFormData($AuthorityRole = null)
206 206
     {
Please login to merge, or discard this patch.
tests/Eccube/Tests/Web/Admin/Setting/System/MasterdataControllerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -423,7 +423,7 @@
 block discarded – undo
423 423
     /**
424 424
      * @param string $entity
425 425
      *
426
-     * @return array
426
+     * @return string
427 427
      */
428 428
     protected function createFormDataEdit($entity = 'Eccube-Entity-Master-Sex')
429 429
     {
Please login to merge, or discard this patch.
tests/Eccube/Tests/Web/CartValidationTest.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2575,7 +2575,7 @@  discard block
 block discarded – undo
2575 2575
      * @param ProductClass $ProductClass
2576 2576
      * @param int $num
2577 2577
      *
2578
-     * @return mixed
2578
+     * @return \Symfony\Component\DomCrawler\Crawler|null
2579 2579
      */
2580 2580
     protected function scenarioCartIn(Customer $Customer, ProductClass $ProductClass, $num = 1)
2581 2581
     {
@@ -2596,7 +2596,7 @@  discard block
 block discarded – undo
2596 2596
     /**
2597 2597
      * @param $client
2598 2598
      *
2599
-     * @return mixed
2599
+     * @return \Symfony\Component\DomCrawler\Crawler|null
2600 2600
      */
2601 2601
     protected function scenarioConfirm(Customer $Customer, ProductClass $ProductClass)
2602 2602
     {
@@ -2612,7 +2612,7 @@  discard block
 block discarded – undo
2612 2612
      * @param string $confirmUrl
2613 2613
      * @param array $arrShopping
2614 2614
      *
2615
-     * @return mixed
2615
+     * @return \Symfony\Component\DomCrawler\Crawler|null
2616 2616
      */
2617 2617
     protected function scenarioComplete(Customer $Customer, $confirmUrl = '', $arrShopping = [])
2618 2618
     {
@@ -2648,7 +2648,7 @@  discard block
 block discarded – undo
2648 2648
      * @param $client
2649 2649
      * @param $productClassId
2650 2650
      *
2651
-     * @return mixed
2651
+     * @return \Symfony\Component\DomCrawler\Crawler|null
2652 2652
      */
2653 2653
     protected function scenarioCartUp(Customer $Customer, ProductClass $ProductClass)
2654 2654
     {
@@ -2733,7 +2733,7 @@  discard block
 block discarded – undo
2733 2733
     }
2734 2734
 
2735 2735
     /**
2736
-     * @param null $productName
2736
+     * @param string $productName
2737 2737
      * @param int  $productClassNum
2738 2738
      * @param int  $stock
2739 2739
      *
Please login to merge, or discard this patch.
src/Eccube/Doctrine/Query/WhereClause.php 1 patch
Doc Comments   +30 added lines, -28 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
      *      WhereClause::eq('name', ':Name', 'hoge')
60 60
      *      WhereClause::eq('name', ':Name', ['Name' => 'hoge'])
61 61
      *
62
-     * @param $x
63
-     * @param $y
62
+     * @param string $x
63
+     * @param string $y
64 64
      * @param $param
65 65
      *
66 66
      * @return WhereClause
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
      *      WhereClause::neq('name', ':Name', 'hoge')
78 78
      *      WhereClause::neq('name', ':Name', ['Name' => 'hoge'])
79 79
      *
80
-     * @param $x
81
-     * @param $y
82
-     * @param $param
80
+     * @param string $x
81
+     * @param string $y
82
+     * @param string $param
83 83
      *
84 84
      * @return WhereClause
85 85
      */
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * Example:
95 95
      *      WhereClause::isNull('name')
96 96
      *
97
-     * @param $x
97
+     * @param string $x
98 98
      *
99 99
      * @return WhereClause
100 100
      */
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * Example:
110 110
      *      WhereClause::isNotNull('name')
111 111
      *
112
-     * @param $x
112
+     * @param string $x
113 113
      *
114 114
      * @return WhereClause
115 115
      */
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
      *      WhereClause::like('name', ':Name', '%hoge')
126 126
      *      WhereClause::like('name', ':Name', ['Name' => '%hoge'])
127 127
      *
128
-     * @param $x
129
-     * @param $y
130
-     * @param $param
128
+     * @param string $x
129
+     * @param string $y
130
+     * @param string $param
131 131
      *
132 132
      * @return WhereClause
133 133
      */
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
      *      WhereClause::notLike('name', ':Name', '%hoge')
144 144
      *      WhereClause::notLike('name', ':Name', ['Name' => '%hoge'])
145 145
      *
146
-     * @param $x
147
-     * @param $y
148
-     * @param $param
146
+     * @param string $x
147
+     * @param string $y
148
+     * @param string $param
149 149
      *
150 150
      * @return WhereClause
151 151
      */
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
      *      WhereClause::in('name', ':Names', ['foo', 'bar'])
162 162
      *      WhereClause::in('name', ':Names', ['Names' => ['foo', 'bar']])
163 163
      *
164
-     * @param $x
165
-     * @param $y
164
+     * @param string $x
165
+     * @param string $y
166 166
      * @param $param
167 167
      *
168 168
      * @return WhereClause
@@ -184,8 +184,8 @@  discard block
 block discarded – undo
184 184
      *      WhereClause::notIn('name', ':Names', ['foo', 'bar'])
185 185
      *      WhereClause::notIn('name', ':Names', ['Names' => ['foo', 'bar']])
186 186
      *
187
-     * @param $x
188
-     * @param $y
187
+     * @param string $x
188
+     * @param string $y
189 189
      * @param $param
190 190
      *
191 191
      * @return WhereClause
@@ -202,9 +202,9 @@  discard block
 block discarded – undo
202 202
      *      WhereClause::between('price', ':PriceMin', ':PriceMax', [1000, 2000])
203 203
      *      WhereClause::between('price', ':PriceMin', ':PriceMax', ['PriceMin' => 1000, 'PriceMax' => 2000])
204 204
      *
205
-     * @param $var
206
-     * @param $x
207
-     * @param $y
205
+     * @param string $var
206
+     * @param string $x
207
+     * @param string $y
208 208
      * @param $params
209 209
      *
210 210
      * @return WhereClause
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
      *      WhereClause::gt('price', ':Price', 1000)
222 222
      *      WhereClause::gt('price', ':Price', ['Price' => 1000])
223 223
      *
224
-     * @param $x
225
-     * @param $y
224
+     * @param string $x
225
+     * @param string $y
226 226
      * @param $param
227 227
      *
228 228
      * @return WhereClause
@@ -239,8 +239,8 @@  discard block
 block discarded – undo
239 239
      *      WhereClause::gte('price', ':Price', 1000)
240 240
      *      WhereClause::gte('price', ':Price', ['Price' => 1000])
241 241
      *
242
-     * @param $x
243
-     * @param $y
242
+     * @param string $x
243
+     * @param string $y
244 244
      * @param $param
245 245
      *
246 246
      * @return WhereClause
@@ -257,8 +257,8 @@  discard block
 block discarded – undo
257 257
      *      WhereClause::lt('price', ':Price', 1000)
258 258
      *      WhereClause::lt('price', ':Price', ['Price' => 1000])
259 259
      *
260
-     * @param $x
261
-     * @param $y
260
+     * @param string $x
261
+     * @param string $y
262 262
      * @param $param
263 263
      *
264 264
      * @return WhereClause
@@ -275,8 +275,8 @@  discard block
 block discarded – undo
275 275
      *      WhereClause::lte('price', ':Price', 1000)
276 276
      *      WhereClause::lte('price', ':Price', ['Price' => 1000])
277 277
      *
278
-     * @param $x
279
-     * @param $y
278
+     * @param string $x
279
+     * @param string $y
280 280
      * @param $param
281 281
      *
282 282
      * @return WhereClause
@@ -294,6 +294,7 @@  discard block
 block discarded – undo
294 294
      *          WhereClause::eq('price', ':price', 1000),
295 295
      *      )
296 296
      * @param WhereClause ...$list
297
+     * @param WhereClause[] $list
297 298
      * @return WhereClause
298 299
      */
299 300
     public static function and(WhereClause ...$list)
@@ -317,6 +318,7 @@  discard block
 block discarded – undo
317 318
      *          WhereClause::eq('status', ':status2', '2'),
318 319
      *      )
319 320
      * @param WhereClause ...$list
321
+     * @param WhereClause[] $list
320 322
      * @return WhereClause
321 323
      */
322 324
     public static function or(WhereClause ...$list)
Please login to merge, or discard this patch.
tests/Eccube/Tests/EccubeTestCase.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,6 +228,9 @@  discard block
 block discarded – undo
228 228
     /**
229 229
      * LoginHistory オブジェクトを生成して返す
230 230
      *
231
+     * @param string $user_name
232
+     * @param string $client_ip
233
+     * @param \Eccube\Entity\Member $Member
231 234
      * @return \Eccube\Entity\LoginHistory
232 235
      */
233 236
     public function createLoginHistory($user_name, $client_ip = null, $status = 0, $Member = null)
@@ -241,7 +244,7 @@  discard block
 block discarded – undo
241 244
      * このメソッドは、参照制約の関係で、 Doctrine ORM ではデータ削除できない場合に使用する.
242 245
      * 通常は、 EntityManager::remove() を使用して削除すること.
243 246
      *
244
-     * @param array $tables 削除対象のテーブル名の配列
247
+     * @param string[] $tables 削除対象のテーブル名の配列
245 248
      */
246 249
     public function deleteAllRows(array $tables)
247 250
     {
@@ -426,7 +429,7 @@  discard block
 block discarded – undo
426 429
      *
427 430
      * @param string $csrfTokenId The token ID (e.g. `authenticate`, `<FormTypeBlockPrefix>`)
428 431
      *
429
-     * @return CsrfToken The CSRF token
432
+     * @return Customer The CSRF token
430 433
      *
431 434
      * @see \Symfony\Component\Security\Csrf\CsrfTokenManagerInterface
432 435
      * @see https://stackoverflow.com/a/38661340/4956633
Please login to merge, or discard this patch.