Absolute path and Indentation fix for includes/gateways/*.php :)

This commit is contained in:
shivapoudel 2014-09-21 01:27:58 +05:45
parent fedb4dae7c
commit bc5156ff4a
14 changed files with 45 additions and 19 deletions

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Bank Transfer Payment Gateway

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Cheque Payment Gateway
@ -125,4 +127,4 @@ class WC_Gateway_Cheque extends WC_Payment_Gateway {
'redirect' => $this->get_return_url( $order )
);
}
}
}

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Cash on Delivery Gateway

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Mijireh Checkout Gateway
@ -222,7 +224,7 @@ class WC_Gateway_Mijireh extends WC_Payment_Gateway {
$billing->country = $wc_order->billing_country;
$billing->company = $wc_order->billing_company;
$billing->phone = $wc_order->billing_phone;
if ( $billing->validate() ) {
$mj_order->set_billing_address( $billing );
}
@ -238,7 +240,7 @@ class WC_Gateway_Mijireh extends WC_Payment_Gateway {
$shipping->zip_code = $wc_order->shipping_postcode;
$shipping->country = $wc_order->shipping_country;
$shipping->company = $wc_order->shipping_company;
if ( $shipping->validate() ) {
$mj_order->set_shipping_address( $shipping );
}
@ -364,4 +366,4 @@ class WC_Gateway_Mijireh extends WC_Payment_Gateway {
echo '<a class="nobold" href="' . Mijireh::preview_checkout_link() . '" id="view_slurp" target="_new">Preview Checkout Page</a></p>';
echo "</div>";
}
}
}

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Mijireh_Address extends Mijireh_Model {

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Mijireh_Item extends Mijireh_Model {
@ -57,4 +59,4 @@ class Mijireh_Item extends Mijireh_Model {
return count($this->_errors) == 0;
}
}
}

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$root_dir = dirname(__FILE__) . DIRECTORY_SEPARATOR;

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Mijireh_Model {

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Mijireh_Order extends Mijireh_Model {

View File

@ -7,7 +7,9 @@
* under the terms of the MIT License (see http://en.wikipedia.org/wiki/MIT_License)
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Mijireh_Rest {
@ -260,4 +262,4 @@ class Mijireh_Rest_UnknownResponse extends Mijireh_Rest_Exception { }
/* 410 */ class Mijireh_Rest_Gone extends Mijireh_Rest_ClientError {}
/* 422 */ class Mijireh_Rest_InvalidRecord extends Mijireh_Rest_ClientError {}
/* 500-599 */ class Mijireh_Rest_ServerError extends Mijireh_Rest_Exception {}
/* 500-599 */ class Mijireh_Rest_ServerError extends Mijireh_Rest_Exception {}

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Mijireh_RestJSON extends Mijireh_Rest {
@ -25,4 +27,4 @@ class Mijireh_RestJSON extends Mijireh_Rest {
return json_decode($body, true);
}
}
}

View File

@ -1,6 +1,8 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* PayPal Standard Payment Gateway

View File

@ -1,4 +1,5 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

View File

@ -1,4 +1,5 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}