Passed
Push — develop ( 880e1e...04c4f1 )
by Remco
09:23 queued 05:16
created
admin/pointer-start.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,16 +9,16 @@
 block discarded – undo
9 9
  */
10 10
 
11 11
 ?>
12
-<h3><?php esc_html_e( 'Congratulations', 'pronamic_ideal' ); ?></h3>
12
+<h3><?php esc_html_e('Congratulations', 'pronamic_ideal'); ?></h3>
13 13
 
14 14
 <p>
15
-	<?php esc_html_e( 'You’ve just installed the Pronamic Pay plugin. Click “Start Tour” to view a quick introduction of this plugin’s core functionality.', 'pronamic_ideal' ); ?>
15
+	<?php esc_html_e('You’ve just installed the Pronamic Pay plugin. Click “Start Tour” to view a quick introduction of this plugin’s core functionality.', 'pronamic_ideal'); ?>
16 16
 </p>
17 17
 
18 18
 <div class="wp-pointer-buttons pp-pointer-buttons">
19 19
 	<span class="pp-pointer-buttons-right">
20
-		<a href="<?php echo esc_attr( add_query_arg( 'page', 'pronamic_ideal', admin_url( 'admin.php' ) ) ); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e( 'Start tour', 'pronamic_ideal' ); ?></a>
20
+		<a href="<?php echo esc_attr(add_query_arg('page', 'pronamic_ideal', admin_url('admin.php'))); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e('Start tour', 'pronamic_ideal'); ?></a>
21 21
 
22
-		<a href="<?php echo esc_attr( $this->get_close_url() ); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e( 'Close', 'pronamic_ideal' ); ?></a>
22
+		<a href="<?php echo esc_attr($this->get_close_url()); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e('Close', 'pronamic_ideal'); ?></a>
23 23
 	</span>
24 24
 </div>
Please login to merge, or discard this patch.
admin/tab-documentation.php 1 patch
Spacing   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 ?>
14 14
 
15
-<h2><?php esc_html_e( 'Documentation', 'pronamic_ideal' ); ?></h2>
15
+<h2><?php esc_html_e('Documentation', 'pronamic_ideal'); ?></h2>
16 16
 
17 17
 <?php
18 18
 
@@ -103,13 +103,13 @@  discard block
 block discarded – undo
103 103
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2013/04/BPE-3.0-Gateway-HTML.1.02.pdf',
104 104
 				'name'    => 'Buckaroo Payment Engine 3.0 - Implementation Manual - HTML gateway',
105 105
 				'version' => '1.02',
106
-				'date'    => new DateTime( '01-03-2012' ),
106
+				'date'    => new DateTime('01-03-2012'),
107 107
 			),
108 108
 			array(
109 109
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2013/04/BPE-3.0-Service-iDEAL.2.01.pdf',
110 110
 				'name'    => 'Buckaroo Payment Engine 3.0 - iDEAL',
111 111
 				'version' => '2.01',
112
-				'date'    => new DateTime( '14-02-2013' ),
112
+				'date'    => new DateTime('14-02-2013'),
113 113
 			),
114 114
 		),
115 115
 	),
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2011/12/Merchant_Integratie_Gids_2.3_NL.pdf',
122 122
 				'name'    => 'Technische aansluit documentatie',
123 123
 				'version' => '2.23',
124
-				'date'    => new DateTime( '19-08-2011' ),
124
+				'date'    => new DateTime('19-08-2011'),
125 125
 			),
126 126
 		),
127 127
 	),
@@ -158,13 +158,13 @@  discard block
 block discarded – undo
158 158
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2012/09/iDEAL_Merchant_Integratie_Gids_v3.3.1_NL.pdf',
159 159
 				'name'    => 'iDEAL Merchant Integratie Gids',
160 160
 				'version' => '3.3.1',
161
-				'date'    => new DateTime( '01-11-2012' ),
161
+				'date'    => new DateTime('01-11-2012'),
162 162
 			),
163 163
 			array(
164 164
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2012/12/iDEAL-Merchant-Integration-Guide-ENG-v3.3.1.pdf',
165 165
 				'name'    => 'iDEAL Merchant Integration Guide',
166 166
 				'version' => '3.3.1',
167
-				'date'    => new DateTime( '01-11-2012' ),
167
+				'date'    => new DateTime('01-11-2012'),
168 168
 			),
169 169
 		),
170 170
 	),
@@ -307,12 +307,12 @@  discard block
 block discarded – undo
307 307
 			array(
308 308
 				'url'  => 'http://pronamic.nl/wp-content/uploads/2014/01/Handleiding_connectENG.pdf',
309 309
 				'name' => 'MultiSafepay Connect - Implementation Guide Connect',
310
-				'date' => new DateTime( '27-12-2013' ),
310
+				'date' => new DateTime('27-12-2013'),
311 311
 			),
312 312
 			array(
313 313
 				'url'  => 'http://pronamic.nl/wp-content/uploads/2014/01/Handleiding_connectNL.pdf',
314 314
 				'name' => 'MultiSafepay Connect - Implementatie handleiding Connect',
315
-				'date' => new DateTime( '27-12-2013' ),
315
+				'date' => new DateTime('27-12-2013'),
316 316
 			),
317 317
 		),
318 318
 	),
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 			array(
334 334
 				'url'  => 'http://pronamic.nl/wp-content/uploads/2011/12/Ogone_eCom_STD_Integration_20041224_EN.pdf',
335 335
 				'name' => 'Ogone Document II: Ogone e-Commerce, integration in the merchant\'s WEB site',
336
-				'date' => new DateTime( '26-10-2006' ),
336
+				'date' => new DateTime('26-10-2006'),
337 337
 			),
338 338
 			array(
339 339
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2013/08/Ogone_DirectLink_EN.pdf',
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 			array(
370 370
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2013/02/PayGate-PayWebv2-v1.15.pdf',
371 371
 				'name'    => 'PayGate - PayWeb',
372
-				'date'    => new DateTime( '01-02-2012' ),
372
+				'date'    => new DateTime('01-02-2012'),
373 373
 				'version' => '1.0',
374 374
 			),
375 375
 		),
@@ -382,14 +382,14 @@  discard block
 block discarded – undo
382 382
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2011/12/handleiding_ideal_lite_2966321.pdf',
383 383
 				'name'       => 'Rabo iDEAL Lite - Winkel Integratie Handleiding',
384 384
 				'version'    => '2.3',
385
-				'date'       => new DateTime( '01-12-2009' ),
385
+				'date'       => new DateTime('01-12-2009'),
386 386
 				'deprecated' => true,
387 387
 			),
388 388
 			array(
389 389
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2011/12/handleiding_ideal_professional_2966322.pdf',
390 390
 				'name'       => 'Handleiding iDEAL Professional',
391 391
 				'version'    => '2.1',
392
-				'date'       => new DateTime( '01-03-2007' ),
392
+				'date'       => new DateTime('01-03-2007'),
393 393
 				'deprecated' => true,
394 394
 			),
395 395
 			array(
@@ -417,26 +417,26 @@  discard block
 block discarded – undo
417 417
 			array(
418 418
 				'url'  => 'http://pronamic.nl/wp-content/uploads/2012/05/zo_werkt_het_aanvragen_en_aansluiten_van_de_rabo_omnikassa_29417568.pdf',
419 419
 				'name' => 'Zo werkt het aanvragen en aansluiten van de Rabo OmniKassa',
420
-				'date' => new DateTime( '17-04-2012' ),
420
+				'date' => new DateTime('17-04-2012'),
421 421
 			),
422 422
 			array(
423 423
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2012/07/integration_guide_rabo_omnikassa_v2_0_1_final_29451215.pdf',
424 424
 				'name'       => 'Integration guide Rabo OmniKassa',
425
-				'date'       => new DateTime( '01-04-2012' ),
425
+				'date'       => new DateTime('01-04-2012'),
426 426
 				'version'    => '2.0.1',
427 427
 				'deprecated' => true,
428 428
 			),
429 429
 			array(
430 430
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2012/09/Handleiding-iDEAL-Professional.pdf',
431 431
 				'name'       => 'Handleiding iDEAL Professional',
432
-				'date'       => new DateTime( '01-05-2012' ),
432
+				'date'       => new DateTime('01-05-2012'),
433 433
 				'version'    => '1.1',
434 434
 				'deprecated' => true,
435 435
 			),
436 436
 			array(
437 437
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2012/09/Handleiding-iDEAL-Lite.pdf',
438 438
 				'name'       => 'Handleiding iDEAL Lite',
439
-				'date'       => new DateTime( '01-01-2012' ),
439
+				'date'       => new DateTime('01-01-2012'),
440 440
 				'version'    => '2.6',
441 441
 				'deprecated' => true,
442 442
 			),
@@ -444,19 +444,19 @@  discard block
 block discarded – undo
444 444
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2012/09/Integratiehandleiding_Rabo_Omnikassa_v300_nl.pdf',
445 445
 				'name'       => 'Integratiehandleiding Rabo OmniKassa - Versie 3.0 September 2012',
446 446
 				'version'    => '3.0',
447
-				'date'       => new DateTime( '01-09-2012' ),
447
+				'date'       => new DateTime('01-09-2012'),
448 448
 				'deprecated' => true,
449 449
 			),
450 450
 			array(
451 451
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2012/09/Integration_Guide_Rabo_Omnikassa_v300_en.pdf',
452 452
 				'name'    => 'Integration guide Rabo OmniKassa - Version 3.0 September 2012',
453 453
 				'version' => '3.0',
454
-				'date'    => new DateTime( '01-09-2012' ),
454
+				'date'    => new DateTime('01-09-2012'),
455 455
 			),
456 456
 			array(
457 457
 				'url'  => 'http://pronamic.nl/wp-content/uploads/2012/09/zo_werkt_het_aanvragen_en_aansluiten_van_de_rabo_omnikassa_29417568.pdf',
458 458
 				'name' => 'Zo werkt het aanvragen en aansluiten van de Rabo OmniKassa',
459
-				'date' => new DateTime( '03-09-2012' ),
459
+				'date' => new DateTime('03-09-2012'),
460 460
 			),
461 461
 			array(
462 462
 				'url'  => 'http://www.rabobank.nl/omnikassa-actueel',
@@ -466,107 +466,107 @@  discard block
 block discarded – undo
466 466
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2012/11/integratiehandleiding_rabo_omnikassa_versie_7_11_2012_29420242.pdf',
467 467
 				'name'       => 'Integratiehandleiding Rabo OmniKassa - Versie 3.1, november 2012',
468 468
 				'version'    => '3.1',
469
-				'date'       => new DateTime( '01-11-2012' ),
469
+				'date'       => new DateTime('01-11-2012'),
470 470
 				'deprecated' => true,
471 471
 			),
472 472
 			array(
473 473
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2013/01/rabobank_omnikassa_integratiehandleiding_versie_4_1_december_2012_29420242.pdf',
474 474
 				'name'       => 'Integratiehandleiding Rabo OmniKassa - Versie 4.1, december 2012',
475 475
 				'version'    => '4.1',
476
-				'date'       => new DateTime( '01-12-2012' ),
476
+				'date'       => new DateTime('01-12-2012'),
477 477
 				'deprecated' => true,
478 478
 			),
479 479
 			array(
480 480
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2013/01/rabobank_omnikassa_gebruikshandleiding_downloadsite_versie_2_1_december_2012_29420244.pdf',
481 481
 				'name'    => 'Rabo OmniKassa - Gebruikshandleiding Downloadsite - Versie 2.1, december 2012',
482 482
 				'version' => '2.1',
483
-				'date'    => new DateTime( '01-12-2012' ),
483
+				'date'    => new DateTime('01-12-2012'),
484 484
 			),
485 485
 			array(
486 486
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2013/01/rabo_omnikassa_gebruikerhandleiding_dashboard_29420243.pdf',
487 487
 				'name'       => 'Gebruikshandleiding - Dashboard van de Rabo OmniKassa - ROK 2.3 07-11-2012',
488 488
 				'version'    => '2.3',
489
-				'date'       => new DateTime( '07-11-2012' ),
489
+				'date'       => new DateTime('07-11-2012'),
490 490
 				'deprecated' => true,
491 491
 			),
492 492
 			array(
493 493
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2013/06/rabo_omnikassa_gebruikshandleiding_dashboard_new_29550801.pdf',
494 494
 				'name'    => 'Gebruikshandleiding - Dashboard van de Rabo OmniKassa - versie 2.4, 5 juni 2013',
495 495
 				'version' => '2.4',
496
-				'date'    => new DateTime( '05-06-2013' ),
496
+				'date'    => new DateTime('05-06-2013'),
497 497
 			),
498 498
 			array(
499 499
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2013/06/Handleiding-iDEAL-Lite.pdf',
500 500
 				'name'    => 'Rabo iDEAL Lite - Integratie Handleiding',
501 501
 				'version' => '2.6',
502
-				'date'    => new DateTime( '01-01-2012' ),
502
+				'date'    => new DateTime('01-01-2012'),
503 503
 			),
504 504
 			array(
505 505
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2013/06/Handleiding-iDEAL-Professional.pdf',
506 506
 				'name'    => 'Handleiding iDEAL Professional',
507 507
 				'version' => '1.2',
508
-				'date'    => new DateTime( '01-11-2012' ),
508
+				'date'    => new DateTime('01-11-2012'),
509 509
 			),
510 510
 			array(
511 511
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2013/06/rabobank_omnikassa_integratiehandleiding_29420242.pdf',
512 512
 				'name'       => 'Integratiehandleiding Rabobank OmniKassa - Versie 4.2, 5 juni 2013',
513 513
 				'version'    => '4.2',
514
-				'date'       => new DateTime( '05-06-2013' ),
514
+				'date'       => new DateTime('05-06-2013'),
515 515
 				'deprecated' => true,
516 516
 			),
517 517
 			array(
518 518
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2013/08/integratiehandleiding_rabo_omnikassa_en_versie_5_0_juni_2013_10_29451215.pdf',
519 519
 				'name'       => 'Integration Guide Rabo OmniKassa - Versie 5.0, 28 June 2013',
520 520
 				'version'    => '5.0',
521
-				'date'       => new DateTime( '28-06-2013' ),
521
+				'date'       => new DateTime('28-06-2013'),
522 522
 				'deprecated' => true,
523 523
 			),
524 524
 			array(
525 525
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2013/08/integratiehandleiding_rabobank_omnikassa_nl_versie_5_0_juni_2013_10_29420242.pdf',
526 526
 				'name'       => 'Integratiehandleiding Rabo OmniKassa - Versie 5.1, 28 juni 2013',
527 527
 				'version'    => '5.0',
528
-				'date'       => new DateTime( '28-06-2013' ),
528
+				'date'       => new DateTime('28-06-2013'),
529 529
 				'deprecated' => true,
530 530
 			),
531 531
 			array(
532 532
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2013/10/integratiehandleiding_rabo_omnikassa_en_versie_5_0_juni_2013_10_29451215.pdf',
533 533
 				'name'       => 'Integration Guide Rabo OmniKassa - Versie 5.1, October 2013',
534 534
 				'version'    => '5.1',
535
-				'date'       => new DateTime( '01-10-2013' ),
535
+				'date'       => new DateTime('01-10-2013'),
536 536
 				'deprecated' => true,
537 537
 			),
538 538
 			array(
539 539
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2013/10/integratiehandleiding_rabobank_omnikassa_nl_versie_5_0_juni_2013_10_29420242.pdf',
540 540
 				'name'       => 'Integratiehandleiding Rabo OmniKassa - Versie 5.1, oktboer 2013',
541 541
 				'version'    => '5.1',
542
-				'date'       => new DateTime( '01-10-2013' ),
542
+				'date'       => new DateTime('01-10-2013'),
543 543
 				'deprecated' => true,
544 544
 			),
545 545
 			array(
546 546
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2014/01/integratiehandleiding_en_12_2013_29451215.pdf',
547 547
 				'name'       => 'Integration Guide Rabo OmniKassa, Version 6.0, November 2013',
548 548
 				'version'    => '6.0',
549
-				'date'       => new DateTime( '01-11-2013' ),
549
+				'date'       => new DateTime('01-11-2013'),
550 550
 				'deprecated' => true,
551 551
 			),
552 552
 			array(
553 553
 				'url'        => 'http://pronamic.nl/wp-content/uploads/2014/01/integratiehandleiding_nl_12_2013_29420242.pdf',
554 554
 				'name'       => 'Integratiehandleiding Rabo OmniKassa, versie 6.0, november 2013',
555 555
 				'version'    => '6.0',
556
-				'date'       => new DateTime( '01-11-2013' ),
556
+				'date'       => new DateTime('01-11-2013'),
557 557
 				'deprecated' => true,
558 558
 			),
559 559
 			array(
560 560
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2014/07/integratiehandleiding_rabo_omnikassa_en_version_7_1_april_2014_final_2_0_29637101.pdf',
561 561
 				'name'    => 'Integration Guide Rabo OmniKassa, Version 7.1, April 2014',
562 562
 				'version' => '7.1',
563
-				'date'    => new DateTime( '01-04-2014' ),
563
+				'date'    => new DateTime('01-04-2014'),
564 564
 			),
565 565
 			array(
566 566
 				'url'     => 'http://pronamic.nl/wp-content/uploads/2014/07/integratiehandleiding_nl_12_2013_29420242.pdf',
567 567
 				'name'    => 'Integratiehandleiding Rabo OmniKassa, versie 7.1, april 2014',
568 568
 				'version' => '7.1',
569
-				'date'    => new DateTime( '01-04-2014' ),
569
+				'date'    => new DateTime('01-04-2014'),
570 570
 			),
571 571
 		),
572 572
 	),
@@ -612,63 +612,63 @@  discard block
 block discarded – undo
612 612
 
613 613
 <table class="pronamic-pay-table wp-list-table widefat" cellspacing="0">
614 614
 
615
-	<?php foreach ( array( 'thead', 'tfoot' ) as $tag ) : ?>
615
+	<?php foreach (array('thead', 'tfoot') as $tag) : ?>
616 616
 
617
-		<<?php echo esc_html( $tag ); ?>>
617
+		<<?php echo esc_html($tag); ?>>
618 618
 			<tr>
619
-				<th scope="col" class="manage-column"><?php esc_html_e( 'Title', 'pronamic_ideal' ); ?></th>
620
-				<th scope="col" class="manage-column"><?php esc_html_e( 'Date', 'pronamic_ideal' ); ?></th>
621
-				<th scope="col" class="manage-column"><?php esc_html_e( 'Version', 'pronamic_ideal' ); ?></th>
619
+				<th scope="col" class="manage-column"><?php esc_html_e('Title', 'pronamic_ideal'); ?></th>
620
+				<th scope="col" class="manage-column"><?php esc_html_e('Date', 'pronamic_ideal'); ?></th>
621
+				<th scope="col" class="manage-column"><?php esc_html_e('Version', 'pronamic_ideal'); ?></th>
622 622
 			</tr>
623
-		</<?php echo esc_html( $tag ); ?>>
623
+		</<?php echo esc_html($tag); ?>>
624 624
 
625 625
 	<?php endforeach; ?>
626 626
 
627 627
 	<tobdy>
628 628
 
629
-		<?php foreach ( $providers as $provider ) : ?>
629
+		<?php foreach ($providers as $provider) : ?>
630 630
 
631
-			<?php if ( isset( $provider['resources'] ) && ! empty( $provider['resources'] ) ) : ?>
631
+			<?php if (isset($provider['resources']) && ! empty($provider['resources'])) : ?>
632 632
 
633 633
 				<tr class="alternate">
634 634
 					<td colspan="4">
635
-						<strong><?php echo esc_html( $provider['name'] ); ?></strong>
636
-						<small><a href="<?php echo esc_attr( $provider['url'] ); ?>"><?php echo esc_html( $provider['url'] ); ?></a></small>
635
+						<strong><?php echo esc_html($provider['name']); ?></strong>
636
+						<small><a href="<?php echo esc_attr($provider['url']); ?>"><?php echo esc_html($provider['url']); ?></a></small>
637 637
 					</td>
638 638
 				</tr>
639 639
 
640
-				<?php foreach ( $provider['resources'] as $resource ) : ?>
640
+				<?php foreach ($provider['resources'] as $resource) : ?>
641 641
 
642 642
 					<?php
643 643
 
644 644
 					$href = null;
645 645
 
646
-					if ( isset( $resource['path'] ) ) {
647
-						$href = plugins_url( $resource['path'], Plugin::$file );
646
+					if (isset($resource['path'])) {
647
+						$href = plugins_url($resource['path'], Plugin::$file);
648 648
 					}
649 649
 
650
-					if ( isset( $resource['url'] ) ) {
650
+					if (isset($resource['url'])) {
651 651
 						$href = $resource['url'];
652 652
 					}
653 653
 
654 654
 					$classes = array();
655 655
 
656
-					if ( isset( $resource['deprecated'] ) ) {
656
+					if (isset($resource['deprecated'])) {
657 657
 						$classes[] = 'deprecated';
658 658
 					}
659 659
 
660 660
 					?>
661
-					<tr class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>">
661
+					<tr class="<?php echo esc_attr(implode(' ', $classes)); ?>">
662 662
 						<td>
663
-							<a href="<?php echo esc_attr( $href ); ?>">
664
-								<?php echo esc_html( $resource['name'] ); ?>
663
+							<a href="<?php echo esc_attr($href); ?>">
664
+								<?php echo esc_html($resource['name']); ?>
665 665
 							</a>
666 666
 						</td>
667 667
 						<td>
668 668
 							<?php
669 669
 
670
-							if ( isset( $resource['date'] ) ) {
671
-								echo esc_html( $resource['date']->format( 'd-m-Y' ) );
670
+							if (isset($resource['date'])) {
671
+								echo esc_html($resource['date']->format('d-m-Y'));
672 672
 							}
673 673
 
674 674
 							?>
@@ -676,8 +676,8 @@  discard block
 block discarded – undo
676 676
 						<td>
677 677
 							<?php
678 678
 
679
-							if ( isset( $resource['version'] ) ) {
680
-								echo esc_html( $resource['version'] );
679
+							if (isset($resource['version'])) {
680
+								echo esc_html($resource['version']);
681 681
 							}
682 682
 
683 683
 							?>
Please login to merge, or discard this patch.
admin/meta-box-payment-update.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -19,12 +19,12 @@  discard block
 block discarded – undo
19 19
 		<select id="pronamic-payment-status" name="post_status" class="medium-text">
20 20
 			<?php
21 21
 
22
-			foreach ( $states as $status => $label ) {
22
+			foreach ($states as $status => $label) {
23 23
 				printf(
24 24
 					'<option value="%s" %s>%s</option>',
25
-					esc_attr( $status ),
26
-					selected( $status, $post->post_status, false ),
27
-					esc_html( $label )
25
+					esc_attr($status),
26
+					selected($status, $post->post_status, false),
27
+					esc_html($label)
28 28
 				);
29 29
 			}
30 30
 
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
 	/**
38 38
 	 * Check status button.
39 39
 	 */
40
-	$config_id = get_post_meta( $post->ID, '_pronamic_payment_config_id', true );
40
+	$config_id = get_post_meta($post->ID, '_pronamic_payment_config_id', true);
41 41
 
42
-	$gateway = Plugin::get_gateway( $config_id );
42
+	$gateway = Plugin::get_gateway($config_id);
43 43
 
44
-	if ( $gateway && $gateway->supports( 'payment_status_request' ) ) {
44
+	if ($gateway && $gateway->supports('payment_status_request')) {
45 45
 		// Only show button if gateway exists and status check is supported.
46 46
 		$check_status_nonce_url = wp_nonce_url(
47 47
 			add_query_arg(
@@ -49,15 +49,15 @@  discard block
 block discarded – undo
49 49
 					'post'                      => $post->ID,
50 50
 					'action'                    => 'edit',
51 51
 					'pronamic_pay_check_status' => true,
52
-				), admin_url( 'post.php' )
52
+				), admin_url('post.php')
53 53
 			),
54 54
 			'pronamic_payment_check_status_' . $post->ID
55 55
 		);
56 56
 
57 57
 		printf(
58 58
 			'<a class="button" href="%s">%s</a>',
59
-			esc_url( $check_status_nonce_url ),
60
-			esc_html__( 'Check status', 'pronamic_ideal' )
59
+			esc_url($check_status_nonce_url),
60
+			esc_html__('Check status', 'pronamic_ideal')
61 61
 		);
62 62
 
63 63
 	}
@@ -69,10 +69,10 @@  discard block
 block discarded – undo
69 69
 	<div class="pronamic-pay-action">
70 70
 		<?php
71 71
 
72
-		wp_nonce_field( 'pronamic_payment_update', 'pronamic_payment_nonce' );
72
+		wp_nonce_field('pronamic_payment_update', 'pronamic_payment_nonce');
73 73
 
74 74
 		submit_button(
75
-			__( 'Update', 'pronamic_ideal' ),
75
+			__('Update', 'pronamic_ideal'),
76 76
 			'primary',
77 77
 			'pronamic_payment_update',
78 78
 			false
Please login to merge, or discard this patch.
admin/meta-box-payment-subscription.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,32 +12,32 @@  discard block
 block discarded – undo
12 12
 
13 13
 $post_id = get_the_ID();
14 14
 
15
-$payment = get_pronamic_payment( $post_id );
15
+$payment = get_pronamic_payment($post_id);
16 16
 
17 17
 $subscription = $payment->get_subscription();
18 18
 
19
-if ( $subscription ) : ?>
19
+if ($subscription) : ?>
20 20
 
21 21
 	<table class="form-table">
22 22
 		<tr>
23 23
 			<th scope="row">
24
-				<?php esc_html_e( 'Subscription', 'pronamic_ideal' ); ?>
24
+				<?php esc_html_e('Subscription', 'pronamic_ideal'); ?>
25 25
 			</th>
26 26
 			<td>
27
-				<?php edit_post_link( get_the_title( $subscription->post->ID ), '', '', $subscription->post->ID ); ?>
27
+				<?php edit_post_link(get_the_title($subscription->post->ID), '', '', $subscription->post->ID); ?>
28 28
 			</td>
29 29
 		</tr>
30 30
 		<tr>
31 31
 			<th scope="row">
32
-				<?php esc_html_e( 'Description', 'pronamic_ideal' ); ?>
32
+				<?php esc_html_e('Description', 'pronamic_ideal'); ?>
33 33
 			</th>
34 34
 			<td>
35
-				<?php echo esc_html( $subscription->get_description() ); ?>
35
+				<?php echo esc_html($subscription->get_description()); ?>
36 36
 			</td>
37 37
 		</tr>
38 38
 		<tr>
39 39
 			<th scope="row">
40
-				<?php esc_html_e( 'Amount', 'pronamic_ideal' ); ?>
40
+				<?php esc_html_e('Amount', 'pronamic_ideal'); ?>
41 41
 			</th>
42 42
 			<td>
43 43
 				<?php
@@ -45,43 +45,43 @@  discard block
 block discarded – undo
45 45
 				$currency = $subscription->get_currency();
46 46
 				$amount   = $subscription->get_amount();
47 47
 
48
-				echo esc_html( Util::format_price( $amount, $currency ) );
48
+				echo esc_html(Util::format_price($amount, $currency));
49 49
 
50 50
 				?>
51 51
 			</td>
52 52
 		</tr>
53 53
 		<tr>
54 54
 			<th scope="row">
55
-				<?php echo esc_html_x( 'Interval', 'Recurring payment', 'pronamic_ideal' ); ?>
55
+				<?php echo esc_html_x('Interval', 'Recurring payment', 'pronamic_ideal'); ?>
56 56
 			</th>
57 57
 			<td>
58
-				<?php echo esc_html( Util::format_interval( $subscription->get_interval(), $subscription->get_interval_period() ) ); ?>
58
+				<?php echo esc_html(Util::format_interval($subscription->get_interval(), $subscription->get_interval_period())); ?>
59 59
 			</td>
60 60
 		</tr>
61 61
 		<tr>
62 62
 			<th scope="row">
63
-				<?php echo esc_html_x( 'Frequency', 'Recurring payment', 'pronamic_ideal' ); ?>
63
+				<?php echo esc_html_x('Frequency', 'Recurring payment', 'pronamic_ideal'); ?>
64 64
 			</th>
65 65
 			<td>
66
-				<?php echo esc_html( Util::format_frequency( $subscription->get_frequency() ) ); ?>
66
+				<?php echo esc_html(Util::format_frequency($subscription->get_frequency())); ?>
67 67
 			</td>
68 68
 		</tr>
69 69
 		<tr>
70 70
 			<th scope="row">
71
-				<?php esc_html_e( 'Source', 'pronamic_ideal' ); ?>
71
+				<?php esc_html_e('Source', 'pronamic_ideal'); ?>
72 72
 			</th>
73 73
 			<td>
74 74
 				<?php
75 75
 
76 76
 				$payment = $subscription->get_first_payment();
77 77
 
78
-				if ( $payment ) {
78
+				if ($payment) {
79 79
 					echo $payment->get_source_text(); // WPCS: XSS ok.
80 80
 				} else {
81 81
 					printf(
82 82
 						'%s<br />%s', // WPCS: XSS ok.
83
-						esc_html( $subscription->get_source() ),
84
-						esc_html( $subscription->get_source_id() )
83
+						esc_html($subscription->get_source()),
84
+						esc_html($subscription->get_source_id())
85 85
 					);
86 86
 				}
87 87
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 <?php else : ?>
94 94
 
95 95
 	<p>
96
-		<?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' ); ?>
96
+		<?php esc_html_e('This payment is not related to a subscription.', 'pronamic_ideal'); ?>
97 97
 	</p>
98 98
 
99 99
 <?php endif; ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,10 +90,13 @@
 block discarded – undo
90 90
 		</tr>
91 91
 	</table>
92 92
 
93
-<?php else : ?>
93
+<?php else {
94
+	: ?>
94 95
 
95 96
 	<p>
96
-		<?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' ); ?>
97
+		<?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' );
98
+}
99
+?>
97 100
 	</p>
98 101
 
99 102
 <?php endif; ?>
Please login to merge, or discard this patch.
admin/pronamic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  */
10 10
 
11 11
 ?>
12
-<h2><?php esc_html_e( 'Follow Pronamic', 'pronamic_ideal' ); ?></h2>
12
+<h2><?php esc_html_e('Follow Pronamic', 'pronamic_ideal'); ?></h2>
13 13
 
14 14
 <div style="margin: 1em 0;">
15 15
 	<iframe src="https://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FPronamic&amp;send=false&amp;layout=standard&amp;width=600&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=24&amp;appId=208724019165734" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:600px; height:24px;" allowTransparency="true"></iframe>
Please login to merge, or discard this patch.
admin/pointer-reports.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,19 +9,19 @@
 block discarded – undo
9 9
  */
10 10
 
11 11
 ?>
12
-<h3><?php esc_html_e( 'Reports', 'pronamic_ideal' ); ?></h3>
12
+<h3><?php esc_html_e('Reports', 'pronamic_ideal'); ?></h3>
13 13
 
14 14
 <p>
15
-	<?php esc_html_e( 'The Pronamic Pay reports page shows you an graph of all the payments of this year.', 'pronamic_ideal' ); ?>
16
-	<?php esc_html_e( 'You can see the number of succesfull payments and the total amount of pending, succesfull, cancelled and failed payments.', 'pronamic_ideal' ); ?>
15
+	<?php esc_html_e('The Pronamic Pay reports page shows you an graph of all the payments of this year.', 'pronamic_ideal'); ?>
16
+	<?php esc_html_e('You can see the number of succesfull payments and the total amount of pending, succesfull, cancelled and failed payments.', 'pronamic_ideal'); ?>
17 17
 </p>
18 18
 
19 19
 <div class="wp-pointer-buttons pp-pointer-buttons">
20
-	<a href="<?php echo esc_attr( add_query_arg( 'page', 'pronamic_pay_tools', admin_url( 'admin.php' ) ) ); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e( 'Previous', 'pronamic_ideal' ); ?></a>
20
+	<a href="<?php echo esc_attr(add_query_arg('page', 'pronamic_pay_tools', admin_url('admin.php'))); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e('Previous', 'pronamic_ideal'); ?></a>
21 21
 
22 22
 	<span class="pp-pointer-buttons-right">
23
-		<a href="<?php echo esc_attr( add_query_arg( 'page', 'pronamic_pay_tools', admin_url( 'admin.php' ) ) ); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e( 'Next', 'pronamic_ideal' ); ?></a>
23
+		<a href="<?php echo esc_attr(add_query_arg('page', 'pronamic_pay_tools', admin_url('admin.php'))); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e('Next', 'pronamic_ideal'); ?></a>
24 24
 
25
-		<a href="<?php echo esc_attr( $this->get_close_url() ); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e( 'Close', 'pronamic_ideal' ); ?></a>
25
+		<a href="<?php echo esc_attr($this->get_close_url()); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e('Close', 'pronamic_ideal'); ?></a>
26 26
 	</span>
27 27
 </div>
Please login to merge, or discard this patch.
admin/methods-wp-admin.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,37 +14,37 @@
 block discarded – undo
14 14
 
15 15
 	<thead>
16 16
 		<tr>
17
-			<th scope="col"><?php esc_html_e( 'Icon', 'pronamic_ideal' ); ?></th>
18
-			<th scope="col"><?php esc_html_e( 'Name', 'pronamic_ideal' ); ?></th>
19
-			<th scope="col"><?php esc_html_e( 'Website', 'pronamic_ideal' ); ?></th>
17
+			<th scope="col"><?php esc_html_e('Icon', 'pronamic_ideal'); ?></th>
18
+			<th scope="col"><?php esc_html_e('Name', 'pronamic_ideal'); ?></th>
19
+			<th scope="col"><?php esc_html_e('Website', 'pronamic_ideal'); ?></th>
20 20
 		</tr>
21 21
 	</thead>
22 22
 
23 23
 	<tbody>
24 24
 
25
-		<?php foreach ( $methods as $method ) : ?>
25
+		<?php foreach ($methods as $method) : ?>
26 26
 
27 27
 			<tr>
28 28
 				<td>
29 29
 					<?php
30 30
 
31
-					if ( isset( $method['icon'] ) ) {
32
-						printf( '<img src="%s" alt="" />', esc_attr( $method['icon'] ) );
31
+					if (isset($method['icon'])) {
32
+						printf('<img src="%s" alt="" />', esc_attr($method['icon']));
33 33
 					}
34 34
 
35 35
 					?>
36 36
 				</td>
37 37
 				<td>
38
-					<?php echo esc_html( $method['name'] ); ?>
38
+					<?php echo esc_html($method['name']); ?>
39 39
 				</td>
40 40
 				<td>
41 41
 					<?php
42 42
 
43
-					if ( isset( $method['url'] ) ) {
43
+					if (isset($method['url'])) {
44 44
 						printf(
45 45
 							'<a href="%s" target="_blank">%s</a>',
46
-							esc_attr( $method['url'] ),
47
-							esc_html( $method['url'] )
46
+							esc_attr($method['url']),
47
+							esc_html($method['url'])
48 48
 						);
49 49
 					}
50 50
 
Please login to merge, or discard this patch.
admin/pointer-gateways.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,20 +9,20 @@
 block discarded – undo
9 9
  */
10 10
 
11 11
 ?>
12
-<h3><?php esc_html_e( 'Configurations', 'pronamic_ideal' ); ?></h3>
12
+<h3><?php esc_html_e('Configurations', 'pronamic_ideal'); ?></h3>
13 13
 
14 14
 <p>
15
-	<?php esc_html_e( 'Here you can find an overview of all the gateway configurations on your WordPress site.', 'pronamic_ideal' ); ?>
16
-	<?php esc_html_e( 'To use the Pronamic Pay plugin you have to add an payment gateway configuration.', 'pronamic_ideal' ); ?>
17
-	<?php esc_html_e( 'Normally you get the required configuration information from your payment provider.', 'pronamic_ideal' ); ?>
15
+	<?php esc_html_e('Here you can find an overview of all the gateway configurations on your WordPress site.', 'pronamic_ideal'); ?>
16
+	<?php esc_html_e('To use the Pronamic Pay plugin you have to add an payment gateway configuration.', 'pronamic_ideal'); ?>
17
+	<?php esc_html_e('Normally you get the required configuration information from your payment provider.', 'pronamic_ideal'); ?>
18 18
 </p>
19 19
 
20 20
 <div class="wp-pointer-buttons pp-pointer-buttons">
21
-	<a href="<?php echo esc_attr( add_query_arg( 'post_type', 'pronamic_payment', admin_url( 'edit.php' ) ) ); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e( 'Previous', 'pronamic_ideal' ); ?></a>
21
+	<a href="<?php echo esc_attr(add_query_arg('post_type', 'pronamic_payment', admin_url('edit.php'))); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e('Previous', 'pronamic_ideal'); ?></a>
22 22
 
23 23
 	<span class="pp-pointer-buttons-right">
24
-		<a href="<?php echo esc_attr( add_query_arg( 'post_type', 'pronamic_pay_form', admin_url( 'edit.php' ) ) ); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e( 'Next', 'pronamic_ideal' ); ?></a>
24
+		<a href="<?php echo esc_attr(add_query_arg('post_type', 'pronamic_pay_form', admin_url('edit.php'))); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e('Next', 'pronamic_ideal'); ?></a>
25 25
 
26
-		<a href="<?php echo esc_attr( $this->get_close_url() ); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e( 'Close', 'pronamic_ideal' ); ?></a>
26
+		<a href="<?php echo esc_attr($this->get_close_url()); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e('Close', 'pronamic_ideal'); ?></a>
27 27
 	</span>
28 28
 </div>
Please login to merge, or discard this patch.
admin/meta-box-subscription-info.php 1 patch
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -14,45 +14,45 @@  discard block
 block discarded – undo
14 14
 
15 15
 $post_id = get_the_ID();
16 16
 
17
-$subscription = get_pronamic_subscription( $post_id );
17
+$subscription = get_pronamic_subscription($post_id);
18 18
 
19 19
 ?>
20 20
 <table class="form-table">
21 21
 	<tr>
22 22
 		<th scope="row">
23
-			<?php esc_html_e( 'Date', 'pronamic_ideal' ); ?>
23
+			<?php esc_html_e('Date', 'pronamic_ideal'); ?>
24 24
 		</th>
25 25
 		<td>
26
-			<?php the_time( __( 'l jS \o\f F Y, h:ia', 'pronamic_ideal' ) ); ?>
26
+			<?php the_time(__('l jS \o\f F Y, h:ia', 'pronamic_ideal')); ?>
27 27
 		</td>
28 28
 	</tr>
29 29
 	<tr>
30 30
 		<th scope="row">
31
-			<?php esc_html_e( 'ID', 'pronamic_ideal' ); ?>
31
+			<?php esc_html_e('ID', 'pronamic_ideal'); ?>
32 32
 		</th>
33 33
 		<td>
34
-			<?php echo esc_html( $post_id ); ?>
34
+			<?php echo esc_html($post_id); ?>
35 35
 		</td>
36 36
 	</tr>
37 37
 	<tr>
38 38
 		<th scope="row">
39
-			<?php esc_html_e( 'Description', 'pronamic_ideal' ); ?>
39
+			<?php esc_html_e('Description', 'pronamic_ideal'); ?>
40 40
 		</th>
41 41
 		<td>
42
-			<?php echo esc_html( $subscription->get_description() ); ?>
42
+			<?php echo esc_html($subscription->get_description()); ?>
43 43
 		</td>
44 44
 	</tr>
45 45
 	<tr>
46 46
 		<th scope="row">
47
-			<?php esc_html_e( 'Payment Method', 'pronamic_ideal' ); ?>
47
+			<?php esc_html_e('Payment Method', 'pronamic_ideal'); ?>
48 48
 		</th>
49 49
 		<td>
50
-			<?php echo esc_html( PaymentMethods::get_name( $subscription->payment_method ) ); ?>
50
+			<?php echo esc_html(PaymentMethods::get_name($subscription->payment_method)); ?>
51 51
 		</td>
52 52
 	</tr>
53 53
 	<tr>
54 54
 		<th scope="row">
55
-			<?php esc_html_e( 'Amount', 'pronamic_ideal' ); ?>
55
+			<?php esc_html_e('Amount', 'pronamic_ideal'); ?>
56 56
 		</th>
57 57
 		<td>
58 58
 			<?php
@@ -60,56 +60,56 @@  discard block
 block discarded – undo
60 60
 			$currency = $subscription->get_currency();
61 61
 			$amount   = $subscription->get_amount();
62 62
 
63
-			echo esc_html( Util::format_price( $amount, $currency ) );
63
+			echo esc_html(Util::format_price($amount, $currency));
64 64
 
65 65
 			?>
66 66
 		</td>
67 67
 	</tr>
68 68
 	<tr>
69 69
 		<th scope="row">
70
-			<?php echo esc_html_x( 'Interval', 'Recurring payment', 'pronamic_ideal' ); ?>
70
+			<?php echo esc_html_x('Interval', 'Recurring payment', 'pronamic_ideal'); ?>
71 71
 		</th>
72 72
 		<td>
73
-			<?php echo esc_html( Util::format_interval( $subscription->get_interval(), $subscription->get_interval_period() ) ); ?>
73
+			<?php echo esc_html(Util::format_interval($subscription->get_interval(), $subscription->get_interval_period())); ?>
74 74
 		</td>
75 75
 	</tr>
76 76
 	<tr>
77 77
 		<th scope="row">
78
-			<?php echo esc_html_x( 'Frequency', 'Recurring payment', 'pronamic_ideal' ); ?>
78
+			<?php echo esc_html_x('Frequency', 'Recurring payment', 'pronamic_ideal'); ?>
79 79
 		</th>
80 80
 		<td>
81
-			<?php echo esc_html( Util::format_frequency( $subscription->get_frequency() ) ); ?>
81
+			<?php echo esc_html(Util::format_frequency($subscription->get_frequency())); ?>
82 82
 		</td>
83 83
 	</tr>
84 84
 	<tr>
85 85
 		<th scope="row">
86
-			<?php esc_html_e( 'First payment', 'pronamic_ideal' ); ?>
86
+			<?php esc_html_e('First payment', 'pronamic_ideal'); ?>
87 87
 		</th>
88 88
 		<td>
89 89
 			<?php
90 90
 
91
-			$first_date = get_date_from_gmt( $subscription->get_first_payment_date()->format( 'Y-m-d H:i:s' ) );
91
+			$first_date = get_date_from_gmt($subscription->get_first_payment_date()->format('Y-m-d H:i:s'));
92 92
 
93
-			echo esc_html( date_i18n( __( 'l jS \o\f F Y, h:ia', 'pronamic_ideal' ), strtotime( $first_date ) ) );
93
+			echo esc_html(date_i18n(__('l jS \o\f F Y, h:ia', 'pronamic_ideal'), strtotime($first_date)));
94 94
 
95 95
 			?>
96 96
 		</td>
97 97
 	</tr>
98 98
 	<tr>
99 99
 		<th scope="row">
100
-			<?php esc_html_e( 'Next payment', 'pronamic_ideal' ); ?>
100
+			<?php esc_html_e('Next payment', 'pronamic_ideal'); ?>
101 101
 		</th>
102 102
 		<td>
103 103
 			<?php
104 104
 
105 105
 			$next_payment = $subscription->get_next_payment_date();
106 106
 
107
-			if ( $next_payment ) {
108
-				$next_date = get_date_from_gmt( $next_payment->format( 'Y-m-d H:i:s' ) );
107
+			if ($next_payment) {
108
+				$next_date = get_date_from_gmt($next_payment->format('Y-m-d H:i:s'));
109 109
 
110
-				echo esc_html( date_i18n( __( 'l jS \o\f F Y, h:ia', 'pronamic_ideal' ), strtotime( $next_date ) ) );
110
+				echo esc_html(date_i18n(__('l jS \o\f F Y, h:ia', 'pronamic_ideal'), strtotime($next_date)));
111 111
 			} else {
112
-				echo esc_html( __( 'None', 'pronamic_ideal' ) );
112
+				echo esc_html(__('None', 'pronamic_ideal'));
113 113
 			}
114 114
 
115 115
 			?>
@@ -117,17 +117,17 @@  discard block
 block discarded – undo
117 117
 	</tr>
118 118
 	<tr>
119 119
 		<th scope="row">
120
-			<?php esc_html_e( 'Final payment', 'pronamic_ideal' ); ?>
120
+			<?php esc_html_e('Final payment', 'pronamic_ideal'); ?>
121 121
 		</th>
122 122
 		<td>
123 123
 			<?php
124 124
 
125 125
 			$final_payment = $subscription->get_final_payment_date();
126 126
 
127
-			if ( $final_payment ) {
128
-				$final_date = get_date_from_gmt( $final_payment->format( 'Y-m-d H:i:s' ) );
127
+			if ($final_payment) {
128
+				$final_date = get_date_from_gmt($final_payment->format('Y-m-d H:i:s'));
129 129
 
130
-				echo esc_html( date_i18n( __( 'l jS \o\f F Y, h:ia', 'pronamic_ideal' ), strtotime( $final_date ) ) );
130
+				echo esc_html(date_i18n(__('l jS \o\f F Y, h:ia', 'pronamic_ideal'), strtotime($final_date)));
131 131
 			}
132 132
 
133 133
 			?>
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	</tr>
136 136
 	<tr>
137 137
 		<th scope="row">
138
-			<?php esc_html_e( 'Current period', 'pronamic_ideal' ); ?>
138
+			<?php esc_html_e('Current period', 'pronamic_ideal'); ?>
139 139
 		</th>
140 140
 		<td>
141 141
 			<?php
@@ -143,21 +143,21 @@  discard block
 block discarded – undo
143 143
 			$start_date  = $subscription->get_start_date();
144 144
 			$expiry_date = $subscription->get_expiry_date();
145 145
 
146
-			if ( $start_date && $expiry_date ) {
147
-				$start_date  = get_date_from_gmt( $start_date->format( 'Y-m-d H:i:s' ) );
148
-				$expiry_date = get_date_from_gmt( $expiry_date->format( 'Y-m-d H:i:s' ) );
146
+			if ($start_date && $expiry_date) {
147
+				$start_date  = get_date_from_gmt($start_date->format('Y-m-d H:i:s'));
148
+				$expiry_date = get_date_from_gmt($expiry_date->format('Y-m-d H:i:s'));
149 149
 
150 150
 				echo esc_html(
151 151
 					sprintf(
152 152
 						'%s – %s',
153
-						date_i18n( __( 'l jS \o\f F Y, h:ia', 'pronamic_ideal' ), strtotime( $start_date ) ),
154
-						date_i18n( __( 'l jS \o\f F Y, h:ia', 'pronamic_ideal' ), strtotime( $expiry_date ) )
153
+						date_i18n(__('l jS \o\f F Y, h:ia', 'pronamic_ideal'), strtotime($start_date)),
154
+						date_i18n(__('l jS \o\f F Y, h:ia', 'pronamic_ideal'), strtotime($expiry_date))
155 155
 					)
156 156
 				);
157 157
 			}
158 158
 
159
-			if ( Statuses::COMPLETED === $subscription->get_status() ) {
160
-				echo esc_html( sprintf( __( 'None (subscription completed)', 'pronamic_ideal' ) ) );
159
+			if (Statuses::COMPLETED === $subscription->get_status()) {
160
+				echo esc_html(sprintf(__('None (subscription completed)', 'pronamic_ideal')));
161 161
 			}
162 162
 
163 163
 			?>
@@ -165,36 +165,36 @@  discard block
 block discarded – undo
165 165
 	</tr>
166 166
 	<tr>
167 167
 		<th scope="row">
168
-			<?php esc_html_e( 'Consumer', 'pronamic_ideal' ); ?>
168
+			<?php esc_html_e('Consumer', 'pronamic_ideal'); ?>
169 169
 		</th>
170 170
 		<td>
171 171
 			<?php
172 172
 
173
-			echo esc_html( get_post_meta( $post_id, '_pronamic_subscription_consumer_name', true ) );
173
+			echo esc_html(get_post_meta($post_id, '_pronamic_subscription_consumer_name', true));
174 174
 			echo '<br />';
175
-			echo esc_html( get_post_meta( $post_id, '_pronamic_subscription_consumer_iban', true ) );
175
+			echo esc_html(get_post_meta($post_id, '_pronamic_subscription_consumer_iban', true));
176 176
 			echo '<br />';
177
-			echo esc_html( get_post_meta( $post_id, '_pronamic_subscription_consumer_bic', true ) );
177
+			echo esc_html(get_post_meta($post_id, '_pronamic_subscription_consumer_bic', true));
178 178
 
179 179
 			?>
180 180
 		</td>
181 181
 	</tr>
182 182
 	<tr>
183 183
 		<th scope="row">
184
-			<?php esc_html_e( 'Source', 'pronamic_ideal' ); ?>
184
+			<?php esc_html_e('Source', 'pronamic_ideal'); ?>
185 185
 		</th>
186 186
 		<td>
187 187
 			<?php
188 188
 
189 189
 			$first_payment = $subscription->get_first_payment();
190 190
 
191
-			if ( $first_payment ) {
191
+			if ($first_payment) {
192 192
 				echo $first_payment->get_source_text(); // WPCS: XSS ok.
193 193
 			} else {
194 194
 				printf(
195 195
 					'%s<br />%s', // WPCS: XSS ok.
196
-					esc_html( $subscription->get_source() ),
197
-					esc_html( $subscription->get_source_id() )
196
+					esc_html($subscription->get_source()),
197
+					esc_html($subscription->get_source_id())
198 198
 				);
199 199
 			}
200 200
 
@@ -202,22 +202,22 @@  discard block
 block discarded – undo
202 202
 		</td>
203 203
 	</tr>
204 204
 
205
-	<?php if ( 's2member' === $subscription->get_source() ) : ?>
205
+	<?php if ('s2member' === $subscription->get_source()) : ?>
206 206
 
207 207
 		<tr>
208 208
 			<th scope="row">
209
-				<?php esc_html_e( 'Period', 'pronamic_ideal' ); ?>
209
+				<?php esc_html_e('Period', 'pronamic_ideal'); ?>
210 210
 			</th>
211 211
 			<td>
212
-				<?php echo esc_html( get_post_meta( $subscription->get_id(), '_pronamic_subscription_s2member_period', true ) ); ?>
212
+				<?php echo esc_html(get_post_meta($subscription->get_id(), '_pronamic_subscription_s2member_period', true)); ?>
213 213
 			</td>
214 214
 		</tr>
215 215
 		<tr>
216 216
 			<th scope="row">
217
-				<?php esc_html_e( 'Level', 'pronamic_ideal' ); ?>
217
+				<?php esc_html_e('Level', 'pronamic_ideal'); ?>
218 218
 			</th>
219 219
 			<td>
220
-				<?php echo esc_html( get_post_meta( $subscription->get_id(), '_pronamic_subscription_s2member_level', true ) ); ?>
220
+				<?php echo esc_html(get_post_meta($subscription->get_id(), '_pronamic_subscription_s2member_level', true)); ?>
221 221
 			</td>
222 222
 		</tr>
223 223
 
Please login to merge, or discard this patch.