Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve lint warnings/errors of "Eclipse for PHP" #277

Closed
danielmarschall opened this issue Oct 16, 2020 · 1 comment
Closed

Resolve lint warnings/errors of "Eclipse for PHP" #277

danielmarschall opened this issue Oct 16, 2020 · 1 comment

Comments

@danielmarschall
Copy link

The following patch will resolve lint warnings/errors shown in "Eclipse for PHP":

Index: API.html
===================================================================
--- API.html	(revision 433)
+++ API.html	(working copy)
@@ -325,7 +325,7 @@
         Default value: <code>20</code>
       </dd>
       <dd>
-        The <u>maximum</u> number of decimal places of the results of operations involving
+        The <span style="text-decoration:underline">maximum</span> number of decimal places of the results of operations involving
         division, i.e. division, square root and base conversion operations, and power
         operations with negative exponents.<br />
       </dd>
@@ -1325,7 +1325,7 @@
     </p>
     <pre>
 x = new BigNumber(-0)
-x.isZero() && x.isNegative()         // true
+x.isZero() &amp;&amp; x.isNegative()         // true
 y = new BigNumber(Infinity)
 y.isZero()                      // false</pre>
     <p>Note: <code>n == 0</code> can be used if <code>n &gt;= Number.MIN_VALUE</code>.</p>
@@ -1448,7 +1448,7 @@
     <p>
       If <code>d</code> is omitted or is <code>null</code> or <code>undefined</code>, the return
       value is the number of significant digits of the value of this BigNumber, or <code>null</code>
-      if the value of this BigNumber is &plusmn;<code>Infinity</code> or <code>NaN</code>.</p>
+      if the value of this BigNumber is &plusmn;<code>Infinity</code> or <code>NaN</code>.
     </p>
     <p>
       If <code>d</code> is <code>true</code> then any trailing zeros of the integer
@@ -2152,7 +2152,7 @@
 try {
   // ...
 } catch (e) {
-  if (e instanceof Error && e.message.indexOf('[BigNumber Error]') === 0) {
+  if (e instanceof Error &amp;&amp; e.message.indexOf('[BigNumber Error]') === 0) {
       // ...
   }
 }</pre>

@MikeMcl
Copy link
Owner

MikeMcl commented May 29, 2022

Fixed, thank you. Apologies for the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants