Fixed includes/class-wc-session-handler.php PHPCS violations

This commit is contained in:
Claudio Sanches 2018-03-21 00:18:01 -03:00
parent 24cc589fd5
commit 8a31755b8c
2 changed files with 4 additions and 7 deletions

View File

@ -8,16 +8,12 @@
* @class WC_Session_Handler
* @version 2.5.0
* @package WooCommerce/Classes
* @category Class
* @author Automattic
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
/**
* WC_Session_Handler
* Session handler class.
*/
class WC_Session_Handler extends WC_Session {

View File

@ -24,8 +24,9 @@
<!-- Rules -->
<rule ref="WooCommerce-Core" />
<rule ref="PHPCompatibility">
<exclude name="PHPCompatibility.PHP.NewKeywords.t_namespaceFound" />
<exclude name="PHPCompatibility.PHP.NewFunctions.hash_equalsFound" />
<exclude name="PHPCompatibility.PHP.NewInterfaces.jsonserializableFound" />
<exclude name="PHPCompatibility.PHP.NewKeywords.t_namespaceFound" />
<exclude-pattern>tests/</exclude-pattern>
</rule>