@@ -86,13 +86,13 @@ public function __toString() : string
8686 if ($ this ->parseContentType () === 'multipart/form-data ' ) {
8787 $ this ->setBody ($ this ->getMultipartBody ());
8888 }
89- if ( ! $ this ->hasHeader (RequestHeader::ACCEPT )) {
89+ if (! $ this ->hasHeader (RequestHeader::ACCEPT )) {
9090 $ accept = '*/* ' ;
9191 $ this ->setHeader (RequestHeader::ACCEPT , $ accept );
9292 }
9393 $ options = $ this ->getOptions ();
9494 if (isset ($ options [\CURLOPT_ENCODING ])
95- && ! $ this ->hasHeader (RequestHeader::ACCEPT_ENCODING )
95+ && !$ this ->hasHeader (RequestHeader::ACCEPT_ENCODING )
9696 ) {
9797 $ encoding = $ options [\CURLOPT_ENCODING ] === ''
9898 ? 'deflate, gzip, br, zstd '
@@ -198,7 +198,7 @@ protected function getFileInfo(CURLFile | CURLStringFile | string $file) : array
198198 */
199199 public function setUrl (string | URL $ url ) : static
200200 {
201- if ( ! $ url instanceof URL ) {
201+ if (! $ url instanceof URL ) {
202202 $ url = new URL ($ url );
203203 }
204204 $ this ->setHeader (RequestHeader::HOST , $ url ->getHost ());
@@ -316,7 +316,7 @@ public function setPost(array $data) : static
316316 #[Pure]
317317 public function hasFiles () : bool
318318 {
319- return ! empty ($ this ->files );
319+ return !empty ($ this ->files );
320320 }
321321
322322 /**
@@ -479,7 +479,8 @@ public function removeHeaders() : static
479479 */
480480 public function setBasicAuth (
481481 string $ username ,
482- #[SensitiveParameter] string $ password
482+ #[SensitiveParameter]
483+ string $ password
483484 ) : static {
484485 return $ this ->setHeader (
485486 RequestHeader::AUTHORIZATION ,
@@ -633,7 +634,7 @@ public function getOption(int $option) : mixed
633634 */
634635 public function getPostAndFiles () : array | string
635636 {
636- if ( ! $ this ->hasFiles ()) {
637+ if (! $ this ->hasFiles ()) {
637638 return $ this ->getBody ();
638639 }
639640 \parse_str ($ this ->getBody (), $ post );
@@ -648,7 +649,7 @@ public function getPostAndFiles() : array | string
648649 if ($ file instanceof CURLFile || $ file instanceof CURLStringFile) {
649650 continue ;
650651 }
651- if ( ! \is_file ($ file )) {
652+ if (! \is_file ($ file )) {
652653 throw new InvalidArgumentException (
653654 "Field ' {$ field }' does not match a file: {$ file }"
654655 );
0 commit comments