@@ -145,8 +145,6 @@ public function notices()
145145
146146 /**
147147 * Checks current version against stored version & runs necessary update routines.
148- *
149- * @return bool
150148 */
151149 protected function run_migrations ()
152150 {
@@ -156,7 +154,7 @@ protected function run_migrations()
156154 $ current_version = $ this ->plugin ->version ();
157155
158156 if (version_compare ($ current_version , $ previous_version , '<= ' )) {
159- return false ;
157+ return ;
160158 }
161159
162160 $ upgrade_routines = new Migrations ($ previous_version , $ current_version , __DIR__ . '/migrations ' );
@@ -381,13 +379,11 @@ public function load_assets()
381379 * Register meta boxes
382380 *
383381 * @param string $post_type
384- *
385- * @return bool
386382 */
387383 public function add_meta_boxes ($ post_type )
388384 {
389385 if ($ post_type !== 'boxzilla-box ' ) {
390- return false ;
386+ return ;
391387 }
392388
393389 add_meta_box (
@@ -423,8 +419,6 @@ public function add_meta_boxes($post_type)
423419 'boxzilla-box ' ,
424420 'side '
425421 );
426-
427- return true ;
428422 }
429423
430424 /**
@@ -489,30 +483,28 @@ public function metabox_support(\WP_Post $post, $metabox)
489483 * Saves box options and rules
490484 *
491485 * @param int $box_id
492- *
493- * @return bool
486+ * @param \WP_Post $post
494487 */
495488 public function save_box_options ($ box_id , $ post )
496489 {
497-
498490 // Only act on our own post type
499491 if ($ post ->post_type !== 'boxzilla-box ' ) {
500- return false ;
492+ return ;
501493 }
502494
503495 // is this a revision save?
504496 if (wp_is_post_revision ($ box_id ) || ( defined ('DOING_AUTOSAVE ' ) && DOING_AUTOSAVE )) {
505- return false ;
497+ return ;
506498 }
507499
508500 // can user edit this post?
509501 if (! current_user_can ('edit_post ' , $ box_id )) {
510- return false ;
502+ return ;
511503 }
512504
513505 // make sure options array is set
514506 if (! isset ($ _POST ['boxzilla_box ' ]) || ! is_array ($ _POST ['boxzilla_box ' ])) {
515- return false ;
507+ return ;
516508 }
517509
518510 // get new options from $_POST
@@ -535,8 +527,6 @@ public function save_box_options($box_id, $post)
535527 }
536528
537529 $ this ->flush_rules ($ box_id );
538-
539- return true ;
540530 }
541531
542532 /**
0 commit comments