Failed Conditions
Pull Request — experimental/sf (#3225)
by Kentaro
58:20 queued 49:13
created
src/Eccube/Controller/Admin/Setting/System/MasterdataController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
                 $entity = new $entityName();
173 173
                 $sortNo = 0;
174 174
                 $ids = array_map(
175
-                    function ($v) {
175
+                    function($v) {
176 176
                         return $v['id'];
177 177
                     },
178 178
                     $data['data']
Please login to merge, or discard this patch.
src/Eccube/Service/PluginService.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,6 @@
 block discarded – undo
33 33
 use Eccube\Entity\Plugin;
34 34
 use Eccube\Entity\PluginEventHandler;
35 35
 use Eccube\Exception\PluginException;
36
-use Eccube\Plugin\ConfigManager;
37 36
 use Eccube\Plugin\ConfigManager as PluginConfigManager;
38 37
 use Eccube\Repository\PluginEventHandlerRepository;
39 38
 use Eccube\Repository\PluginRepository;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
         @mkdir($outputDir);
494 494
 
495 495
         $enabledPluginCodes = array_map(
496
-            function ($p) { return $p->getCode(); },
496
+            function($p) { return $p->getCode(); },
497 497
             $this->pluginRepository->findAllEnabled()
498 498
         );
499 499
 
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
             }
509 509
         }
510 510
 
511
-        $enabledPluginEntityDirs = array_map(function ($code) {
511
+        $enabledPluginEntityDirs = array_map(function($code) {
512 512
             return $this->projectRoot."/app/Plugin/${code}/Entity";
513 513
         }, $enabledPluginCodes);
514 514
 
@@ -937,7 +937,7 @@  discard block
 block discarded – undo
937 937
     {
938 938
         $result = array_keys($packages);
939 939
         if ($getVersion) {
940
-            $result = array_map(function ($package, $version) {
940
+            $result = array_map(function($package, $version) {
941 941
                 return $package.':'.$version;
942 942
             }, array_keys($packages), array_values($packages));
943 943
         }
Please login to merge, or discard this patch.
Doc Comments   +13 added lines, -7 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      * @param string $path   path to tar.gz/zip plugin file
148 148
      * @param int    $source
149 149
      *
150
-     * @return mixed
150
+     * @return boolean
151 151
      *
152 152
      * @throws PluginException
153 153
      * @throws \Exception
@@ -274,8 +274,8 @@  discard block
 block discarded – undo
274 274
     }
275 275
 
276 276
     /**
277
-     * @param $archive
278
-     * @param $dir
277
+     * @param string $archive
278
+     * @param string $dir
279 279
      *
280 280
      * @throws PluginException
281 281
      */
@@ -344,6 +344,9 @@  discard block
 block discarded – undo
344 344
         }
345 345
     }
346 346
 
347
+    /**
348
+     * @param string $yml
349
+     */
347 350
     public function readYml($yml)
348 351
     {
349 352
         if (file_exists($yml)) {
@@ -361,6 +364,9 @@  discard block
 block discarded – undo
361 364
         // ディレクトリ名などに使われれるので厳しめ
362 365
     }
363 366
 
367
+    /**
368
+     * @param string $path
369
+     */
364 370
     public function deleteFile($path)
365 371
     {
366 372
         $f = new Filesystem();
@@ -381,7 +387,7 @@  discard block
 block discarded – undo
381 387
     }
382 388
 
383 389
     /**
384
-     * @param $d
390
+     * @param string $d
385 391
      *
386 392
      * @throws PluginException
387 393
      */
@@ -456,7 +462,7 @@  discard block
 block discarded – undo
456 462
 
457 463
     /**
458 464
      * @param $meta
459
-     * @param $method
465
+     * @param string $method
460 466
      */
461 467
     public function callPluginManagerMethod($meta, $method)
462 468
     {
@@ -997,7 +1003,7 @@  discard block
 block discarded – undo
997 1003
      * [プラグインコード]/Resource/assets
998 1004
      * 配下に置かれているファイルが所定の位置へコピーされる
999 1005
      *
1000
-     * @param $pluginBaseDir
1006
+     * @param string $pluginBaseDir
1001 1007
      * @param $pluginCode
1002 1008
      */
1003 1009
     public function copyAssets($pluginBaseDir, $pluginCode)
@@ -1033,7 +1039,7 @@  discard block
 block discarded – undo
1033 1039
      * @param string $pluginVersion
1034 1040
      * @param string $remoteVersion
1035 1041
      *
1036
-     * @return mixed
1042
+     * @return boolean
1037 1043
      */
1038 1044
     public function isUpdate($pluginVersion, $remoteVersion)
1039 1045
     {
Please login to merge, or discard this patch.
src/Eccube/ServiceProvider/PurchaseFlowServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
 {
18 18
     public function register(Container $app)
19 19
     {
20
-        $app['eccube.purchase.context'] = $app->protect(function (ItemHolderInterface $origin = null, Customer $user = null) {
20
+        $app['eccube.purchase.context'] = $app->protect(function(ItemHolderInterface $origin = null, Customer $user = null) {
21 21
             return new PurchaseContext($origin, $user);
22 22
         });
23 23
 
24
-        $app['eccube.purchase.flow.cart.item_processors'] = function (Container $app) {
24
+        $app['eccube.purchase.flow.cart.item_processors'] = function(Container $app) {
25 25
             $processors = new ArrayCollection();
26 26
             $processors[] = new Processor\DisplayStatusValidator();
27 27
             $processors[] = new Processor\SaleLimitValidator();
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             return $processors;
32 32
         };
33 33
 
34
-        $app['eccube.purchase.flow.cart.holder_processors'] = function (Container $app) {
34
+        $app['eccube.purchase.flow.cart.holder_processors'] = function(Container $app) {
35 35
             $processors = new ArrayCollection();
36 36
             $processors[] = new Processor\PaymentProcessor($app[DeliveryRepository::class]);
37 37
             $processors[] = new Processor\PaymentTotalLimitValidator($app['config']['max_total_fee']);
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             return $processors;
42 42
         };
43 43
 
44
-        $app['eccube.purchase.flow.cart'] = function (Container $app) {
44
+        $app['eccube.purchase.flow.cart'] = function(Container $app) {
45 45
             $flow = new PurchaseFlow();
46 46
             $flow->setItemProcessors($app['eccube.purchase.flow.cart.item_processors']);
47 47
             $flow->setItemHolderProcessors($app['eccube.purchase.flow.cart.holder_processors']);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             return $flow;
50 50
         };
51 51
 
52
-        $app['eccube.purchase.flow.shopping.item_processors'] = function (Container $app) {
52
+        $app['eccube.purchase.flow.shopping.item_processors'] = function(Container $app) {
53 53
             $processors = new ArrayCollection();
54 54
             $processors[] = new Processor\StockValidator();
55 55
             $processors[] = new Processor\DisplayStatusValidator();
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             return $processors;
58 58
         };
59 59
 
60
-        $app['eccube.purchase.flow.shopping.holder_processors'] = function (Container $app) {
60
+        $app['eccube.purchase.flow.shopping.holder_processors'] = function(Container $app) {
61 61
             $processors = new ArrayCollection();
62 62
             $processors[] = new Processor\PaymentTotalLimitValidator($app['config']['max_total_fee']);
63 63
             $processors[] = new Processor\DeliveryFeeProcessor($app['orm.em']);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             return $processors;
72 72
         };
73 73
 
74
-        $app['eccube.purchase.flow.shopping.purchase'] = function (Container $app) {
74
+        $app['eccube.purchase.flow.shopping.purchase'] = function(Container $app) {
75 75
             $processors = new ArrayCollection();
76 76
             if ($app[BaseInfo::class]->isOptionPoint()) {
77 77
                 $processors[] = new Processor\UsePointToCustomerPurchaseProcessor();
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             return $processors;
82 82
         };
83 83
 
84
-        $app['eccube.purchase.flow.shopping'] = function (Container $app) {
84
+        $app['eccube.purchase.flow.shopping'] = function(Container $app) {
85 85
             $flow = new PurchaseFlow();
86 86
             $flow->setItemProcessors($app['eccube.purchase.flow.shopping.item_processors']);
87 87
             $flow->setItemHolderProcessors($app['eccube.purchase.flow.shopping.holder_processors']);
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
             return $flow;
91 91
         };
92 92
 
93
-        $app['eccube.purchase.flow.order.item_processors'] = function (Container $app) {
93
+        $app['eccube.purchase.flow.order.item_processors'] = function(Container $app) {
94 94
             $processors = new ArrayCollection();
95 95
             $processors[] = new Processor\StockValidator();
96 96
 
97 97
             return $processors;
98 98
         };
99 99
 
100
-        $app['eccube.purchase.flow.order.holder_processors'] = function (Container $app) {
100
+        $app['eccube.purchase.flow.order.holder_processors'] = function(Container $app) {
101 101
             $processors = new ArrayCollection();
102 102
             $processors[] = new Processor\PaymentTotalLimitValidator($app['config']['max_total_fee']);
103 103
             $processors[] = new Processor\UpdateDatePurchaseProcessor($app['config']);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             return $processors;
111 111
         };
112 112
 
113
-        $app['eccube.purchase.flow.order.purchase'] = function (Container $app) {
113
+        $app['eccube.purchase.flow.order.purchase'] = function(Container $app) {
114 114
             $processors = new ArrayCollection();
115 115
             $processors[] = new Processor\AdminOrderRegisterPurchaseProcessor($app);
116 116
             $processors[] = new Processor\OrderCodePurchaseProcessor($app['orm.em'], $app['config']['order_code']);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             return $processors;
119 119
         };
120 120
 
121
-        $app['eccube.purchase.flow.order'] = function (Container $app) {
121
+        $app['eccube.purchase.flow.order'] = function(Container $app) {
122 122
             $flow = new PurchaseFlow();
123 123
             $flow->setItemProcessors($app['eccube.purchase.flow.order.item_processors']);
124 124
             $flow->setItemHolderProcessors($app['eccube.purchase.flow.order.holder_processors']);
Please login to merge, or discard this patch.
app/Acme/Controller/RoutingTestController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      *
28 28
      * @param Application $app
29 29
      *
30
-     * @return \Symfony\Component\HttpFoundation\Response
30
+     * @return string
31 31
      */
32 32
     public function testAdmin(Application $app)
33 33
     {
Please login to merge, or discard this patch.
codeception/_support/Interactions/DragAndDropBy.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
 
13 13
 class DragAndDropBy extends WebDriverActions
14 14
 {
15
+    /**
16
+     * @param \Facebook\WebDriver\Remote\RemoteWebElement $source
17
+     */
15 18
     public function __construct(WebDriver $driver, $source, $x_offset, $y_offset)
16 19
     {
17 20
         parent::__construct($driver);
Please login to merge, or discard this patch.
codeception/_support/Interactions/WaitAction.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
      */
15 15
     private $timeout_in_second;
16 16
 
17
+    /**
18
+     * @param integer $timeout_in_second
19
+     */
17 20
     function __construct($timeout_in_second)
18 21
     {
19 22
         $this->timeout_in_second = $timeout_in_second;
Please login to merge, or discard this patch.
codeception/_support/Page/Admin/CustomerManagePage.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -48,12 +48,18 @@  discard block
 block discarded – undo
48 48
         return $this;
49 49
     }
50 50
 
51
+    /**
52
+     * @param integer $rowNum
53
+     */
51 54
     public function 一覧_編集($rowNum)
52 55
     {
53 56
         $this->tester->click("#search_form > div.c-contentsArea__cols > div > div > div.card.rounded.border-0.mb-4 > div > table > tbody > tr:nth-child(${rowNum}) > td:nth-child(2) > a");
54 57
         return $this;
55 58
     }
56 59
 
60
+    /**
61
+     * @param integer $rowNum
62
+     */
57 63
     public function 一覧_削除($rowNum, $execute = true)
58 64
     {
59 65
         $this->tester->click("#search_form > div.c-contentsArea__cols > div > div > div.card.rounded.border-0.mb-4 > div > table > tbody > tr:nth-child(${rowNum}) > td.align-middle.pr-3 > div > div > a");
@@ -67,6 +73,9 @@  discard block
 block discarded – undo
67 73
         return $this;
68 74
     }
69 75
 
76
+    /**
77
+     * @param integer $rowNum
78
+     */
70 79
     public function 一覧_仮会員メール再送($rowNum)
71 80
     {
72 81
         $this->tester->click(['xpath' => "//*[@id='search_form']//div/table/tbody/tr[${rowNum}]/td[6]/div/div[1]/a"]);
@@ -92,6 +101,9 @@  discard block
 block discarded – undo
92 101
         $this->tester->click('#search_form > div.c-contentsArea__cols > div > div > div.row.justify-content-between.mb-2 > div.col-5.text-right > div:nth-child(2) > div > button:nth-child(2)');
93 102
     }
94 103
 
104
+    /**
105
+     * @param integer $rowNum
106
+     */
95 107
     public function 一覧_会員ID($rowNum)
96 108
     {
97 109
         return $this->tester->grabTextFrom("#search_form > div.c-contentsArea__cols > div > div > div.card.rounded.border-0.mb-4 > div > table > tbody > tr:nth-child(${rowNum}) > td.align-middle.pl-3");
Please login to merge, or discard this patch.
codeception/_support/Page/Admin/ShippingEditPage.php 1 patch
Doc Comments   +51 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@  discard block
 block discarded – undo
19 19
         parent::__construct($I);
20 20
     }
21 21
 
22
+    /**
23
+     * @param \AcceptanceTester $I
24
+     */
22 25
     public static function go($I)
23 26
     {
24 27
         $page = new self($I);
@@ -26,6 +29,9 @@  discard block
 block discarded – undo
26 29
         return $page;
27 30
     }
28 31
 
32
+    /**
33
+     * @param \AcceptanceTester $I
34
+     */
29 35
     public static function at($I)
30 36
     {
31 37
         $page = new self($I);
@@ -46,36 +52,54 @@  discard block
 block discarded – undo
46 52
         return $this;
47 53
     }
48 54
 
55
+    /**
56
+     * @param string $value
57
+     */
49 58
     public function 入力_姓($value)
50 59
     {
51 60
         $this->tester->fillField(['id' => 'shipping_name_name01'], $value);
52 61
         return $this;
53 62
     }
54 63
 
64
+    /**
65
+     * @param string $value
66
+     */
55 67
     public function 入力_名($value)
56 68
     {
57 69
         $this->tester->fillField(['id' => 'shipping_name_name02'], $value);
58 70
         return $this;
59 71
     }
60 72
 
73
+    /**
74
+     * @param string $value
75
+     */
61 76
     public function 入力_セイ($value)
62 77
     {
63 78
         $this->tester->fillField(['id' => 'shipping_kana_kana01'], $value);
64 79
         return $this;
65 80
     }
66 81
 
82
+    /**
83
+     * @param string $value
84
+     */
67 85
     public function 入力_メイ($value)
68 86
     {
69 87
         $this->tester->fillField(['id' => 'shipping_kana_kana02'], $value);
70 88
         return $this;
71 89
     }
72 90
 
91
+    /**
92
+     * @param string $value
93
+     */
73 94
     public function 入力_郵便番号1($value)
74 95
     {
75 96
         $this->tester->fillField(['id' => 'shipping_zip_zip01'], $value);
76 97
         return $this;
77 98
     }
78 99
 
100
+    /**
101
+     * @param string $value
102
+     */
79 103
     public function 入力_郵便番号2($value)
80 104
     {
81 105
         $this->tester->fillField(['id' => 'shipping_zip_zip02'], $value);
@@ -88,48 +112,72 @@  discard block
 block discarded – undo
88 112
         return $this;
89 113
     }
90 114
 
115
+    /**
116
+     * @param string $value
117
+     */
91 118
     public function 入力_市区町村名($value)
92 119
     {
93 120
         $this->tester->fillField(['id' => 'shipping_address_addr01'], $value);
94 121
         return $this;
95 122
     }
96 123
 
124
+    /**
125
+     * @param string $value
126
+     */
97 127
     public function 入力_番地_ビル名($value)
98 128
     {
99 129
         $this->tester->fillField(['id' => 'shipping_address_addr02'], $value);
100 130
         return $this;
101 131
     }
102 132
 
133
+    /**
134
+     * @param string $value
135
+     */
103 136
     public function 入力_電話番号1($value)
104 137
     {
105 138
         $this->tester->fillField(['id' => 'shipping_tel_tel01'], $value);
106 139
         return $this;
107 140
     }
108 141
 
142
+    /**
143
+     * @param string $value
144
+     */
109 145
     public function 入力_電話番号2($value)
110 146
     {
111 147
         $this->tester->fillField(['id' => 'shipping_tel_tel02'], $value);
112 148
         return $this;
113 149
     }
114 150
 
151
+    /**
152
+     * @param string $value
153
+     */
115 154
     public function 入力_電話番号3($value)
116 155
     {
117 156
         $this->tester->fillField(['id' => 'shipping_tel_tel03'], $value);
118 157
         return $this;
119 158
     }
120 159
 
160
+    /**
161
+     * @param string $value
162
+     */
121 163
     public function 入力_出荷伝票番号($value)
122 164
     {
123 165
         $this->tester->fillField(['id' => 'shipping_tracking_number'], $value);
124 166
         return $this;
125 167
     }
126 168
 
169
+    /**
170
+     * @param string[] $value
171
+     */
127 172
     public function 入力_配送業者($value)
128 173
     {
129 174
         $this->tester->selectOption(['id' => 'shipping_Delivery'], $value);
130 175
         return $this;
131 176
     }
132 177
 
178
+    /**
179
+     * @param string $value
180
+     */
133 181
     public function 入力_配達用メモ($value)
134 182
     {
135 183
         $this->tester->fillField(['id' => 'shipping_note'], $value);
@@ -144,6 +192,9 @@  discard block
 block discarded – undo
144 192
         return $this;
145 193
     }
146 194
 
195
+    /**
196
+     * @param integer $rowNum
197
+     */
147 198
     public function 商品検索結果_選択($rowNum)
148 199
     {
149 200
         $this->tester->click(['xpath' => "//*[@id='searchItemsResult']/table/tbody/tr[${rowNum}]/td[5]/i"]);
Please login to merge, or discard this patch.
codeception/_support/Page/Admin/ShippingManagePage.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@  discard block
 block discarded – undo
58 58
         return $this;
59 59
     }
60 60
 
61
+    /**
62
+     * @param integer $rowNum
63
+     */
61 64
     public function 一覧_編集($rowNum)
62 65
     {
63 66
         $this->tester->click(['xpath' => "//*[@id='form_bulk']/div[2]/div/table/tbody/tr[${rowNum}]/td[2]/a"]);
@@ -117,6 +120,9 @@  discard block
 block discarded – undo
117 120
         $this->tester->click('#form_bulk #btn_bulk_mail');
118 121
     }
119 122
 
123
+    /**
124
+     * @param integer $rowNum
125
+     */
120 126
     public function 一覧_チェックボックス($rowNum)
121 127
     {
122 128
         $this->tester->click(['xpath' => "//*[@id='form_bulk']/div[2]/div/table/tbody/tr[${rowNum}]/td[1]/input"]);
Please login to merge, or discard this patch.