Skip to content

Commit 2b28e4a

Browse files
committed
style: use spaces in DocComment
1 parent fa6555f commit 2b28e4a

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed

acf-hide-layout.php

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,32 @@ class ACF_Hide_Layout {
1919
/**
2020
* The single instance of the class.
2121
*
22-
* @since 1.0
23-
* @access protected
22+
* @since 1.0
23+
* @access protected
2424
*/
2525
protected static $instance = null;
2626

2727
/**
2828
* Field key.
2929
*
30-
* @since 1.0
31-
* @access protected
30+
* @since 1.0
31+
* @access protected
3232
*/
3333
protected $field_key = 'acf_hide_layout';
3434

3535
/**
3636
* Layouts that will be hidden.
3737
*
38-
* @since 1.0
39-
* @access protected
38+
* @since 1.0
39+
* @access protected
4040
*/
4141
protected $hidden_layouts = [];
4242

4343
/**
4444
* A dummy magic method to prevent class from being cloned.
4545
*
46-
* @since 1.0
47-
* @access public
46+
* @since 1.0
47+
* @access public
4848
*/
4949
public function __clone() {
5050
_doing_it_wrong( __FUNCTION__, 'Cheatin’ huh?', '1.0.0' );
@@ -53,8 +53,8 @@ public function __clone() {
5353
/**
5454
* A dummy magic method to prevent class from being unserialized.
5555
*
56-
* @since 1.0
57-
* @access public
56+
* @since 1.0
57+
* @access public
5858
*/
5959
public function __wakeup() {
6060
_doing_it_wrong( __FUNCTION__, 'Cheatin’ huh?', '1.0.0' );
@@ -65,10 +65,10 @@ public function __wakeup() {
6565
*
6666
* Ensures only one instance is loaded or can be loaded.
6767
*
68-
* @since 1.0
69-
* @access public
68+
* @since 1.0
69+
* @access public
7070
*
71-
* @return Main instance.
71+
* @return Main instance.
7272
*/
7373
public static function instance() {
7474
if ( is_null( self::$instance ) ) {
@@ -80,8 +80,8 @@ public static function instance() {
8080
/**
8181
* Constructor.
8282
*
83-
* @since 1.0
84-
* @access public
83+
* @since 1.0
84+
* @access public
8585
*/
8686
public function __construct() {
8787

@@ -94,10 +94,10 @@ public function __construct() {
9494
/**
9595
* Get the plugin url.
9696
*
97-
* @since 1.0
98-
* @access public
97+
* @since 1.0
98+
* @access public
9999
*
100-
* @return string
100+
* @return string
101101
*/
102102
public function get_plugin_url() {
103103
return plugin_dir_url( $this->file );
@@ -106,10 +106,10 @@ public function get_plugin_url() {
106106
/**
107107
* Get the plugin path.
108108
*
109-
* @since 1.0
110-
* @access public
109+
* @since 1.0
110+
* @access public
111111
*
112-
* @return string
112+
* @return string
113113
*/
114114
public function get_plugin_path() {
115115
return plugin_dir_path( $this->file );
@@ -118,10 +118,10 @@ public function get_plugin_path() {
118118
/**
119119
* Retrieve the version number of the plugin.
120120
*
121-
* @since 1.0
122-
* @access public
121+
* @since 1.0
122+
* @access public
123123
*
124-
* @return string
124+
* @return string
125125
*/
126126
public function get_version() {
127127
$plugin_data = get_file_data( $this->file, [ 'Version' => 'Version' ], 'plugin' );
@@ -131,10 +131,10 @@ public function get_version() {
131131
/**
132132
* Get field key.
133133
*
134-
* @since 1.0
135-
* @access public
134+
* @since 1.0
135+
* @access public
136136
*
137-
* @return string Field key.
137+
* @return string Field key.
138138
*/
139139
public function get_field_key() {
140140
return $this->field_key;
@@ -143,10 +143,10 @@ public function get_field_key() {
143143
/**
144144
* Get hidden layouts.
145145
*
146-
* @since 1.0
147-
* @access public
146+
* @since 1.0
147+
* @access public
148148
*
149-
* @return array Hidden layouts.
149+
* @return array Hidden layouts.
150150
*/
151151
public function get_hidden_layouts() {
152152
return $this->hidden_layouts;
@@ -155,11 +155,11 @@ public function get_hidden_layouts() {
155155
/**
156156
* Set hidden layout.
157157
*
158-
* @since 1.0
159-
* @access public
158+
* @since 1.0
159+
* @access public
160160
*
161-
* @param string $field_key
162-
* @param int $row
161+
* @param string $field_key
162+
* @param int $row
163163
*/
164164
public function set_hidden_layout( $field_key, $row ) {
165165
$this->hidden_layouts[ $field_key ][] = 'row-' . $row;
@@ -171,12 +171,12 @@ public function set_hidden_layout( $field_key, $row ) {
171171
* Thanks WooCommerce
172172
* @see https://github.com/woocommerce/woocommerce/blob/master/includes/class-woocommerce.php#L304
173173
*
174-
* @since 1.0
175-
* @access public
174+
* @since 1.0
175+
* @access public
176176
*
177-
* @param string $type admin, ajax, cron or frontend.
177+
* @param string $type admin, ajax, cron or frontend.
178178
*
179-
* @return bool
179+
* @return bool
180180
*/
181181
public function is_request( $type ) {
182182
switch ( $type ) {
@@ -194,8 +194,8 @@ public function is_request( $type ) {
194194
/**
195195
* Hook into actions and filters.
196196
*
197-
* @since 1.0
198-
* @access private
197+
* @since 1.0
198+
* @access private
199199
*/
200200
private function init_hooks() {
201201
add_action( 'init', [ $this, 'init' ], 0 );
@@ -208,8 +208,8 @@ private function init_hooks() {
208208
/**
209209
* Init when WordPress Initialises.
210210
*
211-
* @since 1.0
212-
* @access public
211+
* @since 1.0
212+
* @access public
213213
*/
214214
public function init() {
215215
// Set up localisation.
@@ -219,8 +219,8 @@ public function init() {
219219
/**
220220
* Enqueue scripts.
221221
*
222-
* @since 1.0
223-
* @access public
222+
* @since 1.0
223+
* @access public
224224
*/
225225
public function enqueue_scripts() {
226226
$assets_url = $this->get_plugin_url() . 'assets/';
@@ -235,8 +235,8 @@ public function enqueue_scripts() {
235235
*
236236
* admin_enqueue_scripts is to early for hidden layouts.
237237
*
238-
* @since 1.0
239-
* @access public
238+
* @since 1.0
239+
* @access public
240240
*/
241241
public function admin_footer() {
242242

@@ -253,8 +253,8 @@ public function admin_footer() {
253253
/**
254254
* Load Localisation files.
255255
*
256-
* @since 1.0
257-
* @access public
256+
* @since 1.0
257+
* @access public
258258
*/
259259
public function load_plugin_textdomain() {
260260
load_plugin_textdomain( 'acf-hide-layout', false, plugin_basename( dirname( $this->file ) ) . '/languages' );
@@ -263,14 +263,14 @@ public function load_plugin_textdomain() {
263263
/**
264264
* Remove layouts that are hidden from frontend.
265265
*
266-
* @since 1.0
267-
* @access public
266+
* @since 1.0
267+
* @access public
268268
*
269-
* @param mixed $layouts The value to preview.
270-
* @param string $post_id The post ID for this value.
271-
* @param array $field The field array.
269+
* @param mixed $layouts The value to preview.
270+
* @param string $post_id The post ID for this value.
271+
* @param array $field The field array.
272272
*
273-
* @return array $layouts
273+
* @return array $layouts
274274
*/
275275
public function load_value( $layouts, $post_id, $field ) {
276276

@@ -309,15 +309,15 @@ public function load_value( $layouts, $post_id, $field ) {
309309
/**
310310
* Update the field acf_hide_layout value.
311311
*
312-
* @since 1.0
313-
* @access public
312+
* @since 1.0
313+
* @access public
314314
*
315-
* @param mixed $rows The value to update.
316-
* @param string $post_id The post ID for this value.
317-
* @param array $field The field array.
318-
* @param mixed $original The original value before modification.
315+
* @param mixed $rows The value to update.
316+
* @param string $post_id The post ID for this value.
317+
* @param array $field The field array.
318+
* @param mixed $original The original value before modification.
319319
*
320-
* @return mixed $rows
320+
* @return mixed $rows
321321
*/
322322
public function update_value( $rows, $post_id, $field, $original ) {
323323

0 commit comments

Comments
 (0)