|
@@ 1216-1218 (lines=3) @@
|
| 1213 |
|
public function stripUnusedVars($name, &$template) |
| 1214 |
|
{ |
| 1215 |
|
switch ($this->getAttribute($name, 'unusedvars')) { |
| 1216 |
|
case 'comment': |
| 1217 |
|
$template = preg_replace('/(' . $this->tag_start . '[^a-z{}]+' . $this->tag_end . ')/', "<!-- \\1 -->", $template); |
| 1218 |
|
break; |
| 1219 |
|
case 'strip': |
| 1220 |
|
$template = preg_replace('/(' . $this->tag_start . '[^a-z{}]+' . $this->tag_end . ')/', '', $template); |
| 1221 |
|
break; |
|
@@ 1219-1221 (lines=3) @@
|
| 1216 |
|
case 'comment': |
| 1217 |
|
$template = preg_replace('/(' . $this->tag_start . '[^a-z{}]+' . $this->tag_end . ')/', "<!-- \\1 -->", $template); |
| 1218 |
|
break; |
| 1219 |
|
case 'strip': |
| 1220 |
|
$template = preg_replace('/(' . $this->tag_start . '[^a-z{}]+' . $this->tag_end . ')/', '', $template); |
| 1221 |
|
break; |
| 1222 |
|
case 'nbsp': |
| 1223 |
|
$template = preg_replace('/(' . $this->tag_start . '[^a-z{}]+' . $this->tag_end . ')/', ' ', $template); |
| 1224 |
|
break; |
|
@@ 1222-1224 (lines=3) @@
|
| 1219 |
|
case 'strip': |
| 1220 |
|
$template = preg_replace('/(' . $this->tag_start . '[^a-z{}]+' . $this->tag_end . ')/', '', $template); |
| 1221 |
|
break; |
| 1222 |
|
case 'nbsp': |
| 1223 |
|
$template = preg_replace('/(' . $this->tag_start . '[^a-z{}]+' . $this->tag_end . ')/', ' ', $template); |
| 1224 |
|
break; |
| 1225 |
|
case 'ignore': |
| 1226 |
|
break; |
| 1227 |
|
default: |
|
@@ 1227-1229 (lines=3) @@
|
| 1224 |
|
break; |
| 1225 |
|
case 'ignore': |
| 1226 |
|
break; |
| 1227 |
|
default: |
| 1228 |
|
$template = preg_replace('/(' . $this->tag_start . '[^a-z{}]+' . $this->tag_end . ')/', $this->getAttribute($name, 'unusedvars'), $template); |
| 1229 |
|
break; |
| 1230 |
|
} |
| 1231 |
|
} |
| 1232 |
|
|