@@ -412,8 +412,9 @@ discard block |
||
412 | 412 | mcrypt_generic_init($td, $this->key, $this->iv); |
413 | 413 | if ($this->cryptParams['mode'] == MCRYPT_MODE_CBC) { |
414 | 414 | $bs = mcrypt_enc_get_block_size($td); |
415 | - for ($datalen0 = $datalen = strlen($data); (($datalen % $bs) != ($bs - 1)); $datalen++) |
|
416 | - $data.=chr(rand(1, 127)); |
|
415 | + for ($datalen0 = $datalen = strlen($data); (($datalen % $bs) != ($bs - 1)); $datalen++) { |
|
416 | + $data.=chr(rand(1, 127)); |
|
417 | + } |
|
417 | 418 | $data.=chr($datalen - $datalen0 + 1); |
418 | 419 | } |
419 | 420 | $encrypted_data = $this->iv . mcrypt_generic($td, $data); |
@@ -536,8 +537,9 @@ discard block |
||
536 | 537 | static function makeAsnSegment($type, $string) { |
537 | 538 | switch ($type) { |
538 | 539 | case 0x02: |
539 | - if (ord($string) > 0x7f) |
|
540 | - $string = chr(0) . $string; |
|
540 | + if (ord($string) > 0x7f) { |
|
541 | + $string = chr(0) . $string; |
|
542 | + } |
|
541 | 543 | break; |
542 | 544 | case 0x03: |
543 | 545 | $string = chr(0) . $string; |
@@ -412,8 +412,9 @@ discard block |
||
412 | 412 | mcrypt_generic_init($td, $this->key, $this->iv); |
413 | 413 | if ($this->cryptParams['mode'] == MCRYPT_MODE_CBC) { |
414 | 414 | $bs = mcrypt_enc_get_block_size($td); |
415 | - for ($datalen0 = $datalen = strlen($data); (($datalen % $bs) != ($bs - 1)); $datalen++) |
|
416 | - $data.=chr(rand(1, 127)); |
|
415 | + for ($datalen0 = $datalen = strlen($data); (($datalen % $bs) != ($bs - 1)); $datalen++) { |
|
416 | + $data.=chr(rand(1, 127)); |
|
417 | + } |
|
417 | 418 | $data.=chr($datalen - $datalen0 + 1); |
418 | 419 | } |
419 | 420 | $encrypted_data = $this->iv . mcrypt_generic($td, $data); |
@@ -564,8 +565,9 @@ discard block |
||
564 | 565 | static function makeAsnSegment($type, $string) { |
565 | 566 | switch ($type) { |
566 | 567 | case 0x02: |
567 | - if (ord($string) > 0x7f) |
|
568 | - $string = chr(0) . $string; |
|
568 | + if (ord($string) > 0x7f) { |
|
569 | + $string = chr(0) . $string; |
|
570 | + } |
|
569 | 571 | break; |
570 | 572 | case 0x03: |
571 | 573 | $string = chr(0) . $string; |
@@ -47,16 +47,20 @@ |
||
47 | 47 | // Provider. |
48 | 48 | if ( count( $name ) > 1 ) : |
49 | 49 | $provider = array_shift( $name ); |
50 | - else : |
|
50 | + else { |
|
51 | + : |
|
51 | 52 | $provider_name = explode( '(', $name[0] ); |
53 | + } |
|
52 | 54 | |
53 | 55 | $provider = array_shift( $provider_name ); |
54 | 56 | endif; |
55 | 57 | |
56 | 58 | if ( $current_provider === $integration->provider ) : |
57 | 59 | $provider = ''; |
58 | - else : |
|
60 | + else { |
|
61 | + : |
|
59 | 62 | $current_provider = $integration->provider; |
63 | + } |
|
60 | 64 | |
61 | 65 | $alternate = ! $alternate; |
62 | 66 | endif; |
@@ -22,13 +22,16 @@ |
||
22 | 22 | |
23 | 23 | <?php esc_html_e( 'No payments found.', 'pronamic_ideal' ); ?> |
24 | 24 | |
25 | -<?php else : ?> |
|
25 | +<?php else { |
|
26 | + : ?> |
|
26 | 27 | |
27 | 28 | <table class="pronamic-pay-table widefat"> |
28 | 29 | <thead> |
29 | 30 | <tr> |
30 | 31 | <th scope="col"> |
31 | - <span class="pronamic-pay-tip pronamic-pay-icon pronamic-pay-status" data-tip="<?php esc_attr_e( 'Status', 'pronamic_ideal' ); ?>"><?php esc_html_e( 'Status', 'pronamic_ideal' ); ?></span> |
|
32 | + <span class="pronamic-pay-tip pronamic-pay-icon pronamic-pay-status" data-tip="<?php esc_attr_e( 'Status', 'pronamic_ideal' ); |
|
33 | +} |
|
34 | +?>"><?php esc_html_e( 'Status', 'pronamic_ideal' ); ?></span> |
|
32 | 35 | </th> |
33 | 36 | <th scope="col"><?php esc_html_e( 'Payment', 'pronamic_ideal' ); ?></th> |
34 | 37 | <th scope="col"><?php esc_html_e( 'Transaction', 'pronamic_ideal' ); ?></th> |
@@ -90,10 +90,13 @@ |
||
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; ?> |
@@ -27,13 +27,15 @@ |
||
27 | 27 | </td> |
28 | 28 | </tr> |
29 | 29 | |
30 | - <?php else : ?> |
|
30 | + <?php else { |
|
31 | + : ?> |
|
31 | 32 | |
32 | 33 | <?php foreach ( $comments as $comment ) : ?> |
33 | 34 | |
34 | 35 | <?php |
35 | 36 | |
36 | 37 | $html_id = 'comment-' . $comment->comment_ID; |
38 | +} |
|
37 | 39 | $html_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) ); |
38 | 40 | |
39 | 41 | ?> |
@@ -27,13 +27,15 @@ |
||
27 | 27 | </td> |
28 | 28 | </tr> |
29 | 29 | |
30 | - <?php else : ?> |
|
30 | + <?php else { |
|
31 | + : ?> |
|
31 | 32 | |
32 | 33 | <?php foreach ( $comments as $comment ) : ?> |
33 | 34 | |
34 | 35 | <?php |
35 | 36 | |
36 | 37 | $html_id = 'comment-' . $comment->comment_ID; |
38 | +} |
|
37 | 39 | $html_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) ); |
38 | 40 | |
39 | 41 | ?> |