Passed
Push — master ( d134b5...004db0 )
by Mehmet
07:02
created
src/TrTaxNumberVerification.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,9 +93,9 @@  discard block
 block discarded – undo
93 93
             return static::errorResponse(4);
94 94
         }
95 95
 
96
-        return (object)[
96
+        return (object) [
97 97
             'status' => true,
98
-            'data' => (object)[
98
+            'data' => (object) [
99 99
                 'title' => $response->data->unvan,
100 100
                 'tax_no' => $response->data->vkn,
101 101
             ]
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
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
             ]
Please login to merge, or discard this patch.