Passed
Push — develop ( 0fe750...cccd30 )
by Reüel
04:00
created
admin/tab-getting-started.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
 // If this file is called directly, abort.
12
-if ( ! defined( 'WPINC' ) ) {
12
+if ( !defined( 'WPINC' ) ) {
13 13
 	die;
14 14
 }
15 15
 
Please login to merge, or discard this patch.
admin/meta-box-form-options.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,10 +89,10 @@
 block discarded – undo
89 89
 			}
90 90
 
91 91
 			// Add empty input field.
92
-			$choices[] = '';
92
+			$choices[ ] = '';
93 93
 
94 94
 			foreach ( $choices as $i => $amount ) {
95
-				if ( ! empty( $amount ) ) {
95
+				if ( !empty( $amount ) ) {
96 96
 					$decimals = ( $amount % 100 > 0 ? 2 : 0 );
97 97
 
98 98
 					$amount = number_format( ( $amount / 100 ), $decimals, pronamic_pay_get_decimal_separator(), pronamic_pay_get_thousands_separator() );
Please login to merge, or discard this patch.
admin/page-tools.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 			$classes = array( 'nav-tab' );
31 31
 
32 32
 			if ( $current_tab === $tab ) {
33
-				$classes[] = 'nav-tab-active';
33
+				$classes[ ] = 'nav-tab-active';
34 34
 			}
35 35
 
36 36
 			$url = add_query_arg(
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
 	<?php
57 57
 
58
-	$file = plugin_dir_path( Plugin::$file ) . 'admin/tab-' . $current_tab . '.php';
58
+	$file = plugin_dir_path( Plugin::$file ).'admin/tab-'.$current_tab.'.php';
59 59
 
60 60
 	if ( is_readable( $file ) ) {
61 61
 		include $file;
Please login to merge, or discard this patch.
admin/tab-extensions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 <?php
14 14
 
15
-$data       = file_get_contents( __DIR__ . '/../other/extensions.json' );
15
+$data       = file_get_contents( __DIR__.'/../other/extensions.json' );
16 16
 $extensions = json_decode( $data );
17 17
 
18 18
 ?>
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
 		?>
47 47
 
48
-			<?php $alternate = ! $alternate; ?>
48
+			<?php $alternate = !$alternate; ?>
49 49
 
50 50
 			<tr<?php if ( $alternate ) : ?> class="alternate"<?php endif; ?>>
51 51
 				<td>
Please login to merge, or discard this patch.
uninstall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * @package   Pronamic\WordPress\Pay
9 9
  */
10 10
 
11
-if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
11
+if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
12 12
 	exit;
13 13
 }
14 14
 
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $_tests_dir = getenv( 'WP_TESTS_DIR' );
4
-if ( ! $_tests_dir ) {
4
+if ( !$_tests_dir ) {
5 5
 	$_tests_dir = '/tmp/wordpress-tests-lib';
6 6
 }
7 7
 
8
-require_once $_tests_dir . '/includes/functions.php';
8
+require_once $_tests_dir.'/includes/functions.php';
9 9
 
10 10
 function _manually_load_plugin() {
11
-	require dirname( __FILE__ ) . '/../pronamic-ideal.php';
11
+	require dirname( __FILE__ ).'/../pronamic-ideal.php';
12 12
 }
13 13
 
14 14
 tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
15 15
 
16
-require $_tests_dir . '/includes/bootstrap.php';
16
+require $_tests_dir.'/includes/bootstrap.php';
Please login to merge, or discard this patch.
pronamic-ideal.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
 /**
61 61
  * Autoload.
62 62
  */
63
-$loader = require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
63
+$loader = require_once plugin_dir_path( __FILE__ ).'vendor/autoload.php';
64 64
 
65 65
 if ( defined( 'PRONAMIC_PAY_DEBUG' ) && PRONAMIC_PAY_DEBUG ) {
66
-	foreach ( glob( __DIR__ . '/repositories/*/*/composer.json' ) as $file ) {
66
+	foreach ( glob( __DIR__.'/repositories/*/*/composer.json' ) as $file ) {
67 67
 		$content = file_get_contents( $file );
68 68
 
69 69
 		$object = json_decode( $content );
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 			foreach ( $object->autoload as $type => $map ) {
73 73
 				if ( 'psr-4' === $type ) {
74 74
 					foreach ( $map as $prefix => $path ) {
75
-						$loader->addPsr4( $prefix, dirname( $file ) . '/' . $path, true );
75
+						$loader->addPsr4( $prefix, dirname( $file ).'/'.$path, true );
76 76
 					}
77 77
 				}
78 78
 			}
Please login to merge, or discard this patch.
views/redirect-message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 wp_register_style(
18 18
 	'pronamic-pay-redirect',
19
-	plugins_url( 'css/redirect' . $min . '.css', Plugin::$file ),
19
+	plugins_url( 'css/redirect'.$min.'.css', Plugin::$file ),
20 20
 	array(),
21 21
 	$pronamic_ideal->get_version()
22 22
 );
Please login to merge, or discard this patch.
classes/Currency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	public static function transform_code_to_number( $code ) {
29 29
 		$currencies = array();
30 30
 
31
-		$file = dirname( Plugin::$file ) . '/other/dl_iso_table_a1.xml';
31
+		$file = dirname( Plugin::$file ).'/other/dl_iso_table_a1.xml';
32 32
 
33 33
 		$xml = simplexml_load_file( $file );
34 34
 
Please login to merge, or discard this patch.