@@ -15,7 +15,7 @@ |
||
| 15 | 15 | * @return string |
| 16 | 16 | */ |
| 17 | 17 | public function render() { |
| 18 | - return '<textarea ' . Html::renderAttributes($this->getAttributes()) . '>' . $this->getValue() . '</textarea>'; |
|
| 18 | + return '<textarea '.Html::renderAttributes($this->getAttributes()).'>'.$this->getValue().'</textarea>'; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | } |
| 22 | 22 | \ No newline at end of file |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } elseif (strpos($name, 'get') === 0 and !isset($arguments[0])) { |
| 50 | 50 | return $this->getAttribute(strtolower(substr($name, 3))); |
| 51 | 51 | } else { |
| 52 | - throw new \Exception('Invalid method: ' . $name); |
|
| 52 | + throw new \Exception('Invalid method: '.$name); |
|
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $currentClass = $this->getAttribute('class'); |
| 63 | 63 | |
| 64 | 64 | if (!empty($currentClass)) { |
| 65 | - $className = $currentClass . ' ' . $className; |
|
| 65 | + $className = $currentClass.' '.$className; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | $this->setAttribute('class', $className); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | public static function renderAttributes(array $attributes = []) { |
| 79 | 79 | $attributesInline = ''; |
| 80 | 80 | foreach ($attributes as $name => $value) { |
| 81 | - $attributesInline .= $name . '="' . addslashes($value) . '" '; |
|
| 81 | + $attributesInline .= $name.'="'.addslashes($value).'" '; |
|
| 82 | 82 | } |
| 83 | 83 | return $attributesInline; |
| 84 | 84 | } |
@@ -92,10 +92,10 @@ discard block |
||
| 92 | 92 | * @return string |
| 93 | 93 | */ |
| 94 | 94 | public static function tag($tag, array $attributes, $content = null) { |
| 95 | - $html = '<' . $tag . ' ' . static::renderAttributes($attributes); |
|
| 95 | + $html = '<'.$tag.' '.static::renderAttributes($attributes); |
|
| 96 | 96 | |
| 97 | 97 | if ($content !== null) { |
| 98 | - $html .= '>' . $content . '</' . $tag . '>'; |
|
| 98 | + $html .= '>'.$content.'</'.$tag.'>'; |
|
| 99 | 99 | } else { |
| 100 | 100 | $html .= ' />'; |
| 101 | 101 | } |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | * @return string |
| 94 | 94 | */ |
| 95 | 95 | public function render() { |
| 96 | - return '<label>' . parent::render() . $this->label . '</label>'; |
|
| 96 | + return '<label>'.parent::render().$this->label.'</label>'; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | } |
| 100 | 100 | \ No newline at end of file |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Fiv\Form; |
| 4 | 4 | |
| 5 | - trigger_error('Deprecated. Use ' . \Fiv\Form\Element\Select::class, E_USER_DEPRECATED); |
|
| 5 | + trigger_error('Deprecated. Use '.\Fiv\Form\Element\Select::class, E_USER_DEPRECATED); |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * @deprecated |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Fiv\Form; |
| 4 | 4 | |
| 5 | - trigger_error('Deprecated. Use ' . \Fiv\Form\Element\CheckboxList::class, E_USER_DEPRECATED); |
|
| 5 | + trigger_error('Deprecated. Use '.\Fiv\Form\Element\CheckboxList::class, E_USER_DEPRECATED); |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Fiv\Form; |
| 4 | 4 | |
| 5 | - trigger_error('Deprecated. Use ' . \Fiv\Form\Element\RadioList::class, E_USER_DEPRECATED); |
|
| 5 | + trigger_error('Deprecated. Use '.\Fiv\Form\Element\RadioList::class, E_USER_DEPRECATED); |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Fiv\Form; |
| 4 | 4 | |
| 5 | - trigger_error('Deprecated. Use ' . \Fiv\Form\Element\TextArea::class, E_USER_DEPRECATED); |
|
| 5 | + trigger_error('Deprecated. Use '.\Fiv\Form\Element\TextArea::class, E_USER_DEPRECATED); |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * @deprecated |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Fiv\Form; |
| 4 | 4 | |
| 5 | - trigger_error('Deprecated. Use ' . \Fiv\Form\Element\Select::class, E_USER_DEPRECATED); |
|
| 5 | + trigger_error('Deprecated. Use '.\Fiv\Form\Element\Select::class, E_USER_DEPRECATED); |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | public function testCustomFilter() { |
| 14 | 14 | |
| 15 | - $filter = new CallbackFilter(function ($value) { |
|
| 15 | + $filter = new CallbackFilter(function($value) { |
|
| 16 | 16 | $value = str_replace(' ', '-', $value); |
| 17 | 17 | $value = trim($value, '-'); |
| 18 | 18 | return $value; |