Skip to content

Commit 647bfee

Browse files
committed
Render methods tested
1 parent c6a189f commit 647bfee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

includes/MslsCustomColumnTaxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function column_default( $deprecated, $column_name, $item_id ) {
5353
*
5454
* @param int $object_id
5555
*/
56-
public function delete( $object_id ) {
56+
public function delete( $object_id ): void {
5757
$this->save( $object_id, MslsOptionsTax::class );
5858
}
5959
}

includes/MslsMain.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ protected function get_input_value( $key, $value ) {
113113
*
114114
* @return bool
115115
*/
116-
public function is_autosave( $post_id ) {
116+
public function is_autosave( $post_id ): bool {
117117
return ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || wp_is_post_revision( $post_id );
118118
}
119119

@@ -122,7 +122,7 @@ public function is_autosave( $post_id ) {
122122
*
123123
* @return boolean
124124
*/
125-
public function verify_nonce() {
125+
public function verify_nonce(): bool {
126126
return MslsRequest::has_var( MslsFields::FIELD_MSLS_NONCENAME ) && wp_verify_nonce( MslsRequest::get_var( MslsFields::FIELD_MSLS_NONCENAME ), MslsPlugin::path() );
127127
}
128128

@@ -133,7 +133,7 @@ public function verify_nonce() {
133133
*
134134
* @codeCoverageIgnore
135135
*/
136-
public function delete( $object_id ) {
136+
public function delete( $object_id ): void {
137137
$this->save( $object_id, MslsOptionsPost::class );
138138
}
139139

@@ -145,7 +145,7 @@ public function delete( $object_id ) {
145145
*
146146
* @codeCoverageIgnore
147147
*/
148-
protected function save( $object_id, $class ) {
148+
protected function save( $object_id, $class ): void {
149149
if ( has_action( 'msls_main_save' ) ) {
150150
/**
151151
* Calls completely customized save-routine

0 commit comments

Comments
 (0)