Completed
Pull Request — master (#15)
by
unknown
02:46
created
app/classes/helper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
 	 *
210 210
 	 * @param array $array Array to be converted.
211 211
 	 *
212
-	 * @return object
212
+	 * @return \stdClass
213 213
 	 */
214 214
 	public static function array_to_object( $array ) {
215 215
 		$obj = new \stdClass;
Please login to merge, or discard this patch.
app/classes/hierarchy.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 	 * @param string $type View|scope.
122 122
 	 * @param string $page Request type like: home, single etc.
123 123
 	 *
124
-	 * @return array|bool
124
+	 * @return string|false
125 125
 	 */
126 126
 	public static function get_available_file( $type = 'view', $page ) {
127 127
 		$views = self::get_request_hierarchy_list( $page );
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 	/**
307 307
 	 * Returns classy template name or boolean if this is not classy template.
308 308
 	 *
309
-	 * @return mixed
309
+	 * @return string|false
310 310
 	 */
311 311
 	public static function get_classy_template() {
312 312
 		preg_match( '/classy\-(.*)/', get_page_template_slug(), $matches );
Please login to merge, or discard this patch.
app/classes/comment.php 1 patch
Braces   +18 added lines, -9 removed lines patch added patch discarded remove patch
@@ -195,7 +195,8 @@  discard block
 block discarded – undo
195 195
 
196 196
 		if ( ! empty( $email ) ) {
197 197
 			$avatar = $this->get_avatar_url( $default, $host, $email_hash, $size );
198
-		} else {
198
+		}
199
+		else {
199 200
 			$avatar = $default;
200 201
 		}
201 202
 
@@ -213,7 +214,8 @@  discard block
 block discarded – undo
213 214
 
214 215
 		if ( $user ) {
215 216
 			$email = $user->user_email;
216
-		} else {
217
+		}
218
+		else {
217 219
 			$email = $this->comment_author_email;
218 220
 		}
219 221
 
@@ -238,7 +240,8 @@  discard block
 block discarded – undo
238 240
 			$avatar_default = get_option( 'avatar_default' );
239 241
 			if ( empty( $avatar_default ) ) {
240 242
 				$default = 'mystery';
241
-			} else {
243
+			}
244
+			else {
242 245
 				$default = $avatar_default;
243 246
 			}
244 247
 		}
@@ -246,13 +249,17 @@  discard block
 block discarded – undo
246 249
 		if ( 'mystery' === $default ) {
247 250
 			$default = $host . '/avatar/ad516503a11cd5ca435acc9bb6523536?s=' . $size;
248 251
 			// ad516503a11cd5ca435acc9bb6523536 == md5('[email protected]')
249
-		} else if ( 'blank' === $default ) {
252
+		}
253
+		else if ( 'blank' === $default ) {
250 254
 			$default = $email ? 'blank' : includes_url( 'images/blank.gif' );
251
-		} else if ( ! empty( $email ) && 'gravatar_default' === $default ) {
255
+		}
256
+		else if ( ! empty( $email ) && 'gravatar_default' === $default ) {
252 257
 			$default = '';
253
-		} else if ( 'gravatar_default' === $default ) {
258
+		}
259
+		else if ( 'gravatar_default' === $default ) {
254 260
 			$default = $host . '/avatar/?s=' . $size;
255
-		} else if ( empty( $email ) && ! strstr( $default, 'http://' ) ) {
261
+		}
262
+		else if ( empty( $email ) && ! strstr( $default, 'http://' ) ) {
256 263
 			$default = $host . '/avatar/?d=' . $default . '&s=' . $size;
257 264
 		}
258 265
 
@@ -269,10 +276,12 @@  discard block
 block discarded – undo
269 276
 
270 277
 		if ( is_ssl() ) {
271 278
 			$host = 'https://secure.gravatar.com';
272
-		} else {
279
+		}
280
+		else {
273 281
 			if ( ! empty( $email_hash ) ) {
274 282
 				$host = sprintf( 'http://%d.gravatar.com', (hexdec( $email_hash[0] ) % 2) );
275
-			} else {
283
+			}
284
+			else {
276 285
 				$host = 'http://0.gravatar.com';
277 286
 			}
278 287
 		}
Please login to merge, or discard this patch.