| Conditions | 6 |
| Paths | 5 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function out($var, $fmt = 'php') { |
||
| 35 | |||
| 36 | if($this->isProtected()) return ''; |
||
| 37 | if(is_null($this->local) || ($this->default == $this->local)) return ''; |
||
| 38 | |||
| 39 | $out = ''; |
||
| 40 | |||
| 41 | if($fmt == 'php') { |
||
| 42 | $local = $this->local === '' ? "''" : $this->local; |
||
| 43 | $out .= '$' . $var . "['" . $this->getArrayKey() . "'] = " . $local . ";\n"; |
||
| 44 | } |
||
| 45 | |||
| 46 | return $out; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |