@@ -20,8 +20,8 @@ |
||
| 20 | 20 | |
| 21 | 21 | public function testRender() { |
| 22 | 22 | $element = $this->getElement(); |
| 23 | - $this->assertContains('<textarea', (string)$element); |
|
| 24 | - $this->assertContains('</textarea', (string)$element); |
|
| 23 | + $this->assertContains('<textarea', (string) $element); |
|
| 24 | + $this->assertContains('</textarea', (string) $element); |
|
| 25 | 25 | |
| 26 | 26 | $element->setValue('custom data'); |
| 27 | 27 | $this->assertContains('>custom data<', $element->render()); |
@@ -214,7 +214,7 @@ |
||
| 214 | 214 | |
| 215 | 215 | $checkedItemsNum = 0; |
| 216 | 216 | |
| 217 | - $element->addValidator(new CallBackValidator(function ($value) use (&$checkedItemsNum) { |
|
| 217 | + $element->addValidator(new CallBackValidator(function($value) use (&$checkedItemsNum) { |
|
| 218 | 218 | $checkedItemsNum++; |
| 219 | 219 | |
| 220 | 220 | return !empty($value); |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | class CallBackValidatorTest extends \PHPUnit_Framework_TestCase { |
| 12 | 12 | |
| 13 | 13 | public function testLen() { |
| 14 | - $lengthValidator = new CallBackValidator(function ($value) { |
|
| 14 | + $lengthValidator = new CallBackValidator(function($value) { |
|
| 15 | 15 | return strlen($value) > 3 and strlen($value) < 10; |
| 16 | 16 | }); |
| 17 | 17 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | '[email protected]', |
| 54 | 54 | ]; |
| 55 | 55 | |
| 56 | - $callBackValidator = (new CallBackValidator(function ($value) use ($existEmailList) { |
|
| 56 | + $callBackValidator = (new CallBackValidator(function($value) use ($existEmailList) { |
|
| 57 | 57 | if (empty($value)) { |
| 58 | 58 | return true; |
| 59 | 59 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | * @author Ivan Shcherbak <[email protected]> |
| 13 | 13 | * @package Fiv\Form\Validator |
| 14 | 14 | */ |
| 15 | - class Len extends BaseValidator{ |
|
| 15 | + class Len extends BaseValidator { |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @var int|null |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * @author Ivan Shcherbak <[email protected]> |
| 7 | 7 | * @package Fiv\Form\Filter |
| 8 | 8 | */ |
| 9 | - class Trim implements FilterInterface{ |
|
| 9 | + class Trim implements FilterInterface { |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @inheritdoc |