Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32568 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-05-24 05:39:47 +00:00
parent abca40cf44
commit 39ef6a72c5
16 changed files with 32 additions and 37 deletions

View File

@@ -129,7 +129,7 @@ class WP_Customize_Setting {
* @since 4.2.0
* @access public
*
* @return bool|null Returns null if preview() has not been called yet.
* @return bool|void If preview() has been called.
*/
public function is_current_blog_previewed() {
if ( ! isset( $this->_previewed_blog_id ) ) {
@@ -235,7 +235,7 @@ class WP_Customize_Setting {
*
* @since 3.4.0
*
* @return false|null False if cap check fails or value isn't set.
* @return false|void False if cap check fails or value isn't set.
*/
final public function save() {
$value = $this->post_value();
@@ -461,7 +461,7 @@ class WP_Customize_Setting {
* @param $root
* @param $keys
* @param bool $create Default is false.
* @return null|array Keys are 'root', 'node', and 'key'.
* @return array|void Keys are 'root', 'node', and 'key'.
*/
final protected function multidimensional( &$root, $keys, $create = false ) {
if ( $create && empty( $root ) )