@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | return []; |
| 55 | 55 | } |
| 56 | 56 | $results = explode($this->multiple_separator, substr($input, 1, -1)); |
| 57 | - if ( !empty($this->config['widget_config']['id_field']) |
|
| 57 | + if (!empty($this->config['widget_config']['id_field']) |
|
| 58 | 58 | && $this->config['widget_config']['id_field'] == 'id') { |
| 59 | 59 | $results = array_map(intval(...), $results); |
| 60 | 60 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | public function reverseTransform(mixed $array) : mixed |
| 69 | 69 | { |
| 70 | - if (!is_array($array) ) { |
|
| 70 | + if (!is_array($array)) { |
|
| 71 | 71 | throw new TransformationFailedException('Expected an array.'); |
| 72 | 72 | } |
| 73 | 73 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | public function purify_content(FormEvent $event) |
| 36 | 36 | { |
| 37 | - if ( isset($this->config['Cache']['SerializerPath']) |
|
| 37 | + if (isset($this->config['Cache']['SerializerPath']) |
|
| 38 | 38 | && !file_exists($this->config['Cache']['SerializerPath'])) { |
| 39 | 39 | mkdir($this->config['Cache']['SerializerPath']); |
| 40 | 40 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | // Load custom element/attribute definitions |
| 50 | 50 | $definitions = $this->get_from_global_config('html_purify_HTMLDefinition'); |
| 51 | - if ( !empty($definitions) |
|
| 51 | + if (!empty($definitions) |
|
| 52 | 52 | && $def = $purifier_config->maybeGetRawHTMLDefinition()) { |
| 53 | 53 | if (!empty($definitions['addAttribute'])) { |
| 54 | 54 | foreach (array_filter((array) $definitions['addAttribute'], is_array(...)) as $attrdef) { |