Failed Conditions
Push — dev ( b04f64...5f5cb9 )
by Jordan
03:11
created
src/Samsara/Fermat/Types/Traits/InverseTrigonometryTrait.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         } elseif ($this->isEqual(0)) {
28 28
             $answer = Numbers::makeZero();
29 29
         } else {
30
-            $z = Numbers::makeOrDont(Numbers::IMMUTABLE, $this, $precision + 2);
30
+            $z = Numbers::makeOrDont(Numbers::IMMUTABLE, $this, $precision+2);
31 31
             $one = Numbers::makeOne($precision+2);
32 32
 
33 33
             if ($z->abs()->isGreaterThan(1)) {
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
         } elseif ($this->isEqual(1)) {
78 78
             $answer = Numbers::makeZero();
79 79
         } else {
80
-            $z = Numbers::makeOrDont(Numbers::IMMUTABLE, $this, $precision + 2);
81
-            $one = Numbers::makeOne($precision + 2);
80
+            $z = Numbers::makeOrDont(Numbers::IMMUTABLE, $this, $precision+2);
81
+            $one = Numbers::makeOne($precision+2);
82 82
 
83 83
             if ($z->abs()->isGreaterThan(1)) {
84 84
                 throw new IntegrityConstraint(
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
 
129 129
         $precision = $precision ?? $this->getPrecision();
130 130
 
131
-        $piDivTwo = Numbers::makePi($precision + 2)->divide(2, $precision + 2);
131
+        $piDivTwo = Numbers::makePi($precision+2)->divide(2, $precision+2);
132 132
 
133
-        $z = Numbers::makeOrDont(Numbers::IMMUTABLE, $this, $precision + 2);
133
+        $z = Numbers::makeOrDont(Numbers::IMMUTABLE, $this, $precision+2);
134 134
 
135 135
         $arctan = $z->arctan($precision+2, false);
136 136
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         $precision = $precision ?? $this->getPrecision();
153 153
 
154
-        $one = Numbers::makeOne($precision + 2);
154
+        $one = Numbers::makeOne($precision+2);
155 155
         $z = Numbers::makeOrDont(Numbers::IMMUTABLE, $this, $precision+2);
156 156
 
157 157
         if ($z->abs()->isLessThan(1)) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             );
163 163
         }
164 164
 
165
-        $answer = $one->divide($z, $precision + 2)->arccos($precision + 2);
165
+        $answer = $one->divide($z, $precision+2)->arccos($precision+2);
166 166
 
167 167
         if ($round) {
168 168
             $answer = $answer->roundToPrecision($precision);
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
         $precision = $precision ?? $this->getPrecision();
181 181
 
182
-        $one = Numbers::makeOne($precision + 2);
182
+        $one = Numbers::makeOne($precision+2);
183 183
         $z = Numbers::makeOrDont(Numbers::IMMUTABLE, $this, $precision+2);
184 184
 
185 185
         if ($z->abs()->isLessThan(1)) {
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             );
191 191
         }
192 192
 
193
-        $answer = $one->divide($z, $precision + 2)->arcsin($precision + 2);
193
+        $answer = $one->divide($z, $precision+2)->arcsin($precision+2);
194 194
 
195 195
         if ($round) {
196 196
             $answer = $answer->roundToPrecision($precision);
Please login to merge, or discard this patch.