Skip to content

Commit e240232

Browse files
committed
Redundant cast to boolean
1 parent 824fc4d commit e240232

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

class/Issues.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function getHeaderFromArray($hdr, $asArray = false)
106106
break;
107107
}
108108
}
109-
return (bool)$asArray ? [$hdr => \trim($val)] : \trim($val);
109+
return $asArray ? [$hdr => \trim($val)] : \trim($val);
110110
}
111111

112112
/**
@@ -118,7 +118,7 @@ public function getHeaderFromArray($hdr, $asArray = false)
118118
*/
119119
public function getCurlResponse($serialized = false)
120120
{
121-
return (bool)$serialized ? \serialize(\base64_encode($this->curl_response)) : $this->curl_response;
121+
return $serialized ? \serialize(\base64_encode($this->curl_response)) : $this->curl_response;
122122
}
123123

124124
/**

0 commit comments

Comments
 (0)