@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function __construct( |
45 | 45 | $name = '', |
46 | - $components = [], |
|
46 | + $components = [ ], |
|
47 | 47 | $connector = null |
48 | 48 | ) |
49 | 49 | { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | public function connector() |
94 | 94 | { |
95 | 95 | if ($this->connector === null) { |
96 | - return []; |
|
96 | + return [ ]; |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | return $this->connector->connector(); |
@@ -45,8 +45,7 @@ |
||
45 | 45 | $name = '', |
46 | 46 | $components = [], |
47 | 47 | $connector = null |
48 | - ) |
|
49 | - { |
|
48 | + ) { |
|
50 | 49 | if ($connector !== null && !$connector instanceof FieldConnector) { |
51 | 50 | throw new \Exception('Connector must implement FieldConnector'); |
52 | 51 | } |
@@ -29,8 +29,8 @@ |
||
29 | 29 | { |
30 | 30 | parent::__construct($this->name); |
31 | 31 | |
32 | - add_action('admin_init', [$this, 'addScreenAttributes']); |
|
33 | - add_action('admin_init', [$this, 'removeScreenAttributes']); |
|
32 | + add_action('admin_init', [ $this, 'addScreenAttributes' ]); |
|
33 | + add_action('admin_init', [ $this, 'removeScreenAttributes' ]); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |