site/web/app/themes/sage/lib/Algolia/IndexCustomFields.php
Method get
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
final public static function get(
WP_Post $post,
array $attributes = array()
): IndexCustomFields {
switch ($post->post_type) {
Avoid too many return
statements within this method. Open
Open
return new AboutIndexCustomFields(
$attributes,
\CustomPageManager::getAboutPage()->getPage()
);
Avoid too many return
statements within this method. Open
Open
return new NoOpIndexCustomFields($attributes);