$issue ) { if ( ! empty( $issue['autoFixable'] ) ) { $fixable[] = $rule_id; } } return $fixable; } /** * Read and decode a bundled JSON data file. * * @param string $filename File inside /data. * @return array */ private static function read( $filename ) { $path = ACCESSVANE_DIR . 'data/' . $filename; if ( ! file_exists( $path ) || ! is_readable( $path ) ) { return array(); } // Bundled, read-only plugin data — not remote content, and never written // to at runtime. $raw = file_get_contents( $path ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents if ( false === $raw ) { return array(); } $decoded = json_decode( $raw, true ); return is_array( $decoded ) ? $decoded : array(); } }