Passed
Push — master ( 16fb66...be3f72 )
by Joseph
02:19
created
shortcodes/subway-shortcodes.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * Class Constructor.
41 41
      *
42
-     * @return void
42
+     * @return Shortcodes
43 43
      */
44 44
     private function __construct() 
45 45
     {
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * Instantiate our class.
55 55
      * 
56
-     * @return mixed The instance of this class.
56
+     * @return Shortcodes|null The instance of this class.
57 57
      */
58 58
     public static function instance() 
59 59
     {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     /**
92 92
      * Displays the login form
93 93
      * 
94
-     * @return void
94
+     * @return null|string
95 95
      */
96 96
     public function loginForm( $atts )
97 97
     {
Please login to merge, or discard this patch.
classes/subway-metabox.php 2 patches
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.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,10 +182,13 @@
 block discarded – undo
182 182
 				});
183 183
 			</script>
184 184
 			<p class="howto"><?php echo esc_html( $howto ); ?></p>
185
-		<?php else : ?>
185
+		<?php else {
186
+	: ?>
186 187
 			<?php // Site is public! Explain to them ?>
187 188
 			<p><em>
188
-				<?php esc_html_e( 'You have chosen to make your site public inside Settings > Subway.  Subway visibility options will be turned off.', 'subway' ); ?>
189
+				<?php esc_html_e( 'You have chosen to make your site public inside Settings > Subway.  Subway visibility options will be turned off.', 'subway' );
190
+}
191
+?>
189 192
 			</em>
190 193
 			</p>
191 194
 		<?php endif; ?>
Please login to merge, or discard this patch.