Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 11 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
71 | View Code Duplication | public function getSelectExpression($as = null) |
|
72 | { |
||
73 | $tableName = $this->table->getName(); |
||
74 | $fieldName = $this->name; |
||
75 | |||
76 | if ($as) { |
||
|
|||
77 | return "`{$tableName}`.`{$fieldName}` as `{$as}`"; |
||
78 | } |
||
79 | |||
80 | return "`{$tableName}`.`{$fieldName}`"; |
||
81 | } |
||
82 | |||
120 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: