@@ -26,12 +26,12 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function __construct() |
28 | 28 | { |
29 | - add_action('init', [$this, 'postType']); |
|
30 | - add_action('init', [$this, 'taxonomyType']); |
|
31 | - add_action('init', [$this, 'fields'], 20); |
|
29 | + add_action('init', [ $this, 'postType' ]); |
|
30 | + add_action('init', [ $this, 'taxonomyType' ]); |
|
31 | + add_action('init', [ $this, 'fields' ], 20); |
|
32 | 32 | |
33 | - add_filter('post_type_link', [$this, 'permalink'], 1, 2); |
|
34 | - add_filter('term_link', [$this, 'taxonomyPermalink'], 1, 2); |
|
33 | + add_filter('post_type_link', [ $this, 'permalink' ], 1, 2); |
|
34 | + add_filter('term_link', [ $this, 'taxonomyPermalink' ], 1, 2); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | if (is_array($postTypes)) { |
65 | 65 | foreach ($postTypes as $key => $postType) { |
66 | - $postTypes[$key] = static::singleSerialize($postType); |
|
66 | + $postTypes[ $key ] = static::singleSerialize($postType); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | return $postTypes; |
@@ -30,6 +30,6 @@ |
||
30 | 30 | */ |
31 | 31 | public function components() |
32 | 32 | { |
33 | - return []; |
|
33 | + return [ ]; |
|
34 | 34 | } |
35 | 35 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | { |
29 | 29 | if (method_exists(get_class(), 'definition')) { |
30 | 30 | $definition = static::definition($aName); |
31 | - $definition['location'] = $aConnector; |
|
31 | + $definition[ 'location' ] = $aConnector; |
|
32 | 32 | acf_add_local_field_group($definition); |
33 | 33 | } else { |
34 | 34 | //@deprecated Will be removed in 2.0, and this class will implement FieldComponentInterface |
@@ -26,6 +26,6 @@ |
||
26 | 26 | { |
27 | 27 | $this->rewriteRules(); |
28 | 28 | $this->rewriteTags(); |
29 | - add_action('template_include', [$this, 'templateInclude']); |
|
29 | + add_action('template_include', [ $this, 'templateInclude' ]); |
|
30 | 30 | } |
31 | 31 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function __construct() |
33 | 33 | { |
34 | - add_action('wp_ajax_nopriv_' . $this->action, [$this, 'ajax']); |
|
35 | - add_action('wp_ajax_' . $this->action, [$this, 'ajax']); |
|
34 | + add_action('wp_ajax_nopriv_' . $this->action, [ $this, 'ajax' ]); |
|
35 | + add_action('wp_ajax_' . $this->action, [ $this, 'ajax' ]); |
|
36 | 36 | } |
37 | 37 | } |
@@ -30,6 +30,6 @@ |
||
30 | 30 | */ |
31 | 31 | public function components() |
32 | 32 | { |
33 | - return []; |
|
33 | + return [ ]; |
|
34 | 34 | } |
35 | 35 | } |
@@ -30,6 +30,6 @@ |
||
30 | 30 | */ |
31 | 31 | public function components() |
32 | 32 | { |
33 | - return []; |
|
33 | + return [ ]; |
|
34 | 34 | } |
35 | 35 | } |
@@ -30,6 +30,6 @@ |
||
30 | 30 | */ |
31 | 31 | public function components() |
32 | 32 | { |
33 | - return []; |
|
33 | + return [ ]; |
|
34 | 34 | } |
35 | 35 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function templates($templates) |
34 | 34 | { |
35 | - return array_merge($templates, ['dummy-template' => 'DummyTemplate']); |
|
35 | + return array_merge($templates, [ 'dummy-template' => 'DummyTemplate' ]); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |