@@ -90,7 +90,7 @@ public static function get_suggested_fields( $json, $args ) {
90
90
*
91
91
* @return MslsMetaBox
92
92
*/
93
- public static function init () {
93
+ public static function init (): MslsMetaBox {
94
94
$ options = msls_options ();
95
95
$ obj = new static ( $ options , msls_blog_collection () );
96
96
@@ -104,9 +104,9 @@ public static function init() {
104
104
}
105
105
106
106
/**
107
- * Add
107
+ * Adds the meta box to the post types
108
108
*/
109
- public function add () {
109
+ public function add (): void {
110
110
foreach ( MslsPostType::instance ()->get () as $ post_type ) {
111
111
112
112
add_meta_box (
@@ -153,7 +153,7 @@ public function add() {
153
153
*
154
154
* @uses selected
155
155
*/
156
- public function render_select () {
156
+ public function render_select (): void {
157
157
$ blogs = $ this ->collection ->get ();
158
158
if ( $ blogs ) {
159
159
global $ post ;
@@ -269,7 +269,7 @@ public function render_options( $type, $msls_id ): string {
269
269
*
270
270
* @return string
271
271
*/
272
- public function render_option ( $ post_id , $ msls_id ) {
272
+ public function render_option ( $ post_id , $ msls_id ): string {
273
273
return sprintf (
274
274
'<option value="%s" %s>%s</option> ' ,
275
275
$ post_id ,
@@ -283,7 +283,7 @@ public function render_option( $post_id, $msls_id ) {
283
283
*
284
284
* @param bool $echo Whether the metabox markup should be echoed to the page or not.
285
285
*/
286
- public function render_input () {
286
+ public function render_input (): void {
287
287
$ blogs = $ this ->collection ->get ();
288
288
289
289
if ( $ blogs ) {
@@ -356,7 +356,7 @@ public function render_input() {
356
356
*
357
357
* @param int $post_id
358
358
*/
359
- public function set ( $ post_id ) {
359
+ public function set ( $ post_id ): void {
360
360
if ( $ this ->is_autosave ( $ post_id ) || ! $ this ->verify_nonce () ) {
361
361
return ;
362
362
}
0 commit comments