@@ -42,12 +42,12 @@ |
||
| 42 | 42 | protected function prepareFiltrator(InputFilter $input) |
| 43 | 43 | { |
| 44 | 44 | $filters = $this->getFilters(); |
| 45 | - if ( ! $filters || ! is_array($filters)) { |
|
| 45 | + if (!$filters || !is_array($filters)) { |
|
| 46 | 46 | return; |
| 47 | 47 | } |
| 48 | 48 | $filtrator = $input->getFiltrator(); |
| 49 | 49 | foreach ($filters as $filter) { |
| 50 | - $params = is_array($filter) ? $filter : array( $filter ); |
|
| 50 | + $params = is_array($filter) ? $filter : array($filter); |
|
| 51 | 51 | if (isset($params[0])) { |
| 52 | 52 | $filtrator->add($this->getName(), $params[0], @$params[1], @$params[2], @$params[3]); |
| 53 | 53 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | protected function ensureHintAttributes() |
| 11 | 11 | { |
| 12 | - if ( ! isset($this[Specs::HINT_ATTRIBUTES])) { |
|
| 12 | + if (!isset($this[Specs::HINT_ATTRIBUTES])) { |
|
| 13 | 13 | $this[Specs::HINT_ATTRIBUTES] = new AttributesContainer(); |
| 14 | 14 | } |
| 15 | 15 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | protected function ensureLabelAttributes() |
| 11 | 11 | { |
| 12 | - if ( ! isset($this[Specs::LABEL_ATTRIBUTES])) { |
|
| 12 | + if (!isset($this[Specs::LABEL_ATTRIBUTES])) { |
|
| 13 | 13 | $this[Specs::LABEL_ATTRIBUTES] = new AttributesContainer(); |
| 14 | 14 | } |
| 15 | 15 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | protected function prepareValidator(InputFilter $input) |
| 42 | 42 | { |
| 43 | 43 | $validationRules = $this->getValidationRules(); |
| 44 | - if ( ! $validationRules || ! is_array($validationRules)) { |
|
| 44 | + if (!$validationRules || !is_array($validationRules)) { |
|
| 45 | 45 | return; |
| 46 | 46 | } |
| 47 | 47 | $validator = $input->getValidator(); |