Skip to content

Commit

Permalink
feat(php): bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Feb 2, 2022
1 parent ac1b1d0 commit 8a73a54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions plugin-name/engine/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function is_amp() {
* @param \WP_User|null $user The given user.
* @return bool
*/
public static function is_user_admin( \WP_User $user = null ) { //phpcs:ignore
public static function is_user_admin( \WP_User $user = null ) { // phpcs:ignore
if ( \is_null( $user ) ) {
$user = \wp_get_current_user();
}
Expand All @@ -93,9 +93,7 @@ public static function is_user_admin( \WP_User $user = null ) { //phpcs:ignore
\_doing_it_wrong( __METHOD__, 'To check if the user is admin is required a WP_User object.', '{{plugin_version}}' );
}

return \is_multisite() ?
\user_can( $user, 'manage_network' ) :
\user_can( $user, 'manage_options' );
return \is_multisite() ? \user_can( $user, 'manage_network' ) : \user_can( $user, 'manage_options' ); // phpcs:ignore
}

}
3 changes: 2 additions & 1 deletion plugin-name/internals/Transient.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace Plugin_Name\Internals;

use Plugin_Name\Engine\Base;
use stdClass;
use \stdClass;

/**
* Transient used by the plugin
Expand Down Expand Up @@ -79,6 +79,7 @@ public function print_transient_output() {
}

echo '</div>';

return '';
}

Expand Down

0 comments on commit 8a73a54

Please sign in to comment.