| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public static function create($wrapped, callable $escape) { |
||
| 24 | if (is_object($wrapped) || is_array($wrapped)) { |
||
| 25 | return new ObjectEscapedProxy($wrapped, $escape); |
||
| 26 | } |
||
| 27 | if (is_string($wrapped)) { |
||
| 28 | return new ScalarEscapedProxy($wrapped, $escape); |
||
| 29 | } |
||
| 30 | |||
| 31 | return $wrapped; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |