| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 887 | public function __construct() |
|
| 34 | { |
||
| 35 | 887 | parent::__construct('PHP Smart Analyzer', $this->getStringVersion()); |
|
| 36 | |||
| 37 | 887 | $this->add(new Command\CheckCommand()); |
|
| 38 | 887 | $this->add(new Command\CompileCommand()); |
|
| 39 | 887 | $this->add(new Command\DumpReferenceCommand()); |
|
| 40 | 887 | $this->add(new Command\DumpDocumentationCommand()); |
|
| 41 | |||
| 42 | 887 | $this->issuesCollector = new IssuesCollector(); |
|
| 43 | 887 | $this->configuration = new Configuration(); |
|
| 44 | 887 | } |
|
| 45 | |||
| 114 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: