Edit File by line
/home/barbar84/www/wp-conte.../plugins/wordpres.../src/exceptio...
File: missing-method.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Exceptions;
[2] Fix | Delete
[3] Fix | Delete
use Exception;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Exception to use when a method does not exist.
[7] Fix | Delete
*/
[8] Fix | Delete
class Missing_Method extends Exception {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Creates exception for a method that does not exist in a class.
[12] Fix | Delete
*
[13] Fix | Delete
* @param string $method The method that does not exist.
[14] Fix | Delete
* @param string $class_name The class name.
[15] Fix | Delete
*
[16] Fix | Delete
* @return static Instance of the exception.
[17] Fix | Delete
*/
[18] Fix | Delete
public static function for_class( $method, $class_name ) {
[19] Fix | Delete
return new static(
[20] Fix | Delete
\sprintf(
[21] Fix | Delete
/* translators: %1$s expands to the method name. %2$s expands to the class name */
[22] Fix | Delete
\__( 'Method %1$s() does not exist in class %2$s', 'wordpress-seo' ),
[23] Fix | Delete
$method,
[24] Fix | Delete
$class_name
[25] Fix | Delete
)
[26] Fix | Delete
);
[27] Fix | Delete
}
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function