src/Calculators/BondYTMCalculator.php
Method getApproxBondYTM
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getApproxBondYTM()
{
// we need to calculate the coupon payment C = F*(c/payment frequency)
$couponPayment =
MathFuncs::mul(
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$bondFaceValue,
$bondMarketValue,
$bondAnnualCouponRate,
$bondYearsToMaturity,
$bondPaymentFrequency = 1
TODO found Open
Open
// TODO – add a method for precise bond YTM calculation by means of a polynomial equation
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 32 Open
Open
$this->bondMarketValue),
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
Open
2));
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
Open
2));
- Exclude checks
Multi-line function call not indented correctly; expected 16 spaces but found 24 Open
Open
2));
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
Open
$this->bondMarketValue),
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
Open
2));
- Exclude checks