save accesses the super-global variable $_POST.
public static function save($post_id, $post)
{
if (empty(VindiHelpers::sanitize_xss($_POST['woocommerce_meta_nonce'])) ||
!wp_verify_nonce(VindiHelpers::sanitize_xss($_POST['woocommerce_meta_nonce']), 'woocommerce_save_data')) {
save accesses the super-global variable $_POST.
public static function save($post_id, $post)
{
if (empty(VindiHelpers::sanitize_xss($_POST['woocommerce_meta_nonce'])) ||
!wp_verify_nonce(VindiHelpers::sanitize_xss($_POST['woocommerce_meta_nonce']), 'woocommerce_save_data')) {
save accesses the super-global variable $_POST.
public static function save($post_id, $post)
{
if (empty(VindiHelpers::sanitize_xss($_POST['woocommerce_meta_nonce'])) ||
!wp_verify_nonce(VindiHelpers::sanitize_xss($_POST['woocommerce_meta_nonce']), 'woocommerce_save_data')) {
Avoid using static access to class 'VindiPaymentGateways\VindiHelpers' in method 'save'.
!wp_verify_nonce(VindiHelpers::sanitize_xss($_POST['woocommerce_meta_nonce']), 'woocommerce_save_data')) {
Avoid using static access to class 'VindiPaymentGateways\VindiHelpers' in method 'save'.
if (empty(VindiHelpers::sanitize_xss($_POST['woocommerce_meta_nonce'])) ||
Avoid unused parameters such as '$post'.
public static function save($post_id, $post)
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 14 and the first side effect is on line 8.
<?php
Expected 0 spaces before closing bracket; 1 found
if ( ! defined( 'ABSPATH' ) ) {
Opening brace of a class must be on the line after the definition
class CouponsMetaBox {
Spaces must be used to indent lines; tabs are not allowed
exit;
Expected 0 spaces after opening bracket; 1 found
if ( ! defined( 'ABSPATH' ) ) {
Expected 0 spaces before closing bracket; 1 found
if ( ! defined( 'ABSPATH' ) ) {
Space after opening parenthesis of function call prohibited
if ( ! defined( 'ABSPATH' ) ) {
There are no issues that match your filters.