Passed
Push — develop ( 19513e...af80b4 )
by Reüel
02:12
created
src/Settings.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 	 * Constructs and initialize settings.
25 25
 	 */
26 26
 	public function __construct() {
27
-		add_filter( 'pronamic_pay_gateway_sections', array( $this, 'sections' ) );
28
-		add_filter( 'pronamic_pay_gateway_fields', array( $this, 'fields' ) );
27
+		add_filter('pronamic_pay_gateway_sections', array($this, 'sections'));
28
+		add_filter('pronamic_pay_gateway_fields', array($this, 'fields'));
29 29
 	}
30 30
 
31 31
 	/**
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
 	 * @param array $sections Sections.
35 35
 	 * @return array
36 36
 	 */
37
-	public function sections( array $sections ) {
37
+	public function sections(array $sections) {
38 38
 		$sections['adyen'] = array(
39
-			'title'   => __( 'Adyen', 'pronamic_ideal' ),
40
-			'methods' => array( 'adyen' ),
39
+			'title'   => __('Adyen', 'pronamic_ideal'),
40
+			'methods' => array('adyen'),
41 41
 		);
42 42
 
43 43
 		return $sections;
@@ -49,17 +49,17 @@  discard block
 block discarded – undo
49 49
 	 * @param array $fields Fields.
50 50
 	 * @return array
51 51
 	 */
52
-	public function fields( array $fields ) {
52
+	public function fields(array $fields) {
53 53
 		// API Key.
54 54
 		$fields[] = array(
55 55
 			'filter'   => FILTER_SANITIZE_STRING,
56 56
 			'section'  => 'adyen',
57 57
 			'meta_key' => '_pronamic_gateway_adyen_api_key',
58
-			'title'    => _x( 'API Key', 'adyen', 'pronamic_ideal' ),
58
+			'title'    => _x('API Key', 'adyen', 'pronamic_ideal'),
59 59
 			'type'     => 'textarea',
60
-			'classes'  => array( 'code' ),
61
-			'methods'  => array( 'adyen' ),
62
-			'tooltip'  => __( 'API key as mentioned in the payment provider dashboard', 'pronamic_ideal' ),
60
+			'classes'  => array('code'),
61
+			'methods'  => array('adyen'),
62
+			'tooltip'  => __('API key as mentioned in the payment provider dashboard', 'pronamic_ideal'),
63 63
 		);
64 64
 
65 65
 		// Merchant Account.
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
 			'filter'   => FILTER_SANITIZE_STRING,
68 68
 			'section'  => 'adyen',
69 69
 			'meta_key' => '_pronamic_gateway_adyen_merchant_account',
70
-			'title'    => _x( 'Merchant Account', 'adyen', 'pronamic_ideal' ),
70
+			'title'    => _x('Merchant Account', 'adyen', 'pronamic_ideal'),
71 71
 			'type'     => 'text',
72
-			'classes'  => array( 'regular-text', 'code' ),
73
-			'methods'  => array( 'adyen' ),
74
-			'tooltip'  => __( 'The merchant account identifier, with which you want to process the transaction', 'pronamic_ideal' ),
72
+			'classes'  => array('regular-text', 'code'),
73
+			'methods'  => array('adyen'),
74
+			'tooltip'  => __('The merchant account identifier, with which you want to process the transaction', 'pronamic_ideal'),
75 75
 		);
76 76
 
77 77
 		return $fields;
Please login to merge, or discard this patch.