• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / ff7fbe548e11c03015095d039b28d1168b751857

16 Feb 2026 01:09AM UTC coverage: 52.986%. Remained the same
ff7fbe548e11c03015095d039b28d1168b751857

push

github

web-flow
Merge pull request #22987 from Yoast/JRF/modernize-use-trailing-commas-in-function-calls

Modernize: use trailing comma in multi-line function call

8482 of 15955 branches covered (53.16%)

Branch coverage included in aggregate %.

396 of 875 new or added lines in 311 files covered. (45.26%)

21 existing lines in 12 files now uncovered.

32462 of 61318 relevant lines covered (52.94%)

48791.32 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/exceptions/missing-method.php
1
<?php
2

3
namespace Yoast\WP\SEO\Exceptions;
4

5
use Exception;
6

7
/**
8
 * Exception to use when a method does not exist.
9
 */
10
class Missing_Method extends Exception {
11

12
        /**
13
         * Creates exception for a method that does not exist in a class.
14
         *
15
         * @param string $method     The method that does not exist.
16
         * @param string $class_name The class name.
17
         *
18
         * @return static Instance of the exception.
19
         */
20
        public static function for_class( $method, $class_name ) {
×
21
                return new static(
×
22
                        \sprintf(
×
23
                                /* translators: %1$s expands to the method name. %2$s expands to the class name */
24
                                \__( 'Method %1$s() does not exist in class %2$s', 'wordpress-seo' ),
×
25
                                $method,
×
NEW
26
                                $class_name,
×
NEW
27
                        ),
×
UNCOV
28
                );
×
29
        }
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc