Skip to content

Commit 91c87af

Browse files
Excluding some trivial code in an attempt to get 100% code coverage.
1 parent b4f6902 commit 91c87af

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/ClientDailyPriceFixedIncome.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,24 @@ protected function processResponse() {
113113
* Extracted this into it's own function so I can stub and test without
114114
* having to make a request to the IDC server.
115115
* @return string
116+
* @codeCoverageIgnore
116117
*/
117118
protected function getBodyFromResponse() {
118119
return (string)$this->response->getBody();
119120
}
120121

122+
/**
123+
* @param $value
124+
*
125+
* @return float
126+
*/
121127
protected function formatValueReturnedFromInteractiveData( $value ) {
122128
if ( is_numeric( $value ) ) {
123129
return (float)$value;
124130
}
125131

126-
return str_replace( '"', '', $value );
132+
// @codeCoverageIgnoreStart
133+
return (float)str_replace( '"', '', $value );
134+
// @codeCoverageIgnoreEnd
127135
}
128136
}

0 commit comments

Comments
 (0)