Skip to content

Commit

Permalink
Merge pull request #66 from namepros/master
Browse files Browse the repository at this point in the history
Fix code style
  • Loading branch information
mkopinsky authored Dec 21, 2021
2 parents aecc053 + 3029f77 commit f6a82ae
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Math/Binomial.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ private static function initProvider(): BinomialProvider

return new $bestProviderClass();
}
}
}
2 changes: 1 addition & 1 deletion src/Math/BinomialProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ interface BinomialProvider
* @return float
*/
public function binom(int $n, int $k): float;
}
}
2 changes: 1 addition & 1 deletion src/Math/Impl/AbstractBinomialProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ public function binom(int $n, int $k): float
}

abstract protected function calculate(int $n, int $k): float;
}
}
2 changes: 1 addition & 1 deletion src/Math/Impl/AbstractBinomialProviderWithFallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ protected function getFallbackProvider(): AbstractBinomialProvider

return $this->fallback;
}
}
}
2 changes: 1 addition & 1 deletion src/Math/Impl/BinomialProviderFloat64.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ protected function calculate(int $n, int $k): float

return $c;
}
}
}
2 changes: 1 addition & 1 deletion src/Math/Impl/BinomialProviderInt64.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ protected function tryCalculate(int $n, int $k): ?float
return null;
}
}
}
}
2 changes: 1 addition & 1 deletion src/Math/Impl/BinomialProviderPhp73Gmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ protected function calculate(int $n, int $k): float
{
return (float)gmp_strval(gmp_binomial($n, $k));
}
}
}
2 changes: 1 addition & 1 deletion test/Math/BinomialTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ public function testBinomialCoefficient(int $n, int $k, float $expected)
}
}
}
}
}

0 comments on commit f6a82ae

Please sign in to comment.