Fix: Correct placement of @phpcs:ignore for unused param
- Moves the ignore directive to the line preceding the @param tag within the docblock to resolve PHP syntax error and suppress warning.
This commit is contained in:
@@ -41,9 +41,9 @@ class Admin {
|
|||||||
/**
|
/**
|
||||||
* Enqueues admin scripts and styles.
|
* Enqueues admin scripts and styles.
|
||||||
*
|
*
|
||||||
|
* @phpcs:ignore WordPress.CodeAnalysis.UnusedFunctionParameter.Found
|
||||||
* @param string $hook_suffix The current admin page.
|
* @param string $hook_suffix The current admin page.
|
||||||
*/
|
*/
|
||||||
@phpcs:ignore WordPress.CodeAnalysis.UnusedFunctionParameter.Found
|
|
||||||
public function enqueue_admin_assets( string $hook_suffix ) {
|
public function enqueue_admin_assets( string $hook_suffix ) {
|
||||||
// Enqueue admin styles.
|
// Enqueue admin styles.
|
||||||
\wp_enqueue_style(
|
\wp_enqueue_style(
|
||||||
|
|||||||
Reference in New Issue
Block a user