@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | <div class="pronamic-pay-form-wrap"> |
| 33 | 33 | |
| 34 | - <?php if ( ! is_singular( 'pronamic_pay_form' ) ) : ?> |
|
| 34 | + <?php if ( !is_singular( 'pronamic_pay_form' ) ) : ?> |
|
| 35 | 35 | |
| 36 | 36 | <h2 class="pronamic-pay-form-title"><?php echo esc_html( get_the_title( $id ) ); ?></h2> |
| 37 | 37 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | <?php |
| 54 | 54 | |
| 55 | - $input_id = 'pronamic-pay-amount-' . esc_attr( $amount ); |
|
| 55 | + $input_id = 'pronamic-pay-amount-'.esc_attr( $amount ); |
|
| 56 | 56 | |
| 57 | 57 | $decimals = ( $amount % 100 > 0 ? 2 : 0 ); |
| 58 | 58 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | ?> |
| 141 | 141 | |
| 142 | - <?php if ( ! empty( $fields ) ) : ?> |
|
| 142 | + <?php if ( !empty( $fields ) ) : ?> |
|
| 143 | 143 | |
| 144 | 144 | <fieldset> |
| 145 | 145 | <legend><?php esc_html_e( 'Payment Info', 'pronamic_ideal' ); ?></legend> |
@@ -147,15 +147,15 @@ discard block |
||
| 147 | 147 | <?php foreach ( $fields as $i => $field ) : ?> |
| 148 | 148 | |
| 149 | 149 | <p class="pronamic-pay-form-row pronamic-pay-form-row-wide"> |
| 150 | - <label class="pronamic-pay-label" for="<?php echo esc_attr( $field['id'] ); ?>"> |
|
| 151 | - <?php echo esc_html( $field['label'] ); ?> |
|
| 150 | + <label class="pronamic-pay-label" for="<?php echo esc_attr( $field[ 'id' ] ); ?>"> |
|
| 151 | + <?php echo esc_html( $field[ 'label' ] ); ?> |
|
| 152 | 152 | <span class="pronamic-pay-required-indicator">*</span> |
| 153 | 153 | </label> |
| 154 | 154 | |
| 155 | - <?php if ( 'select' === $field['type'] ) : ?> |
|
| 155 | + <?php if ( 'select' === $field[ 'type' ] ) : ?> |
|
| 156 | 156 | |
| 157 | - <select id="<?php echo esc_attr( $field['id'] ); ?>" name="<?php echo esc_attr( $field['name'] ); ?>"> |
|
| 158 | - <?php echo Util::select_options_grouped( $field['choices'] ); ?> |
|
| 157 | + <select id="<?php echo esc_attr( $field[ 'id' ] ); ?>" name="<?php echo esc_attr( $field[ 'name' ] ); ?>"> |
|
| 158 | + <?php echo Util::select_options_grouped( $field[ 'choices' ] ); ?> |
|
| 159 | 159 | </select> |
| 160 | 160 | |
| 161 | 161 | <?php endif; ?> |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | <?php endif; ?> |
| 169 | 169 | |
| 170 | - <?php if ( ! empty( $pronamic_pay_errors ) ) : ?> |
|
| 170 | + <?php if ( !empty( $pronamic_pay_errors ) ) : ?> |
|
| 171 | 171 | |
| 172 | 172 | <div class="pronamic-pay-errors"> |
| 173 | 173 | |
@@ -2,18 +2,18 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | $root_dir = dirname( __DIR__ ); |
| 4 | 4 | |
| 5 | -$data = file_get_contents( $root_dir . '/package.json' ); |
|
| 5 | +$data = file_get_contents( $root_dir.'/package.json' ); |
|
| 6 | 6 | $pkg = json_decode( $data ); |
| 7 | 7 | |
| 8 | 8 | // Check readme.txt |
| 9 | 9 | // @see https://github.com/WordPress/WordPress/blob/4.9/wp-includes/functions.php#L4810-L4868 |
| 10 | 10 | $filename = 'readme.txt'; |
| 11 | 11 | |
| 12 | -$readme_txt_lines = file( $root_dir . '/' . $filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ); |
|
| 12 | +$readme_txt_lines = file( $root_dir.'/'.$filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ); |
|
| 13 | 13 | |
| 14 | 14 | $search_string = sprintf( 'Stable tag: %s', $pkg->version ); |
| 15 | 15 | |
| 16 | -if ( ! in_array( $search_string, $readme_txt_lines, true ) ) { |
|
| 16 | +if ( !in_array( $search_string, $readme_txt_lines, true ) ) { |
|
| 17 | 17 | printf( '❌ ' ); |
| 18 | 18 | printf( 'Could not find "%s" in file "%s".', $search_string, $filename ); |
| 19 | 19 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | // @see https://github.com/WordPress/WordPress/blob/4.9/wp-includes/functions.php#L4810-L4868 |
| 31 | 31 | $filename = 'pronamic-ideal.php'; |
| 32 | 32 | |
| 33 | -$plugin_file = file_get_contents( $root_dir . '/' . $filename ); |
|
| 33 | +$plugin_file = file_get_contents( $root_dir.'/'.$filename ); |
|
| 34 | 34 | |
| 35 | 35 | $file_header = ''; |
| 36 | 36 | |
@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | foreach ( $tokens as $token ) { |
| 40 | 40 | if ( is_array( $token ) ) { |
| 41 | - $type = $token[0]; |
|
| 42 | - $value = $token[1]; |
|
| 43 | - $line = $token[2]; |
|
| 41 | + $type = $token[ 0 ]; |
|
| 42 | + $value = $token[ 1 ]; |
|
| 43 | + $line = $token[ 2 ]; |
|
| 44 | 44 | |
| 45 | 45 | if ( in_array( $type, array( T_COMMENT, T_DOC_COMMENT ), true ) && false !== strpos( $value, 'Plugin Name' ) ) { |
| 46 | 46 | $file_header = $value; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | $search_string = sprintf( 'Version: %s', $pkg->version ); |
| 60 | 60 | |
| 61 | -if ( ! in_array( $search_string, $file_header_lines, true ) ) { |
|
| 61 | +if ( !in_array( $search_string, $file_header_lines, true ) ) { |
|
| 62 | 62 | printf( '❌ ' ); |
| 63 | 63 | printf( 'Could not find "%s" in file "%s".', $search_string, $filename ); |
| 64 | 64 | |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | $working_dir = getcwd(); |
| 4 | 4 | $project_dir = dirname( __DIR__ ); |
| 5 | -$repositories_dir = $project_dir . '/repositories'; |
|
| 5 | +$repositories_dir = $project_dir.'/repositories'; |
|
| 6 | 6 | |
| 7 | 7 | $organisations = array( |
| 8 | 8 | 'wp-pay' => array( |
@@ -61,20 +61,20 @@ discard block |
||
| 61 | 61 | $repository |
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | - $git_dir = $repositories_dir . '/' . $organisation . '/' . $repository; |
|
| 64 | + $git_dir = $repositories_dir.'/'.$organisation.'/'.$repository; |
|
| 65 | 65 | |
| 66 | - if ( ! is_dir( $git_dir ) ) { |
|
| 66 | + if ( !is_dir( $git_dir ) ) { |
|
| 67 | 67 | `git clone $git_url $git_dir`; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | // Git flow |
| 71 | 71 | chdir( $git_dir ); |
| 72 | 72 | |
| 73 | - if ( isset( $argv[1] ) && 'develop' === $argv[1] ) { |
|
| 73 | + if ( isset( $argv[ 1 ] ) && 'develop' === $argv[ 1 ] ) { |
|
| 74 | 74 | `git checkout develop`; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - if ( isset( $argv[1] ) && 'pull' === $argv[1] ) { |
|
| 77 | + if ( isset( $argv[ 1 ] ) && 'pull' === $argv[ 1 ] ) { |
|
| 78 | 78 | $command = 'git pull'; |
| 79 | 79 | |
| 80 | 80 | echo $command, PHP_EOL; |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | header( 'Content-Type: text/plain' ); |
| 4 | 4 | |
| 5 | -$data = file_get_contents( __DIR__ . '/../changelog.json' ); |
|
| 5 | +$data = file_get_contents( __DIR__.'/../changelog.json' ); |
|
| 6 | 6 | $changelog = json_decode( $data ); |
| 7 | 7 | |
| 8 | 8 | function render_changes( $changes, $level = 0 ) { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$data = file_get_contents( __DIR__ . '/../extensions.json' ); |
|
| 3 | +$data = file_get_contents( __DIR__.'/../extensions.json' ); |
|
| 4 | 4 | $extensions = json_decode( $data ); |
| 5 | 5 | |
| 6 | 6 | foreach ( $extensions as $extension ) { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$data = file_get_contents( __DIR__ . '/../changelog.json' ); |
|
| 3 | +$data = file_get_contents( __DIR__.'/../changelog.json' ); |
|
| 4 | 4 | $changelog = json_decode( $data ); |
| 5 | 5 | |
| 6 | 6 | function render_changes( $changes, $level = 0 ) { |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$data = file_get_contents( __DIR__ . '/../providers.json' ); |
|
| 3 | +$data = file_get_contents( __DIR__.'/../providers.json' ); |
|
| 4 | 4 | $data = json_decode( $data ); |
| 5 | 5 | |
| 6 | 6 | $providers = array(); |
@@ -8,14 +8,14 @@ discard block |
||
| 8 | 8 | $providers[ $provider->slug ] = $provider; |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | -$data = file_get_contents( __DIR__ . '/../gateways.json' ); |
|
| 11 | +$data = file_get_contents( __DIR__.'/../gateways.json' ); |
|
| 12 | 12 | $gateways = json_decode( $data ); |
| 13 | 13 | |
| 14 | 14 | foreach ( $gateways as $gateway ) { |
| 15 | 15 | if ( isset( $providers[ $gateway->provider ] ) ) { |
| 16 | 16 | $provider = $providers[ $gateway->provider ]; |
| 17 | 17 | |
| 18 | - if ( ! isset( $provider->gateways ) ) { |
|
| 18 | + if ( !isset( $provider->gateways ) ) { |
|
| 19 | 19 | $provider->gateways = array(); |
| 20 | 20 | } |
| 21 | 21 | |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | header( 'Content-Type: text/plain' ); |
| 4 | 4 | |
| 5 | -$data = file_get_contents( __DIR__ . '/../../package.json' ); |
|
| 5 | +$data = file_get_contents( __DIR__.'/../../package.json' ); |
|
| 6 | 6 | $pkg = json_decode( $data ); |
| 7 | 7 | |
| 8 | 8 | ?> |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | Requires PHP: 5.3 |
| 16 | 16 | Stable tag: <?php echo $pkg->version, "\r\n"; ?> |
| 17 | 17 | |
| 18 | -<?php require __DIR__ . '/../general/description-short.php'; ?> |
|
| 18 | +<?php require __DIR__.'/../general/description-short.php'; ?> |
|
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | == Description == |
@@ -43,4 +43,4 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | == Links == |
| 45 | 45 | |
| 46 | -<?php require __DIR__ . '/../general/links.php'; ?> |
|
| 46 | +<?php require __DIR__.'/../general/links.php'; ?> |
|
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | [](https://travis-ci.org/pronamic/wp-pronamic-ideal) |
| 15 | 15 | [](http://gruntjs.com/) |
| 16 | 16 | |
| 17 | -<?php include __DIR__ . '/../general/description-short.php'; ?> |
|
| 17 | +<?php include __DIR__.'/../general/description-short.php'; ?> |
|
| 18 | 18 | |
| 19 | 19 | |
| 20 | 20 | ## Gateways |
@@ -37,4 +37,4 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | ## Links |
| 39 | 39 | |
| 40 | -<?php include __DIR__ . '/../general/links.php'; ?> |
|
| 40 | +<?php include __DIR__.'/../general/links.php'; ?> |
|