@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | return static::$token; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - $response = static::getClient()->post(static::API_URL . '/assos-login', [ |
|
| 35 | + $response = static::getClient()->post(static::API_URL.'/assos-login', [ |
|
| 36 | 36 | 'query' => [ |
| 37 | 37 | 'assoscmd' => 'cfsession', |
| 38 | 38 | //'rtype' => 'json', |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | $jp = static::makeQuery($company_type, $tax_number, $tax_office_no); |
| 79 | - $response = static::getClient()->post(static::API_URL . '/dispatch', [ |
|
| 79 | + $response = static::getClient()->post(static::API_URL.'/dispatch', [ |
|
| 80 | 80 | 'query' => [ |
| 81 | 81 | 'cmd' => 'vergiNoIslemleri_vergiNumarasiSorgulama', |
| 82 | 82 | //'callid' => 'c4d3734c05df2-7', |
@@ -93,10 +93,10 @@ discard block |
||
| 93 | 93 | return static::errorResponse(4); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - return (object)[ |
|
| 96 | + return (object) [ |
|
| 97 | 97 | 'status' => true, |
| 98 | - 'data' => (object)[ |
|
| 99 | - 'status' => (int)$response->data->durum, |
|
| 98 | + 'data' => (object) [ |
|
| 99 | + 'status' => (int) $response->data->durum, |
|
| 100 | 100 | 'title' => $response->data->unvan |
| 101 | 101 | ] |
| 102 | 102 | ]; |
@@ -104,9 +104,9 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | public static function errorResponse(int $errorCode): object |
| 106 | 106 | { |
| 107 | - return (object)[ |
|
| 107 | + return (object) [ |
|
| 108 | 108 | 'status' => false, |
| 109 | - 'error' => (object)[ |
|
| 109 | + 'error' => (object) [ |
|
| 110 | 110 | 'code' => $errorCode, |
| 111 | 111 | 'description' => static::$errorCodeList[$errorCode] |
| 112 | 112 | ] |