Test Failed
Push — develop ( fab808...f55317 )
by Yuji
03:48
created
src/YahooShoppingJp/Api/UpdateOrderShippingStatusApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function distillResponse(array $response): array
30 30
     {
31
-        if(! isset($response['Result']['Status'])
31
+        if (!isset($response['Result']['Status'])
32 32
         || $response['Result']['Status'] !== 'OK') {
33 33
             throw new DistillationException;
34 34
         }
Please login to merge, or discard this patch.
tests/unit/YahooShoppingJp/Request/GetItemStockInfoRequestTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         $this->assertSame($request, $request->setSellerId('VALID_SELLER_ID'));
31 31
 
32 32
         for ($i = 1; $i <= 1001; $i++) {
33
-            $request->addItemCode('AN_ITEM_CODE_' . $i);
33
+            $request->addItemCode('AN_ITEM_CODE_'.$i);
34 34
         }
35 35
 
36 36
         $request->getParams();
Please login to merge, or discard this patch.
GetItemStockInfoSample.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/vendor/autoload.php';
3
+require_once __DIR__.'/vendor/autoload.php';
4 4
 
5 5
 
6 6
 use Shippinno\YahooShoppingJp\Factory\GetItemStockInfoFactory;
Please login to merge, or discard this patch.
src/YahooShoppingJp/Api/GetItemStockInfoApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function distillResponse(array $response): array
30 30
     {
31
-        if(! isset($response['Result'])) {
31
+        if (!isset($response['Result'])) {
32 32
             throw new DistillationException;
33 33
         }
34 34
 
Please login to merge, or discard this patch.
src/YahooShoppingJp/Request/GetItemStockInfoRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     private function validateRequest(): void
66 66
     {
67
-        if (! isset($this->params['seller_id'])) {
67
+        if (!isset($this->params['seller_id'])) {
68 68
             throw new InvalidRequestException;
69 69
         }
70 70
 
Please login to merge, or discard this patch.
src/YahooShoppingJp/Request/AbstractRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      * @throws InvalidRequestException
44 44
      */
45 45
     public function requires($paramKey) {
46
-        if (! isset($this->params[$paramKey])) {
46
+        if (!isset($this->params[$paramKey])) {
47 47
             throw new InvalidRequestException($paramKey.' is required');
48 48
         }
49 49
     }
Please login to merge, or discard this patch.
src/YahooShoppingJp/Api/UpdateItemStockInfoApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function distillResponse(array $response): array
31 31
     {
32
-        if (! isset($response['@attributes']['totalResultsAvailable'])) {
32
+        if (!isset($response['@attributes']['totalResultsAvailable'])) {
33 33
             throw new ApiException('予期しないエラー');
34 34
         }
35 35
 
Please login to merge, or discard this patch.
src/YahooShoppingJp/Request/UpdateOrderShippingStatusRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
             throw new LogicException('ShipUrl is already set.');
206 206
         }
207 207
 
208
-        $this->params['Order']['Ship']['ShipUrl'] = '![CDATA[' . $shipUrl . ']]';
208
+        $this->params['Order']['Ship']['ShipUrl'] = '![CDATA['.$shipUrl.']]';
209 209
 
210 210
         return $this;
211 211
     }
Please login to merge, or discard this patch.
src/YahooShoppingJp/Request/UpdateItemStockInfoRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             if (!preg_match('/^[a-zA-Z0-9\-]{1,99}$/', $subCode)) {
86 86
                 throw new InvalidRequestException('sub_code error.');
87 87
             }
88
-            $this->params['item_code'] = $this->params['item_code'] . ':' . $subCode;
88
+            $this->params['item_code'] = $this->params['item_code'].':'.$subCode;
89 89
         }
90 90
 
91 91
         return $this;
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             throw new LogicException('allow_overdraft is already set.');
122 122
         }
123 123
 
124
-        $this->params['allow_overdraft'] = (int)$allowOverdraft;
124
+        $this->params['allow_overdraft'] = (int) $allowOverdraft;
125 125
 
126 126
         return $this;
127 127
     }
Please login to merge, or discard this patch.