@@ -9,29 +9,29 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class Plaintext extends Field |
| 11 | 11 | { |
| 12 | - //////////////////////////////////////////////////////////////////// |
|
| 13 | - /////////////////////////// CORE METHODS /////////////////////////// |
|
| 14 | - //////////////////////////////////////////////////////////////////// |
|
| 12 | + //////////////////////////////////////////////////////////////////// |
|
| 13 | + /////////////////////////// CORE METHODS /////////////////////////// |
|
| 14 | + //////////////////////////////////////////////////////////////////// |
|
| 15 | 15 | |
| 16 | - /** |
|
| 17 | - * Prints out the current tag |
|
| 18 | - * |
|
| 19 | - * @return string A plain text tag |
|
| 20 | - */ |
|
| 21 | - public function render() |
|
| 22 | - { |
|
| 23 | - $this->addClass($this->app['former.framework']->getPlainTextClasses()); |
|
| 24 | - $this->setId(); |
|
| 25 | - $this->escapeValue(); |
|
| 16 | + /** |
|
| 17 | + * Prints out the current tag |
|
| 18 | + * |
|
| 19 | + * @return string A plain text tag |
|
| 20 | + */ |
|
| 21 | + public function render() |
|
| 22 | + { |
|
| 23 | + $this->addClass($this->app['former.framework']->getPlainTextClasses()); |
|
| 24 | + $this->setId(); |
|
| 25 | + $this->escapeValue(); |
|
| 26 | 26 | |
| 27 | - return $this->app['former.framework']->createPlainTextField($this); |
|
| 28 | - } |
|
| 27 | + return $this->app['former.framework']->createPlainTextField($this); |
|
| 28 | + } |
|
| 29 | 29 | |
| 30 | - protected function escapeValue() |
|
| 31 | - { |
|
| 32 | - $valueToEscape = $this->getValue(); |
|
| 33 | - $value = is_string($valueToEscape) || $valueToEscape instanceof HtmlString ? e($valueToEscape) : $valueToEscape; |
|
| 30 | + protected function escapeValue() |
|
| 31 | + { |
|
| 32 | + $valueToEscape = $this->getValue(); |
|
| 33 | + $value = is_string($valueToEscape) || $valueToEscape instanceof HtmlString ? e($valueToEscape) : $valueToEscape; |
|
| 34 | 34 | |
| 35 | - return $this->forceValue($value); |
|
| 36 | - } |
|
| 35 | + return $this->forceValue($value); |
|
| 36 | + } |
|
| 37 | 37 | } |