|
|
@ -52,6 +52,9 @@ |
|
|
|
<li> |
|
|
|
<a href="#synopsis">Synopsis</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="#violations">Violations</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="#methods">Methods</a> |
|
|
|
</li> |
|
|
@ -77,6 +80,82 @@ |
|
|
|
</li></ul> |
|
|
|
|
|
|
|
}<br/></div> |
|
|
|
<h2 id="violations">Violations</h2> |
|
|
|
<div class="styled"> |
|
|
|
<h3>PHPMessDetector</h3> |
|
|
|
<table class="styled"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th>Line</th> |
|
|
|
<th>Rule</th> |
|
|
|
<th>Message</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tr> |
|
|
|
<td class="line">129</td> |
|
|
|
<td> |
|
|
|
<a href="" target="_blank" title="Clean Code Rules">UndefinedVariable</a> |
|
|
|
</td> |
|
|
|
<td>Avoid using undefined variables such as '$dsn' which will lead to PHP notices.</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="line">129</td> |
|
|
|
<td> |
|
|
|
<a href="" target="_blank" title="Clean Code Rules">UndefinedVariable</a> |
|
|
|
</td> |
|
|
|
<td>Avoid using undefined variables such as '$options' which will lead to PHP notices.</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="line">135</td> |
|
|
|
<td> |
|
|
|
<a href="https://phpmd.org/rules/naming.html#shortvariable" target="_blank" title="Naming Rules">ShortVariable</a> |
|
|
|
</td> |
|
|
|
<td>Avoid variables with short names like $db. Configured minimum length is 3.</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="line">136</td> |
|
|
|
<td> |
|
|
|
<a href="" target="_blank" title="Clean Code Rules">UndefinedVariable</a> |
|
|
|
</td> |
|
|
|
<td>Avoid using undefined variables such as '$dsn' which will lead to PHP notices.</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="line">136</td> |
|
|
|
<td> |
|
|
|
<a href="" target="_blank" title="Clean Code Rules">UndefinedVariable</a> |
|
|
|
</td> |
|
|
|
<td>Avoid using undefined variables such as '$options' which will lead to PHP notices.</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="line">137</td> |
|
|
|
<td> |
|
|
|
<a href="" target="_blank" title="Clean Code Rules">UndefinedVariable</a> |
|
|
|
</td> |
|
|
|
<td>Avoid using undefined variables such as '$dsn' which will lead to PHP notices.</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="line">137</td> |
|
|
|
<td> |
|
|
|
<a href="" target="_blank" title="Clean Code Rules">UndefinedVariable</a> |
|
|
|
</td> |
|
|
|
<td>Avoid using undefined variables such as '$options' which will lead to PHP notices.</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="line">155 - 157</td> |
|
|
|
<td> |
|
|
|
<a href="https://phpmd.org/rules/cleancode.html#elseexpression" target="_blank" title="Clean Code Rules">ElseExpression</a> |
|
|
|
</td> |
|
|
|
<td>The method connect uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="line">196 - 198</td> |
|
|
|
<td> |
|
|
|
<a href="https://phpmd.org/rules/cleancode.html#elseexpression" target="_blank" title="Clean Code Rules">ElseExpression</a> |
|
|
|
</td> |
|
|
|
<td>The method parseParams uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
<h2 id="methods">Methods</h2> |
|
|
|
<div class="styled"> |
|
|
|
<h4>public</h4> |
|
|
|