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

See #32444.

Built from https://develop.svn.wordpress.org/trunk@32568


git-svn-id: http://core.svn.wordpress.org/trunk@32538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor
2015-05-24 05:40:25 +00:00
parent 876918dc53
commit bd8fafea54
17 changed files with 33 additions and 38 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 ) )