@@ -94,7 +94,7 @@ public function order($no, $company = null)
9494
9595 $ response = $ this ->sendRequestGet (self ::LOGISTICS_COM_CODE_URL , $ query , []);
9696
97- if (!\is_array ($ response )){
97+ if (!\is_array ($ response )) {
9898 $ response = \json_decode ($ response , true );
9999 }
100100
@@ -103,7 +103,7 @@ public function order($no, $company = null)
103103 }
104104
105105 $ param ['com ' ] = \current ($ response )['comCode ' ];
106- }else {
106+ } else {
107107 $ param ['com ' ] = $ this ->getLogisticsCompanyAliases ($ company );
108108
109109 $ this ->company = $ company ;
@@ -136,6 +136,7 @@ public function getProviderName()
136136 * @param array $headers
137137 *
138138 * @return array
139+ *
139140 * @throws \Finecho\Logistics\Exceptions\HttpException
140141 */
141142 protected function sendRequestGet ($ url , $ params , $ headers )
@@ -156,6 +157,7 @@ protected function sendRequestGet($url, $params, $headers)
156157 * @param int $SUCCESS_STATUS
157158 *
158159 * @return array
160+ *
159161 * @throws \Finecho\Logistics\Exceptions\HttpException
160162 * @throws \Finecho\Logistics\Exceptions\InquiryErrorException
161163 */
@@ -167,7 +169,7 @@ protected function sendRequestPost($url, $params, $headers, $SUCCESS_STATUS = se
167169 throw new HttpException ($ e ->getMessage (), $ e ->getCode (), $ e );
168170 }
169171
170- if (!\is_array ($ result )){
172+ if (!\is_array ($ result )) {
171173 $ result = \json_decode ($ result , true );
172174 }
173175
@@ -229,6 +231,6 @@ protected function resetList($list)
229231 */
230232 protected function generateSign ($ param , $ key , $ customer )
231233 {
232- return \strtoupper (\md5 (\json_encode ($ param ) . $ key . $ customer ));
234+ return \strtoupper (\md5 (\json_encode ($ param ). $ key. $ customer ));
233235 }
234236}
0 commit comments