Fix phpcs violations in includes/payment-tokens/class-wc-payment-token-echeck.php

This commit is contained in:
Rodrigo Primo 2018-03-07 14:55:04 -03:00
parent 799863ea71
commit a8e03a1c4a
1 changed files with 14 additions and 7 deletions

View File

@ -1,7 +1,12 @@
<?php <?php
/**
* Class WC_Payment_Token_eCheck file.
*
* @package WooCommerce\PaymentTokens
*/
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly exit; // Exit if accessed directly.
} }
/** /**
@ -12,13 +17,15 @@ if ( ! defined( 'ABSPATH' ) ) {
* @class WC_Payment_Token_ECheck * @class WC_Payment_Token_ECheck
* @version 3.0.0 * @version 3.0.0
* @since 2.6.0 * @since 2.6.0
* @category PaymentTokens
* @package WooCommerce/PaymentTokens * @package WooCommerce/PaymentTokens
* @author WooThemes
*/ */
class WC_Payment_Token_ECheck extends WC_Payment_Token { class WC_Payment_Token_ECheck extends WC_Payment_Token {
/** @protected string Token Type String. */ /**
* Token Type String.
*
* @var string
*/
protected $type = 'eCheck'; protected $type = 'eCheck';
/** /**
@ -34,7 +41,7 @@ class WC_Payment_Token_ECheck extends WC_Payment_Token {
* Get type to display to user. * Get type to display to user.
* *
* @since 2.6.0 * @since 2.6.0
* @param string $deprecated Deprecated since WooCommerce 3.0 * @param string $deprecated Deprecated since WooCommerce 3.0.
* @return string * @return string
*/ */
public function get_display_name( $deprecated = '' ) { public function get_display_name( $deprecated = '' ) {
@ -74,7 +81,7 @@ class WC_Payment_Token_ECheck extends WC_Payment_Token {
* Returns the last four digits. * Returns the last four digits.
* *
* @since 2.6.0 * @since 2.6.0
* @param string $context * @param string $context What the value is for. Valid values are view and edit.
* @return string Last 4 digits * @return string Last 4 digits
*/ */
public function get_last4( $context = 'view' ) { public function get_last4( $context = 'view' ) {
@ -85,7 +92,7 @@ class WC_Payment_Token_ECheck extends WC_Payment_Token {
* Set the last four digits. * Set the last four digits.
* *
* @since 2.6.0 * @since 2.6.0
* @param string $last4 * @param string $last4 eCheck last four digits.
*/ */
public function set_last4( $last4 ) { public function set_last4( $last4 ) {
$this->set_prop( 'last4', $last4 ); $this->set_prop( 'last4', $last4 );