Passed
Push — master ( 4cac9e...052e2f )
by Chris
02:15
created
class-edu-klarnacheckout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 defined( 'ABSPATH' ) || die( 'This plugin must be run within the scope of WordPress.' );
3 3
 
4
-if ( ! class_exists( 'EDU_KlarnaCheckout' ) ) {
4
+if ( !class_exists( 'EDU_KlarnaCheckout' ) ) {
5 5
 	class EDU_KlarnaCheckout extends EDU_Integration {
6 6
 		public function __construct() {
7 7
 			$this->id          = 'eduadmin-klarnacheckout';
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 				return;
52 52
 			}
53 53
 
54
-			if ( ! empty( $_POST['act'] ) && 'bookCourse' === $_POST['act'] ) {
54
+			if ( !empty( $_POST['act'] ) && 'bookCourse' === $_POST['act'] ) {
55 55
 				$ebi->NoRedirect = true;
56 56
 			}
57 57
 		}
Please login to merge, or discard this patch.
checkout-page.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,2 +1,2 @@
 block discarded – undo
1 1
 <?php
2
-EDU()->write_debug($checkout);
2
+EDU()->write_debug( $checkout );
Please login to merge, or discard this patch.
eduadmin-wp-klarna-checkout.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 	along with this program. If not, see <http://www.gnu.org/licenses/>.
30 30
  */
31 31
 
32
-add_action( 'admin_init', function () {
33
-	if ( is_admin() && current_user_can( 'activate_plugins' ) && ( ! is_plugin_active( 'eduadmin-booking/eduadmin.php' ) && ! is_plugin_active( 'eduadmin/eduadmin.php' ) ) ) {
34
-		add_action( 'admin_notices', function () {
32
+add_action( 'admin_init', function() {
33
+	if ( is_admin() && current_user_can( 'activate_plugins' ) && ( !is_plugin_active( 'eduadmin-booking/eduadmin.php' ) && !is_plugin_active( 'eduadmin/eduadmin.php' ) ) ) {
34
+		add_action( 'admin_notices', function() {
35 35
 			?>
36 36
             <div class="error">
37 37
                 <p><?php esc_html_e( 'This plugin requires the EduAdmin-WordPress-plugin to be installed and activated.', 'eduadmin-wp-klarna-checkout' ); ?></p>
@@ -45,14 +45,14 @@  discard block
 block discarded – undo
45 45
 	}
46 46
 } );
47 47
 
48
-if ( ! class_exists( 'EDU_KlarnaCheckout_Loader' ) ) {
48
+if ( !class_exists( 'EDU_KlarnaCheckout_Loader' ) ) {
49 49
 	final class EDU_KlarnaCheckout_Loader {
50 50
 		public function __construct() {
51 51
 			add_action( 'plugins_loaded', array( $this, 'init' ) );
52 52
 		}
53 53
 
54 54
 		public function init() {
55
-			if ( ! class_exists( 'Klarna_Checkout_Connector' ) ) {
55
+			if ( !class_exists( 'Klarna_Checkout_Connector' ) ) {
56 56
 				require_once __DIR__ . '/klarna_kco_php_4.0.0/src/Klarna/Checkout.php';
57 57
 			}
58 58
 
Please login to merge, or discard this patch.