Code Duplication    Length = 6-6 lines in 2 locations

projects/packages/post-images/src/class-post-images.php 1 location

@@ 699-704 (lines=6) @@
696
			}
697
		}
698
699
		if ( ! $media && $args['fallback_to_avatars'] ) {
700
			$media = self::from_blavatar( $post_id, $args['avatar_size'] );
701
			if ( ! $media ) {
702
				$media = self::from_gravatar( $post_id, $args['avatar_size'], $args['gravatar_default'] );
703
			}
704
		}
705
706
		/**
707
		 * Filters the array of images that would be good for a specific post.

projects/plugins/jetpack/class.jetpack-post-images.php 1 location

@@ 706-711 (lines=6) @@
703
			}
704
		}
705
706
		if ( ! $media && $args['fallback_to_avatars'] ) {
707
			$media = self::from_blavatar( $post_id, $args['avatar_size'] );
708
			if ( ! $media ) {
709
				$media = self::from_gravatar( $post_id, $args['avatar_size'], $args['gravatar_default'] );
710
			}
711
		}
712
713
		/**
714
		 * Filters the array of images that would be good for a specific post.