@@ -15,7 +15,7 @@ discard block  | 
                                                    ||
| 15 | 15 | |
| 16 | 16 | protected function on_created()  | 
                                                        
| 17 | 17 |      { | 
                                                        
| 18 | - if($this->multi && !\is_array($this->default)  | 
                                                        |
| 18 | + if ($this->multi && !\is_array($this->default)  | 
                                                        |
| 19 | 19 | || !$this->multi && \is_array($this->default))  | 
                                                        
| 20 | 20 |          { | 
                                                        
| 21 | 21 |              throw new \RuntimeException("The default value must be an array if multi is set to true, and must be a string otherwise."); | 
                                                        
@@ -33,13 +33,13 @@ discard block  | 
                                                    ||
| 33 | 33 | 'multi' => false,  | 
                                                        
| 34 | 34 | 'data' => array(),  | 
                                                        
| 35 | 35 | 'default' => array(),  | 
                                                        
| 36 | - 'filter' => array( $this, 'filter' )  | 
                                                        |
| 36 | + 'filter' => array($this, 'filter')  | 
                                                        |
| 37 | 37 | );  | 
                                                        
| 38 | 38 | }  | 
                                                        
| 39 | 39 | |
| 40 | 40 | public function required_arguments()  | 
                                                        
| 41 | 41 |      { | 
                                                        
| 42 | -        return array('name','data'); | 
                                                        |
| 42 | +        return array('name', 'data'); | 
                                                        |
| 43 | 43 | }  | 
                                                        
| 44 | 44 | |
| 45 | 45 | public function get_template_path()  | 
                                                        
@@ -58,16 +58,16 @@ discard block  | 
                                                    ||
| 58 | 58 | */  | 
                                                        
| 59 | 59 | public function filter($v)  | 
                                                        
| 60 | 60 |      { | 
                                                        
| 61 | - if($this->multi && !\is_array($v))  | 
                                                        |
| 61 | + if ($this->multi && !\is_array($v))  | 
                                                        |
| 62 | 62 |          { | 
                                                        
| 63 | 63 |              return \explode(',', $v); | 
                                                        
| 64 | 64 | }  | 
                                                        
| 65 | 65 | return $v;  | 
                                                        
| 66 | 66 | }  | 
                                                        
| 67 | 67 | |
| 68 | - protected function is_selected( $value )  | 
                                                        |
| 68 | + protected function is_selected($value)  | 
                                                        |
| 69 | 69 |      { | 
                                                        
| 70 | - if($this->multi)  | 
                                                        |
| 70 | + if ($this->multi)  | 
                                                        |
| 71 | 71 |          { | 
                                                        
| 72 | 72 | return \in_array($value, $this->value);  | 
                                                        
| 73 | 73 | }  |