Passed
Push — main ( 682a0c...88a3bd )
by Shubham
11:02
created
src/convolve.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
                 $r->data[$i] = $sigma;
30 30
             }
31 31
             return $r;
32
-        }
33
-        else {
32
+        } else {
34 33
             throw new dtypeException('Err::given vectors has diffrent data type!');
35 34
         }
36 35
     }
@@ -69,8 +68,7 @@  discard block
 block discarded – undo
69 68
                 }
70 69
             }
71 70
             return $rc;
72
-        }
73
-        else {
71
+        } else {
74 72
             throw new \Exception('Err::given matrixes has different data type!');
75 73
         }
76 74
     }
Please login to merge, or discard this patch.
src/matrix.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -848,8 +848,7 @@
 block discarded – undo
848 848
             for ($i = 0; $i < $this->row ; ++$i) {
849 849
                 $this->data[$i * $this->col + $i] *= $c;
850 850
             }
851
-        }
852
-        else{
851
+        } else{
853 852
             for ($i = $this->row; $i > 0 ; --$i) {
854 853
                 $this->data[$i * $this->col - $i] *= $c;
855 854
             }
Please login to merge, or discard this patch.
src/vector.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
  * @copyright (c) 2020-2021, Shubham Chaudhary
25 25
  * 
26 26
  */
27
- class vector extends nd {
28
-     use ops, linAlg;
27
+    class vector extends nd {
28
+        use ops, linAlg;
29 29
 
30 30
     /**
31 31
      * Factory method to build a new vector.
Please login to merge, or discard this patch.
src/reductions/rref.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,10 @@
 block discarded – undo
26 26
         $lead = 0;
27 27
         $ar = $m->copy();
28 28
         for ($r = 0; $r < $ar->row; ++$r) {
29
-            if ($lead >= $ar->col)
30
-                break; {
29
+            if ($lead >= $ar->col) {
30
+                            break;
31
+            }
32
+            {
31 33
                 $i = $r;
32 34
                 while ($ar->data[$i * $ar->col + $lead] == 0) {
33 35
                     $i++;
Please login to merge, or discard this patch.
src/reductions/ref.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
 
20 20
 class ref { 
21 21
     
22
-     /**
23
-      * 
24
-      * @param \Np\matrix $m
25
-      * @return matrix|null
26
-      */
22
+        /**
23
+         * 
24
+         * @param \Np\matrix $m
25
+         * @return matrix|null
26
+         */
27 27
     public static function factory(\Np\matrix $m): matrix|null {
28 28
         $ipiv = vector::factory(min($m->row, $m->col), vector::INT);
29 29
         $ar = $m->copy();
Please login to merge, or discard this patch.