Completed
Push — master ( 5df60e...534e94 )
by
unknown
02:26
created
admin/includes/EDD_SL_Plugin_Updater.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 	 * @uses api_request()
65 65
 	 *
66 66
 	 * @param array   $_transient_data Update array build by WordPress.
67
-	 * @return array Modified update array with custom plugin data.
67
+	 * @return stdClass Modified update array with custom plugin data.
68 68
 	 */
69 69
 	function check_update( $_transient_data ) {
70 70
 
Please login to merge, or discard this patch.
includes/lasso_autoloader.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 * Loads the class file for a given class name.
63 63
 	 *
64 64
 	 * @param string $class The fully-qualified class name.
65
-	 * @return mixed The mapped file name on success, or boolean false on
65
+	 * @return string|false The mapped file name on success, or boolean false on
66 66
 	 * failure.
67 67
 	 */
68 68
 	public function loadClass($class) {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	 *
100 100
 	 * @param string $prefix The namespace prefix.
101 101
 	 * @param string $relative_class The relative class name.
102
-	 * @return mixed Boolean false if no mapped file can be loaded, or the
102
+	 * @return false|string Boolean false if no mapped file can be loaded, or the
103 103
 	 * name of the mapped file that was loaded.
104 104
 	 */
105 105
 	protected function loadMappedFile($prefix, $relative_class) {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,8 +115,8 @@
 block discarded – undo
115 115
 			// replace namespace separators with directory separators
116 116
 			// in the relative class name, append with .php
117 117
 			$file = $base_dir
118
-			        . str_replace('\\', '/', $relative_class)
119
-			        . '.php';
118
+					. str_replace('\\', '/', $relative_class)
119
+					. '.php';
120 120
 
121 121
 			// if the mapped file exists, require it
122 122
 			if ($this->requireFile($file)) {
Please login to merge, or discard this patch.
internal-api/auth.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,6 @@  discard block
 block discarded – undo
49 49
 	 *
50 50
 	 * @param string $action The AJAX action we are processing.
51 51
 	 * @param string|object $callback_class The class to use for the callback. Either the name of the class or an instance of that class.
52
-	 * @param string $method The name of the callback method.
53 52
 
54 53
 	 */
55 54
 	public function __construct( $action, $callback_class) {
@@ -123,7 +122,7 @@  discard block
 block discarded – undo
123 122
 	 *
124 123
 	 * @access protected
125 124
 	 *
126
-	 * @return bool
125
+	 * @return boolean|null
127 126
 	 */
128 127
 	protected function if_implements() {
129 128
 
Please login to merge, or discard this patch.
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,6 @@
 block discarded – undo
50 50
 	 * @param string $action The AJAX action we are processing.
51 51
 	 * @param string|object $callback_class The class to use for the callback. Either the name of the class or an instance of that class.
52 52
 	 * @param string $method The name of the callback method.
53
-
54 53
 	 */
55 54
 	public function __construct( $action, $callback_class) {
56 55
 		if ( ! is_object( $callback_class ) ) {
Please login to merge, or discard this patch.
internal-api/route.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -97,6 +97,7 @@
 block discarded – undo
97 97
 	 *
98 98
 	 * @access protected
99 99
 	 *
100
+	 * @param string $action
100 101
 	 * @return array
101 102
 	 */
102 103
 	protected static function find_callback( $action ) {
Please login to merge, or discard this patch.
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,6 @@
 block discarded – undo
81 81
 	 *
82 82
 	 * @param string $action The AJAX action we are processing.
83 83
 	 * @param string|object $callback The class to use for the callback. Either the name of the class or an instance of that class.
84
-
85 84
 	 *
86 85
 	 * @return \lasso\internal_api\auth
87 86
 	 */
Please login to merge, or discard this patch.
public/includes/lasso.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 	 *
67 67
 	 * @since    0.0.1
68 68
 	 *
69
-	 * @return    Plugin slug variable.
69
+	 * @return    string slug variable.
70 70
 	 */
71 71
 	public function get_plugin_slug() {
72 72
 		return $this->plugin_slug;
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -255,14 +255,14 @@  discard block
 block discarded – undo
255 255
 		$out = load_textdomain( $domain, trailingslashit( LASSO_DIR ). 'languages/' . $domain . '-' . $locale . '.mo' );
256 256
 	}
257 257
 	
258
-    // new ajax function to lock post for editing
258
+	// new ajax function to lock post for editing
259 259
 	public function editus_lock_post()
260 260
 	{
261 261
 		$post_id= $_POST["postid"];
262 262
 		$locked = wp_check_post_lock($post_id);
263 263
 		
264 264
 		if (!$locked) {
265
-		    wp_set_post_lock($post_id);
265
+			wp_set_post_lock($post_id);
266 266
 			echo "true";
267 267
 		} else {
268 268
 			$user_info = get_userdata($locked);
@@ -281,52 +281,52 @@  discard block
 block discarded – undo
281 281
 		 );
282 282
 		foreach ($_POST as $key => $value) {
283 283
 			if ($key !="code" && $key !="action") {
284
-			    //$shortcode = $shortcode.$key.'="'.$value.'" ';
284
+				//$shortcode = $shortcode.$key.'="'.$value.'" ';
285 285
 				$atts[$key] = $value;
286 286
 			}
287 287
 		}
288 288
 		if ($code == "aesop_video") {
289
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-video.php');
290
-		    echo aesop_video_shortcode($atts);
289
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-video.php');
290
+			echo aesop_video_shortcode($atts);
291 291
 		}
292 292
 		
293 293
 		if ($code == "aesop_image") {
294
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php');
295
-		    echo aesop_image_shortcode($atts);
294
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-image.php');
295
+			echo aesop_image_shortcode($atts);
296 296
 		}
297 297
 		if ($code == "aesop_quote") {
298
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php');
299
-		    echo aesop_quote_shortcode($atts);
298
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-quote.php');
299
+			echo aesop_quote_shortcode($atts);
300 300
 		}
301 301
 		
302 302
 		if ($code == "aesop_parallax") {
303
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php');
304
-		    echo aesop_parallax_shortcode($atts);
303
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-parallax.php');
304
+			echo aesop_parallax_shortcode($atts);
305 305
 		}
306 306
 		
307 307
 		if ($code == "aesop_character") {
308
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php');
309
-		    echo aesop_character_shortcode($atts);
308
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-character.php');
309
+			echo aesop_character_shortcode($atts);
310 310
 		}
311 311
 		
312 312
 		if ($code == "aesop_collection") {
313
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php');
314
-		    echo aesop_collection_shortcode($atts);
313
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-collections.php');
314
+			echo aesop_collection_shortcode($atts);
315 315
 		}
316 316
 		
317 317
 		if ($code == "aesop_chapter") {
318
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php');
319
-		    echo aesop_chapter_shortcode($atts);
318
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-heading.php');
319
+			echo aesop_chapter_shortcode($atts);
320 320
 		}
321 321
 		
322 322
 		if ($code == "aesop_content") {
323
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-cbox.php');
324
-		    echo aesop_content_shortcode($atts, $atts['content_data']);
323
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-cbox.php');
324
+			echo aesop_content_shortcode($atts, $atts['content_data']);
325 325
 		}
326 326
 		
327 327
 		if ($code == "aesop_gallery") {
328
-		    require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php');
329
-		    echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]');
328
+			require_once( ABSPATH . '/wp-content/plugins/aesop-story-engine/public/includes/components/component-gallery.php');
329
+			echo do_shortcode( '[aesop_gallery id="'.$atts["id"].'"]');
330 330
 		}
331 331
 		
332 332
 		exit; 
Please login to merge, or discard this patch.
admin/includes/load_admin.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -127,11 +127,11 @@  discard block
 block discarded – undo
127 127
 	}
128 128
 
129 129
 	/**
130
-	*	Adds an admin notice reminding the user if their license key has not been saved
131
-	*
132
-	*	@since 0.9.7
133
-	*	@todo make dismissible
134
-	*/
130
+	 *	Adds an admin notice reminding the user if their license key has not been saved
131
+	 *
132
+	 *	@since 0.9.7
133
+	 *	@todo make dismissible
134
+	 */
135 135
 	public function license_nag(){
136 136
 
137 137
 		$screen 	= get_current_screen();
@@ -152,26 +152,26 @@  discard block
 block discarded – undo
152 152
 
153 153
 			if ( empty( $license ) ) {
154 154
 
155
-        		printf('<div class="lasso-notice error" style="position:relative;"><p>%s %s</p>%s</div>', $message_empty, $license_link, $dismiss_link );
155
+				printf('<div class="lasso-notice error" style="position:relative;"><p>%s %s</p>%s</div>', $message_empty, $license_link, $dismiss_link );
156 156
 
157
-        	} else if ( 'invalid' == $status ){ // license key entered wrong or something
157
+			} else if ( 'invalid' == $status ){ // license key entered wrong or something
158 158
 
159 159
 				printf('<div class="lasso-notice error" style="position:relative;"><p>%s %s</p>%s</div>', $message_invalid, $license_link , $dismiss_link );
160 160
 
161
-        	} else if ( empty( $status ) ){ // license key saved but not activated
161
+			} else if ( empty( $status ) ){ // license key saved but not activated
162 162
 
163 163
 				printf('<div class="lasso-notice error" style="position:relative;"><p>%s %s</p>%s</div>', $message_inactive, $license_link, $dismiss_link );
164 164
 
165
-        	}
165
+			}
166 166
 		}
167 167
 
168 168
 	}
169 169
 
170 170
 	/**
171
-	*  Process hiding the dimiss
172
-	*
173
-	* @since 0.9.7
174
-	*/
171
+	 *  Process hiding the dimiss
172
+	 *
173
+	 * @since 0.9.7
174
+	 */
175 175
 	public function dismiss_nag() {
176 176
 
177 177
 		if ( isset( $_GET['lasso-notice'] ) && 'dismiss' == $_GET['lasso-notice'] && current_user_can('manage_options') ) {
Please login to merge, or discard this patch.
includes/process/update_object.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
 	 *  @since    0.9.3
119 119
 	 *
120 120
 	 *  @param    int    	$postid       	The current postid
121
-     *  @param    string|bool     $value    The term slug, or a comma separated list of slugs. Or false to remove all terms set for post.
121
+	 *  @param    string|bool     $value    The term slug, or a comma separated list of slugs. Or false to remove all terms set for post.
122 122
 	 *  @param    string     $taxonomy    	The name of the taxonomy to which the term belongs.
123 123
 	 *
124 124
 	 *  @return bool True if update was successful, false if not.
Please login to merge, or discard this patch.
admin/includes/class-tgm-plugin-activation.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1887,7 +1887,7 @@  discard block
 block discarded – undo
1887 1887
 		 *
1888 1888
 		 * @since 2.4.0
1889 1889
 		 *
1890
-		 * @return object The TGM_Plugin_Activation object.
1890
+		 * @return TGM_Plugin_Activation The TGM_Plugin_Activation object.
1891 1891
 		 */
1892 1892
 		public static function get_instance() {
1893 1893
 			if ( ! isset( self::$instance ) && ! ( self::$instance instanceof self ) ) {
@@ -2044,7 +2044,7 @@  discard block
 block discarded – undo
2044 2044
 		 *
2045 2045
 		 * @since 2.5.0
2046 2046
 		 *
2047
-		 * @return array CSS classnames.
2047
+		 * @return string[] CSS classnames.
2048 2048
 		 */
2049 2049
 		public function get_table_classes() {
2050 2050
 			return array( 'widefat', 'fixed' );
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1322,13 +1322,13 @@
 block discarded – undo
1322 1322
 			$key     = preg_replace( '`[^A-Za-z0-9_-]`', '', $key );
1323 1323
 
1324 1324
 			/**
1325
-			* Filter a sanitized key string.
1326
-			*
1327
-			* @since 3.0.0
1328
-			*
1329
-			* @param string $key     Sanitized key.
1330
-			* @param string $raw_key The key prior to sanitization.
1331
-			*/
1325
+			 * Filter a sanitized key string.
1326
+			 *
1327
+			 * @since 3.0.0
1328
+			 *
1329
+			 * @param string $key     Sanitized key.
1330
+			 * @param string $raw_key The key prior to sanitization.
1331
+			 */
1332 1332
 			return apply_filters( 'tgmpa_sanitize_key', $key, $raw_key );
1333 1333
 		}
1334 1334
 
Please login to merge, or discard this patch.
public/includes/helpers.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
  * If we're on multsite we'll grab the site option which is stored in the main blogs site option tables, otherwise
7 7
  * we'll grab the option which is stored on the single blogs option tables
8 8
  *
9
- * @param unknown $option  string name of the option
10
- * @param unknown $section string name of the section
9
+ * @param string $option  string name of the option
10
+ * @param string $section string name of the section
11 11
  * @param unknown $default string/int default option value
12 12
  * @return the option value
13 13
  * @since 1.0
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 *	Used internally as a callback to build a tab or content area for modal addons
275 275
 *
276 276
 *	@param $tab object
277
-*	@param $type string tab or content
277
+*	@param string $type string tab or content
278 278
 *	@uses lasso_modal_addons()
279 279
 *	@since 0.9.4
280 280
 */
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 		'public' => true,
246 246
 	), 'objects' );
247 247
 	$post_types = array_combine( array_keys( $post_types ), wp_list_pluck( $post_types, 'label' ) );
248
-    unset( $post_types[ 'attachment' ] );
248
+	unset( $post_types[ 'attachment' ] );
249 249
 
250 250
 	/**
251 251
 	 * Set which post types are allowed
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 		'public' => true,
270 270
 	), 'names' );
271 271
 	//$post_types = array_combine( array_keys( $post_types ), wp_list_pluck( $post_types, 'label' ) );
272
-    unset( $post_types[ 'attachment' ] );
272
+	unset( $post_types[ 'attachment' ] );
273 273
 
274 274
 	/**
275 275
 	 * Set which post types are allowed
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
  */
372 372
 if ( !function_exists( 'lasso_user_can' ) ):
373 373
 	function lasso_user_can( $action = '', $postid = 0 ) {
374
-        $result = false;
374
+		$result = false;
375 375
 		if ( empty( $action ) )
376 376
 			$action = 'edit_posts';
377 377
 
Please login to merge, or discard this patch.