Passed
Push — master ( aaaeb8...fae2ce )
by Joseph
07:18 queued 10s
created
classes/subway-metabox.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 * Registers and update metabox with its intended method below.
52 52
 	 *
53 53
 	 * @since  2.0.9
54
-	 * @return void
54
+	 * @return Metabox
55 55
 	 */
56 56
 	public function __construct() {
57 57
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 	 *
199 199
 	 * @since  2.0.9
200 200
 	 * @access public
201
-	 * @return boolean false Returns false if nonce is not valid.
201
+	 * @return boolean|null false Returns false if nonce is not valid.
202 202
 	 */
203 203
 	public function saveVisibilityMetabox( $post_id = '' ) {
204 204
 
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	 *
273 273
 	 * @since  2.0.9
274 274
 	 * @access public
275
-	 * @return boolean false Returns false if nonce is not valid.
275
+	 * @return boolean|null false Returns false if nonce is not valid.
276 276
 	 */
277 277
 	public function saveMetaboxValues( $post_id ) {
278 278
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 	 *
312 312
 	 * @since  2.0.9
313 313
 	 * @access public
314
-	 * @return boolean true Returns true if nonce is valid.
314
+	 * @return null|boolean true Returns true if nonce is valid.
315 315
 	 */
316 316
 	public function isNonceValid( $nonce ) {
317 317
 
Please login to merge, or discard this patch.
classes/subway-enqueue.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 namespace Subway;
21 21
 
22 22
 if (! defined('ABSPATH') ) {
23
-    return;
23
+	return;
24 24
 }
25 25
 
26 26
 /**
@@ -36,47 +36,47 @@  discard block
 block discarded – undo
36 36
 final class Enqueue
37 37
 {
38 38
 
39
-    /**
40
-     * Registers our CSS and Javascript to WordPress Enqueue Handler.
41
-     *
42
-     * @return void
43
-     */
44
-    public static function registerJs() 
45
-    {
39
+	/**
40
+	 * Registers our CSS and Javascript to WordPress Enqueue Handler.
41
+	 *
42
+	 * @return void
43
+	 */
44
+	public static function registerJs() 
45
+	{
46 46
 
47
-        $post_id = absint(get_queried_object_id());
47
+		$post_id = absint(get_queried_object_id());
48 48
 
49
-        $signin_page = absint(get_option('subway_login_page'));
49
+		$signin_page = absint(get_option('subway_login_page'));
50 50
 
51
-        wp_enqueue_style('subway-style', SUBWAY_DIR_URL . 'assets/css/subway.css');
51
+		wp_enqueue_style('subway-style', SUBWAY_DIR_URL . 'assets/css/subway.css');
52 52
 
53
-        // Only load the stylesheet and javascript documents inside our sign-in page.
54
-        if ($post_id === $signin_page ) {
53
+		// Only load the stylesheet and javascript documents inside our sign-in page.
54
+		if ($post_id === $signin_page ) {
55 55
 
56
-            if (! is_user_logged_in() ) {
56
+			if (! is_user_logged_in() ) {
57 57
 
58
-                wp_enqueue_script(
59
-                    'subway-script', 
60
-                    SUBWAY_DIR_URL . 'assets/js/subway.js', 
61
-                    array( 'jquery' )
62
-                );
58
+				wp_enqueue_script(
59
+					'subway-script', 
60
+					SUBWAY_DIR_URL . 'assets/js/subway.js', 
61
+					array( 'jquery' )
62
+				);
63 63
 
64
-                wp_localize_script(
65
-                    'subway-script', 'subway_config', array(
66
-                    'ajax_url' => admin_url('admin-ajax.php'),
67
-                    'login_http_error' => esc_html__(
68
-                        'An error occured while 
64
+				wp_localize_script(
65
+					'subway-script', 'subway_config', array(
66
+					'ajax_url' => admin_url('admin-ajax.php'),
67
+					'login_http_error' => esc_html__(
68
+						'An error occured while 
69 69
                     	transmitting the data. Refresh the page and try again', 
70
-                        'subway'
71
-                    ),
72
-                    )
73
-                );
70
+						'subway'
71
+					),
72
+					)
73
+				);
74 74
 
75
-            }
76
-        }
75
+			}
76
+		}
77 77
 
78
-        return;
78
+		return;
79 79
 
80
-    }
80
+	}
81 81
 
82 82
 }
Please login to merge, or discard this patch.