@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $this->getName(), |
| 72 | 72 | 'callback', |
| 73 | 73 | array( |
| 74 | - Callback::OPTION_CALLBACK => array( $this, 'filterValue' ) |
|
| 74 | + Callback::OPTION_CALLBACK => array($this, 'filterValue') |
|
| 75 | 75 | ) |
| 76 | 76 | ); |
| 77 | 77 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | function filterValue($value, $valueIdentifier = null) |
| 88 | 88 | { |
| 89 | - if ( ! $value) { |
|
| 89 | + if (!$value) { |
|
| 90 | 90 | return null; |
| 91 | 91 | } |
| 92 | 92 | $allowedValues = array_keys($this->getOptions()); |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | protected function ensureData() |
| 11 | 11 | { |
| 12 | - if ( ! isset($this[Specs::DATA])) { |
|
| 12 | + if (!isset($this[Specs::DATA])) { |
|
| 13 | 13 | $this[Specs::DATA] = new DataContainer(); |
| 14 | 14 | } |
| 15 | 15 | } |
@@ -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 | } |
@@ -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(); |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | $preparableMethods = array('prepareValidator', 'prepareFiltrator', 'prepareUploadHandlers'); |
| 173 | 173 | foreach ($preparableMethods as $method) { |
| 174 | 174 | if (method_exists($this, $method)) { |
| 175 | - call_user_func(array( $this, $method), $inputFilter); |
|
| 175 | + call_user_func(array($this, $method), $inputFilter); |
|
| 176 | 176 | } |
| 177 | 177 | } |
| 178 | 178 | } |