Completed
Push — dev ( 0ff267...c4053d )
by Jordan
03:19
created
src/Samsara/Fermat/Types/Fraction.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,8 +221,8 @@
 block discarded – undo
221 221
     }
222 222
 
223 223
     /**
224
-     * @param $a
225
-     * @param $b
224
+     * @param ImmutableNumber $a
225
+     * @param NumberInterface $b
226 226
      *
227 227
      * @return NumberInterface
228 228
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Samsara\Fermat\Types;
4 4
 
5
-use Samsara\Exceptions\UsageError\IntegrityConstraint;
6 5
 use Samsara\Fermat\Numbers;
7 6
 use Samsara\Fermat\Types\Base\FractionInterface;
8 7
 use Samsara\Fermat\Types\Base\NumberInterface;
Please login to merge, or discard this patch.
src/Samsara/Fermat/Provider/SequenceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
         $t = Numbers::makeZero();
71 71
 
72
-        for ($k = 0;$m->isGreaterThanOrEqualTo($k);$k++) {
72
+        for ($k = 0; $m->isGreaterThanOrEqualTo($k); $k++) {
73 73
             $kNum = Numbers::make(Numbers::IMMUTABLE, $k);
74 74
             $combination = $m->factorial()->divide($kNum->factorial()->multiply($m->subtract($k)->factorial()));
75 75
             $t = $t->add($combination->multiply(self::nthBernoulliNumber($k, $n))->divide($m->subtract($k)->add(1)));
Please login to merge, or discard this patch.