| @@ -5,10 +5,8 @@ | ||
| 5 | 5 | * @package Timetics |
| 6 | 6 | */ |
| 7 | 7 | namespace Timetics\Base; |
| 8 | 8 | |
| 9 | -defined( 'ABSPATH' ) || exit; | |
| 10 | - | |
| 11 | 9 | use BadMethodCallException; |
| 12 | 10 | use Timetics\Base\PostModel; |
| 13 | 11 | |
| 14 | 12 | /** |
| @@ -44,9 +42,8 @@ | ||
| 44 | 42 | * @throws \BadMethodCallException |
| 45 | 43 | */ |
| 46 | 44 | protected static function throwBadMethodCallException( $method ) { |
| 47 | 45 | throw new BadMethodCallException( sprintf( |
| 48 | - /* translators: %1$s: Class name, %2$s: Method name */ | |
| 49 | - esc_html__( 'Call to undefined method %1$s::%2$s()', 'timetics' ), static::class, esc_html( $method ) | |
| 50 | - ) ); | |
| 46 | + esc_html__( 'Call to undefined method %s::%s()', 'timetics' ), static::class, esc_html( $method ) | |
| 47 | + ) ); | |
| 51 | 48 | } |
| 52 | 49 | } |