Test Setup Failed
Push — master ( 27b5ca...6524fd )
by Austin
01:34
created
trunk/admin/class-wordpress-security-txt-field.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -269,13 +269,13 @@
 block discarded – undo
269 269
                 'value'       => isset($this->options['disclosure']) ? $this->options['disclosure'] : 'default',
270 270
                 'selections'  => [
271 271
                     ['value' => 'default',
272
-                     'label' => 'Default — do not include the "Disclosure" directive'],
272
+                        'label' => 'Default — do not include the "Disclosure" directive'],
273 273
                     ['value' => 'full',
274
-                     'label' => 'Full — you will fully disclose reports after the issue has been resolved'],
274
+                        'label' => 'Full — you will fully disclose reports after the issue has been resolved'],
275 275
                     ['value' => 'partial',
276
-                     'label' => 'Partial — you will partially disclose reports after the issue has been resolved'],
276
+                        'label' => 'Partial — you will partially disclose reports after the issue has been resolved'],
277 277
                     ['value' => 'none',
278
-                     'label' => 'None — you do not want to disclose reports after the issue has been resolved'],
278
+                        'label' => 'None — you do not want to disclose reports after the issue has been resolved'],
279 279
                 ],
280 280
             ]
281 281
         );
Please login to merge, or discard this patch.
trunk/admin/class-wordpress-security-txt-sanitizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         } elseif (in_array($this->type, ['hidden', 'month', 'text'], true)) {
86 86
             $sanitized = $this->sanitize_wrapper($this->data, 'sanitize_text_field');
87 87
         } elseif ($this->type == 'checkbox') {
88
-            $sanitized = (isset($this->data) && ! is_null($this->data) ? true : false);
88
+            $sanitized = (isset($this->data) && !is_null($this->data) ? true : false);
89 89
         } elseif ($this->type == 'editor') {
90 90
             $sanitized = wp_kses_post($this->data);
91 91
         } elseif ($this->type == 'email') {
Please login to merge, or discard this patch.
trunk/admin/class-wordpress-security-txt-admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@
 block discarded – undo
261 261
     public function register_settings()
262 262
     {
263 263
         register_setting(
264
-            $this->plugin_name,// . '-options',
264
+            $this->plugin_name, // . '-options',
265 265
             $this->plugin_name . '-options',
266 266
             [$this, 'validate_options']
267 267
         );
Please login to merge, or discard this patch.
trunk/uninstall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
  */
27 27
 
28 28
 // If uninstall not called from WordPress, then exit.
29
-if (! defined('WP_UNINSTALL_PLUGIN')) {
29
+if (!defined('WP_UNINSTALL_PLUGIN')) {
30 30
     exit;
31 31
 }
Please login to merge, or discard this patch.
trunk/public/class-wordpress-security-txt-public.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
             WordPress_Security_Txt::import_lib();
263 263
 
264 264
             $writer = (new \AustinHeap\Security\Txt\Writer)->setDebug(isset($this->options['credits']) ? $this->options['credits'] : false)
265
-                                                           ->addContact($this->options['contact']);
265
+                                                            ->addContact($this->options['contact']);
266 266
 
267 267
             if (! empty($this->options['encryption'])) {
268 268
                 $writer->setEncryption(get_site_url() . '/.well-known/gpg.txt');
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -85,13 +85,13 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function route()
87 87
     {
88
-        if (! isset($_SERVER) || ! isset($_SERVER['REQUEST_URI']) || ! isset($_SERVER['HTTP_HOST'])) {
88
+        if (!isset($_SERVER) || !isset($_SERVER['REQUEST_URI']) || !isset($_SERVER['HTTP_HOST'])) {
89 89
             return;
90 90
         }
91 91
 
92 92
         $this->options = WordPress_Security_Txt_Admin::get_options($this->plugin_name);
93 93
 
94
-        if (! is_array($this->options) || ! isset($this->options['enable']) || ! $this->options['enable']) {
94
+        if (!is_array($this->options) || !isset($this->options['enable']) || !$this->options['enable']) {
95 95
             return;
96 96
         }
97 97
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     private function is_secure()
143 143
     {
144
-        return (! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443;
144
+        return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443;
145 145
     }
146 146
 
147 147
     /**
@@ -264,15 +264,15 @@  discard block
 block discarded – undo
264 264
             $writer = (new \AustinHeap\Security\Txt\Writer)->setDebug(isset($this->options['credits']) ? $this->options['credits'] : false)
265 265
                                                            ->addContact($this->options['contact']);
266 266
 
267
-            if (! empty($this->options['encryption'])) {
267
+            if (!empty($this->options['encryption'])) {
268 268
                 $writer->setEncryption(get_site_url() . '/.well-known/gpg.txt');
269 269
             }
270 270
 
271
-            if (! empty($this->options['disclosure']) && $this->options['disclosure'] != 'default') {
271
+            if (!empty($this->options['disclosure']) && $this->options['disclosure'] != 'default') {
272 272
                 $writer->setDisclosure($this->options['disclosure']);
273 273
             }
274 274
 
275
-            if (! empty($this->options['acknowledgement'])) {
275
+            if (!empty($this->options['acknowledgement'])) {
276 276
                 $writer->setAcknowledgement($this->options['acknowledgement']);
277 277
             }
278 278
 
Please login to merge, or discard this patch.
trunk/wordpress-security-txt.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
  */
24 24
 
25 25
 // If this file is called directly, abort.
26
-if (! defined('WPINC')) {
26
+if (!defined('WPINC')) {
27 27
     die;
28 28
 }
29 29
 
30 30
 // Used for referring to the plugin file or basename
31
-if (! defined('WORDPRESS_SECURITY_TXT_FILE')) {
31
+if (!defined('WORDPRESS_SECURITY_TXT_FILE')) {
32 32
     define('WORDPRESS_SECURITY_TXT_FILE', plugin_basename(__FILE__));
33 33
 }
34 34
 
Please login to merge, or discard this patch.