Test Failed
Pull Request — master (#19)
by Aya
04:08
created
YahooClientTest2.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 //kanazawa test
3 3
 
4
-require_once __DIR__ . '/vendor/autoload.php';
4
+require_once __DIR__.'/vendor/autoload.php';
5 5
 
6 6
 use Shippinno\YahooShoppingJp\Client;
7 7
 use Shippinno\YahooShoppingJp\Enum\ShipStatus;
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 define('YAHOO_APP_ID', 'dj0zaiZpPUZFNTFuUUQ3Q2piSSZzPWNvbnN1bWVyc2VjcmV0Jng9MWY-');
12 12
 define('YAHOO_SECRET', 'a71d10c84a7826c7f98aae379f4d33607dff4a87');
13
-$seller_id    = 'snbx-nxpqe5hm3';
13
+$seller_id = 'snbx-nxpqe5hm3';
14 14
 
15 15
 
16 16
 $client = new Client(
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     file_get_contents(__DIR__.'/refresh_token.txt')
19 19
 );
20 20
 
21
-try{
21
+try {
22 22
     $factory = new UpdateOrderShippingStatusFactory();
23 23
 
24 24
     $client->setApi($factory->api());
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     var_dump($response);
36 36
 
37
-}catch (Exception $e){
37
+} catch (Exception $e) {
38 38
     echo $e->getFile()."\n";
39 39
     echo $e->getLine()."\n";
40 40
     echo $e->getCode().':'.$e->getMessage()."\n";
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     var_dump($response);
36 36
 
37
-}catch (Exception $e){
37
+} catch (Exception $e){
38 38
     echo $e->getFile()."\n";
39 39
     echo $e->getLine()."\n";
40 40
     echo $e->getCode().':'.$e->getMessage()."\n";
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
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
             throw new LogicException('ShipNotes is already set.');
121 121
         }
122 122
 
123
-        if(strlen($shipNotes) > 500){
123
+        if (strlen($shipNotes) > 500) {
124 124
             throw new InvalidArgumentException('ShipNotes is invalid.');
125 125
         }
126 126
 
Please login to merge, or discard this patch.
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.
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.