@@ -1,7 +1,7 @@ discard block |
||
| 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\OrderStatus; |
@@ -12,15 +12,15 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | define('YAHOO_APP_ID', 'dj0zaiZpPUZFNTFuUUQ3Q2piSSZzPWNvbnN1bWVyc2VjcmV0Jng9MWY-'); |
| 14 | 14 | define('YAHOO_SECRET', 'a71d10c84a7826c7f98aae379f4d33607dff4a87'); |
| 15 | -$seller_id = 'snbx-nxpqe5hm3'; |
|
| 15 | +$seller_id = 'snbx-nxpqe5hm3'; |
|
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | $client = new Client( |
| 19 | 19 | file_get_contents(__DIR__.'/access_token.txt'), |
| 20 | - null,null,true |
|
| 20 | + null, null, true |
|
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | -try{ |
|
| 23 | +try { |
|
| 24 | 24 | /* |
| 25 | 25 | * UpdateOrderShippingStatusRequest |
| 26 | 26 | */ |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | var_dump($response); |
| 56 | 56 | |
| 57 | -}catch (Exception $e){ |
|
| 57 | +} catch (Exception $e) { |
|
| 58 | 58 | echo $e; |
| 59 | 59 | } |
| 60 | 60 | |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | throw new InvalidRequestException; |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | - if(!isset($this->params['Search']['Condition']['OrderId']) |
|
| 127 | + if (!isset($this->params['Search']['Condition']['OrderId']) |
|
| 128 | 128 | && !isset($this->params['Search']['Condition']['OrderTime']) |
| 129 | 129 | && !isset($this->params['Search']['Condition']['OrderTimeFrom']) |
| 130 | 130 | && !isset($this->params['Search']['Condition']['OrderTimeTo'])) { |