@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | /** |
| 64 | 64 | * Checks whether the current request is valid |
| 65 | 65 | * |
| 66 | - * @return bool |
|
| 66 | + * @return null|boolean |
|
| 67 | 67 | **/ |
| 68 | 68 | public function is_valid_save( $user_id = 0 ) { |
| 69 | 69 | if ( ! isset( $_REQUEST[ $this->get_nonce_name() ] ) || ! wp_verify_nonce( $_REQUEST[ $this->get_nonce_name() ], $this->get_nonce_name() ) ) { // Input var okay. |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * Perform checks whether the current save() request is valid |
| 80 | 80 | * |
| 81 | 81 | * @param int $user_id ID of the user against which save() is ran |
| 82 | - * @return bool |
|
| 82 | + * @return null|boolean |
|
| 83 | 83 | **/ |
| 84 | 84 | public function is_valid_save_conditions( $user_id ) { |
| 85 | 85 | $valid = true; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * Show the container only on users who have the $role role. |
| 110 | 110 | * |
| 111 | 111 | * @param string $role |
| 112 | - * @return object $this |
|
| 112 | + * @return User_Meta_Container $this |
|
| 113 | 113 | **/ |
| 114 | 114 | public function show_on_user_role( $role ) { |
| 115 | 115 | $this->settings['show_on']['role'] = (array) $role; |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * Show the container only for users who have either capabilities or roles setup |
| 122 | 122 | * |
| 123 | 123 | * @param array $show_for |
| 124 | - * @return object $this |
|
| 124 | + * @return User_Meta_Container $this |
|
| 125 | 125 | **/ |
| 126 | 126 | public function show_for( $show_for ) { |
| 127 | 127 | $this->settings['show_for'] = $this->parse_show_for( $show_for ); |
@@ -132,7 +132,6 @@ discard block |
||
| 132 | 132 | /** |
| 133 | 133 | * Validate and parse the show_for logic rules. |
| 134 | 134 | * |
| 135 | - * @param array $rules |
|
| 136 | 135 | * @return array |
| 137 | 136 | */ |
| 138 | 137 | protected function parse_show_for( $show_for ) { |