Passed
Push — master ( 876108...8633df )
by Paul
06:37
created
config/styles/ninja_forms.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'input' => 'ninja-forms-field nf-element',
6
-        'textarea' => 'ninja-forms-field nf-element',
7
-    ],
4
+	'fields' => [
5
+		'input' => 'ninja-forms-field nf-element',
6
+		'textarea' => 'ninja-forms-field nf-element',
7
+	],
8 8
 ];
Please login to merge, or discard this patch.
config/styles/contact_form_7.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'input' => 'wpcf7-form-control',
6
-        'input_text' => 'wpcf7-form-control wpcf7-text',
7
-        'input_email' => 'wpcf7-form-control wpcf7-text wpcf7-email',
8
-        'select' => 'wpcf7-form-control wpcf7-select',
9
-        'textarea' => 'wpcf7-form-control wpcf7-textarea',
10
-    ],
11
-    'validation' => [
12
-        'error_tag' => 'span',
13
-        'error_tag_class' => 'wpcf7-not-valid-tip',
14
-        'input_error_class' => 'wpcf7-not-valid',
15
-        'message_initial_class' => 'wpcf7-display-none',
16
-        'message_success_class' => 'wpcf7-mail-sent-ok',
17
-        'message_tag_class' => 'wpcf7-response-output',
18
-    ],
4
+	'fields' => [
5
+		'input' => 'wpcf7-form-control',
6
+		'input_text' => 'wpcf7-form-control wpcf7-text',
7
+		'input_email' => 'wpcf7-form-control wpcf7-text wpcf7-email',
8
+		'select' => 'wpcf7-form-control wpcf7-select',
9
+		'textarea' => 'wpcf7-form-control wpcf7-textarea',
10
+	],
11
+	'validation' => [
12
+		'error_tag' => 'span',
13
+		'error_tag_class' => 'wpcf7-not-valid-tip',
14
+		'input_error_class' => 'wpcf7-not-valid',
15
+		'message_initial_class' => 'wpcf7-display-none',
16
+		'message_success_class' => 'wpcf7-mail-sent-ok',
17
+		'message_tag_class' => 'wpcf7-response-output',
18
+	],
19 19
 ];
Please login to merge, or discard this patch.
config/styles/wpforms.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'input' => 'wpforms-field-large',
6
-        'label' => 'wpforms-field-label',
7
-        'label_checkbox' => 'wpforms-field-label-inline',
8
-        'label_radio' => 'wpforms-field-label-inline',
9
-        'select' => 'wpforms-field-large',
10
-        'textarea' => 'wpforms-field-large',
11
-    ],
4
+	'fields' => [
5
+		'input' => 'wpforms-field-large',
6
+		'label' => 'wpforms-field-label',
7
+		'label_checkbox' => 'wpforms-field-label-inline',
8
+		'label_radio' => 'wpforms-field-label-inline',
9
+		'select' => 'wpforms-field-large',
10
+		'textarea' => 'wpforms-field-large',
11
+	],
12 12
 ];
Please login to merge, or discard this patch.
config/styles/bootstrap_4_custom.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'input' => 'form-control',
6
-        'input_checkbox' => 'custom-control-input',
7
-        'input_radio' => 'custom-control-input',
8
-        'label_checkbox' => 'custom-control-label',
9
-        'label_radio' => 'custom-control-label',
10
-        'select' => 'form-control',
11
-        'textarea' => 'form-control',
12
-    ],
13
-    'validation' => [
14
-        'error_tag' => 'div',
15
-        'error_tag_class' => 'invalid-feedback',
16
-        'field_class' => 'form-group',
17
-        'input_error_class' => 'is-invalid',
18
-    ],
4
+	'fields' => [
5
+		'input' => 'form-control',
6
+		'input_checkbox' => 'custom-control-input',
7
+		'input_radio' => 'custom-control-input',
8
+		'label_checkbox' => 'custom-control-label',
9
+		'label_radio' => 'custom-control-label',
10
+		'select' => 'form-control',
11
+		'textarea' => 'form-control',
12
+	],
13
+	'validation' => [
14
+		'error_tag' => 'div',
15
+		'error_tag_class' => 'invalid-feedback',
16
+		'field_class' => 'form-group',
17
+		'input_error_class' => 'is-invalid',
18
+	],
19 19
 ];
Please login to merge, or discard this patch.
config/styles/divi.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'label' => 'et_pb_contact_form_label',
6
-    ],
4
+	'fields' => [
5
+		'label' => 'et_pb_contact_form_label',
6
+	],
7 7
 ];
Please login to merge, or discard this patch.
config/styles/materialize.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'select' => 'browser-default',
6
-        'textarea' => 'materialize-textarea',
7
-    ],
8
-    'pagination' => [
9
-        'type' => 'list',
10
-    ],
11
-    'validation' => [
12
-        'error_tag' => 'span',
13
-        'input_error_class' => 'wpcf7-not-valid',
14
-        'error_tag_class' => 'wpcf7-not-valid-tip',
15
-        'input_error_class' => 'wpcf7-not-valid',
16
-        'message_tag_class' => 'wpcf7-response-output',
17
-    ],
4
+	'fields' => [
5
+		'select' => 'browser-default',
6
+		'textarea' => 'materialize-textarea',
7
+	],
8
+	'pagination' => [
9
+		'type' => 'list',
10
+	],
11
+	'validation' => [
12
+		'error_tag' => 'span',
13
+		'input_error_class' => 'wpcf7-not-valid',
14
+		'error_tag_class' => 'wpcf7-not-valid-tip',
15
+		'input_error_class' => 'wpcf7-not-valid',
16
+		'message_tag_class' => 'wpcf7-response-output',
17
+	],
18 18
 ];
Please login to merge, or discard this patch.
config/styles/bootstrap_4.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'input' => 'form-control',
6
-        'input_checkbox' => 'form-check-input',
7
-        'input_radio' => 'form-check-input',
8
-        'label_checkbox' => 'form-check-label',
9
-        'label_radio' => 'form-check-label',
10
-        'select' => 'form-control',
11
-        'textarea' => 'form-control',
12
-    ],
13
-    'validation' => [
14
-        'error_tag' => 'div',
15
-        'error_tag_class' => 'invalid-feedback',
16
-        'field_class' => 'form-group',
17
-        'input_error_class' => 'is-invalid',
18
-    ],
4
+	'fields' => [
5
+		'input' => 'form-control',
6
+		'input_checkbox' => 'form-check-input',
7
+		'input_radio' => 'form-check-input',
8
+		'label_checkbox' => 'form-check-label',
9
+		'label_radio' => 'form-check-label',
10
+		'select' => 'form-control',
11
+		'textarea' => 'form-control',
12
+	],
13
+	'validation' => [
14
+		'error_tag' => 'div',
15
+		'error_tag_class' => 'invalid-feedback',
16
+		'field_class' => 'form-group',
17
+		'input_error_class' => 'is-invalid',
18
+	],
19 19
 ];
Please login to merge, or discard this patch.
config/inline-styles.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    ':star-empty' => glsr()->url('assets/images/star-empty.svg'),
5
-    ':star-error' => glsr()->url('assets/images/star-error.svg'),
6
-    ':star-full' => glsr()->url('assets/images/star-full.svg'),
7
-    ':star-half' => glsr()->url('assets/images/star-half.svg'),
4
+	':star-empty' => glsr()->url('assets/images/star-empty.svg'),
5
+	':star-error' => glsr()->url('assets/images/star-error.svg'),
6
+	':star-full' => glsr()->url('assets/images/star-full.svg'),
7
+	':star-half' => glsr()->url('assets/images/star-half.svg'),
8 8
 ];
Please login to merge, or discard this patch.
activate.php 1 patch
Indentation   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -8,137 +8,137 @@
 block discarded – undo
8 8
  */
9 9
 class GL_Plugin_Check_v3
10 10
 {
11
-    const MIN_PHP_VERSION = '5.6.0';
12
-    const MIN_WORDPRESS_VERSION = '4.7.0';
11
+	const MIN_PHP_VERSION = '5.6.0';
12
+	const MIN_WORDPRESS_VERSION = '4.7.0';
13 13
 
14
-    /**
15
-     * @var string
16
-     */
17
-    protected $file;
14
+	/**
15
+	 * @var string
16
+	 */
17
+	protected $file;
18 18
 
19
-    /**
20
-     * @var array
21
-     */
22
-    protected $versions;
19
+	/**
20
+	 * @var array
21
+	 */
22
+	protected $versions;
23 23
 
24
-    /**
25
-     * @param string $file
26
-     */
27
-    public function __construct($file, array $versions = array())
28
-    {
29
-        $this->file = realpath($file);
30
-        $this->versions = wp_parse_args($versions, array(
31
-            'php' => static::MIN_PHP_VERSION,
32
-            'wordpress' => static::MIN_WORDPRESS_VERSION,
33
-        ));
34
-    }
24
+	/**
25
+	 * @param string $file
26
+	 */
27
+	public function __construct($file, array $versions = array())
28
+	{
29
+		$this->file = realpath($file);
30
+		$this->versions = wp_parse_args($versions, array(
31
+			'php' => static::MIN_PHP_VERSION,
32
+			'wordpress' => static::MIN_WORDPRESS_VERSION,
33
+		));
34
+	}
35 35
 
36
-    /**
37
-     * @return bool
38
-     */
39
-    public function canProceed()
40
-    {
41
-        if ($this->isValid()) {
42
-            return true;
43
-        }
44
-        add_action('activated_plugin', array($this, 'deactivate'));
45
-        add_action('admin_notices', array($this, 'deactivate'));
46
-        return false;
47
-    }
36
+	/**
37
+	 * @return bool
38
+	 */
39
+	public function canProceed()
40
+	{
41
+		if ($this->isValid()) {
42
+			return true;
43
+		}
44
+		add_action('activated_plugin', array($this, 'deactivate'));
45
+		add_action('admin_notices', array($this, 'deactivate'));
46
+		return false;
47
+	}
48 48
 
49
-    /**
50
-     * @return bool
51
-     */
52
-    public function isPhpValid()
53
-    {
54
-        return !version_compare(PHP_VERSION, $this->versions['php'], '<');
55
-    }
49
+	/**
50
+	 * @return bool
51
+	 */
52
+	public function isPhpValid()
53
+	{
54
+		return !version_compare(PHP_VERSION, $this->versions['php'], '<');
55
+	}
56 56
 
57
-    /**
58
-     * @return bool
59
-     */
60
-    public function isValid()
61
-    {
62
-        return $this->isPhpValid() && $this->isWpValid();
63
-    }
57
+	/**
58
+	 * @return bool
59
+	 */
60
+	public function isValid()
61
+	{
62
+		return $this->isPhpValid() && $this->isWpValid();
63
+	}
64 64
 
65
-    /**
66
-     * @return bool
67
-     */
68
-    public function isWpValid()
69
-    {
70
-        global $wp_version;
71
-        return !version_compare($wp_version, $this->versions['wordpress'], '<');
72
-    }
65
+	/**
66
+	 * @return bool
67
+	 */
68
+	public function isWpValid()
69
+	{
70
+		global $wp_version;
71
+		return !version_compare($wp_version, $this->versions['wordpress'], '<');
72
+	}
73 73
 
74
-    /**
75
-     * @param string $plugin
76
-     * @return void
77
-     */
78
-    public function deactivate($plugin)
79
-    {
80
-        if ($this->isValid()) {
81
-            return;
82
-        }
83
-        $pluginSlug = plugin_basename($this->file);
84
-        if ($plugin == $pluginSlug) {
85
-            $this->redirect(); //exit
86
-        }
87
-        $pluginData = get_file_data($this->file, array('name' => 'Plugin Name'), 'plugin');
88
-        deactivate_plugins($pluginSlug);
89
-        $this->printNotice($pluginData['name']);
90
-    }
74
+	/**
75
+	 * @param string $plugin
76
+	 * @return void
77
+	 */
78
+	public function deactivate($plugin)
79
+	{
80
+		if ($this->isValid()) {
81
+			return;
82
+		}
83
+		$pluginSlug = plugin_basename($this->file);
84
+		if ($plugin == $pluginSlug) {
85
+			$this->redirect(); //exit
86
+		}
87
+		$pluginData = get_file_data($this->file, array('name' => 'Plugin Name'), 'plugin');
88
+		deactivate_plugins($pluginSlug);
89
+		$this->printNotice($pluginData['name']);
90
+	}
91 91
 
92
-    /**
93
-     * @return array
94
-     */
95
-    protected function getMessages()
96
-    {
97
-        return array(
98
-            __('The %s plugin was deactivated.', 'site-reviews'),
99
-            __('This plugin requires %s or greater in order to work properly.', 'site-reviews'),
100
-            __('Please contact your hosting provider or server administrator to upgrade the version of PHP on your server (your server is running PHP version %s), or try to find an alternative plugin.', 'site-reviews'),
101
-            __('PHP version', 'site-reviews'),
102
-            __('WordPress version', 'site-reviews'),
103
-            __('Update WordPress', 'site-reviews'),
104
-            __('You can use the %s plugin to restore %s to the previous version.', 'site-reviews'),
105
-        );
106
-    }
92
+	/**
93
+	 * @return array
94
+	 */
95
+	protected function getMessages()
96
+	{
97
+		return array(
98
+			__('The %s plugin was deactivated.', 'site-reviews'),
99
+			__('This plugin requires %s or greater in order to work properly.', 'site-reviews'),
100
+			__('Please contact your hosting provider or server administrator to upgrade the version of PHP on your server (your server is running PHP version %s), or try to find an alternative plugin.', 'site-reviews'),
101
+			__('PHP version', 'site-reviews'),
102
+			__('WordPress version', 'site-reviews'),
103
+			__('Update WordPress', 'site-reviews'),
104
+			__('You can use the %s plugin to restore %s to the previous version.', 'site-reviews'),
105
+		);
106
+	}
107 107
 
108
-    /**
109
-     * @param string $pluginName
110
-     * @return void
111
-     */
112
-    protected function printNotice($pluginName)
113
-    {
114
-        $noticeTemplate = '<div id="message" class="notice notice-error error is-dismissible"><p><strong>%s</strong></p><p>%s</p><p>%s</p></div>';
115
-        $messages = $this->getMessages();
116
-        $rollbackMessage = sprintf('<strong>'.$messages[6].'</strong>', '<a href="https://wordpress.org/plugins/wp-rollback/">WP Rollback</a>', $pluginName);
117
-        if (!$this->isPhpValid()) {
118
-            printf($noticeTemplate,
119
-                sprintf($messages[0], $pluginName),
120
-                sprintf($messages[1], $messages[3].' '.$this->versions['php']),
121
-                sprintf($messages[2], PHP_VERSION).'</p><p>'.$rollbackMessage
122
-            );
123
-        } elseif (!$this->isWpValid()) {
124
-            printf($noticeTemplate,
125
-                sprintf($messages[0], $pluginName),
126
-                sprintf($messages[1], $messages[4].' '.$this->versions['wordpress']),
127
-                $rollbackMessage.'</p><p>'.sprintf('<a href="%s">%s</a>', admin_url('update-core.php'), $messages[5])
128
-            );
129
-        }
130
-    }
108
+	/**
109
+	 * @param string $pluginName
110
+	 * @return void
111
+	 */
112
+	protected function printNotice($pluginName)
113
+	{
114
+		$noticeTemplate = '<div id="message" class="notice notice-error error is-dismissible"><p><strong>%s</strong></p><p>%s</p><p>%s</p></div>';
115
+		$messages = $this->getMessages();
116
+		$rollbackMessage = sprintf('<strong>'.$messages[6].'</strong>', '<a href="https://wordpress.org/plugins/wp-rollback/">WP Rollback</a>', $pluginName);
117
+		if (!$this->isPhpValid()) {
118
+			printf($noticeTemplate,
119
+				sprintf($messages[0], $pluginName),
120
+				sprintf($messages[1], $messages[3].' '.$this->versions['php']),
121
+				sprintf($messages[2], PHP_VERSION).'</p><p>'.$rollbackMessage
122
+			);
123
+		} elseif (!$this->isWpValid()) {
124
+			printf($noticeTemplate,
125
+				sprintf($messages[0], $pluginName),
126
+				sprintf($messages[1], $messages[4].' '.$this->versions['wordpress']),
127
+				$rollbackMessage.'</p><p>'.sprintf('<a href="%s">%s</a>', admin_url('update-core.php'), $messages[5])
128
+			);
129
+		}
130
+	}
131 131
 
132
-    /**
133
-     * @return void
134
-     */
135
-    protected function redirect()
136
-    {
137
-        wp_safe_redirect(self_admin_url(sprintf('plugins.php?plugin_status=%s&paged=%s&s=%s',
138
-            filter_input(INPUT_GET, 'plugin_status'),
139
-            filter_input(INPUT_GET, 'paged'),
140
-            filter_input(INPUT_GET, 's')
141
-        )));
142
-        exit;
143
-    }
132
+	/**
133
+	 * @return void
134
+	 */
135
+	protected function redirect()
136
+	{
137
+		wp_safe_redirect(self_admin_url(sprintf('plugins.php?plugin_status=%s&paged=%s&s=%s',
138
+			filter_input(INPUT_GET, 'plugin_status'),
139
+			filter_input(INPUT_GET, 'paged'),
140
+			filter_input(INPUT_GET, 's')
141
+		)));
142
+		exit;
143
+	}
144 144
 }
Please login to merge, or discard this patch.