| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -namespace ImageOptimizer\Classes; | |
| 3 | +namespace ImageOptimization\Classes; | |
| 4 | 4 | |
| 5 | 5 | if ( ! defined( 'ABSPATH' ) ) { |
| 6 | 6 | exit; // Exit if accessed directly. |
| 7 | 7 | } |
| @@ -118,9 +118,9 @@ | ||
| 118 | 118 | * @access public |
| 119 | 119 | */ |
| 120 | 120 | public function __clone() { |
| 121 | 121 | // Cloning instances of the class is forbidden |
| 122 | - _doing_it_wrong( __FUNCTION__, esc_html__( 'Something went wrong.', 'image-optimizer' ), '1.0.0' ); // @codeCoverageIgnore | |
| 122 | + _doing_it_wrong( __FUNCTION__, esc_html__( 'Something went wrong.', 'image-optimization' ), '1.0.0' ); // @codeCoverageIgnore | |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | 126 | * Wakeup. |
| @@ -129,9 +129,9 @@ | ||
| 129 | 129 | * @access public |
| 130 | 130 | */ |
| 131 | 131 | public function __wakeup() { |
| 132 | 132 | // Unserializing instances of the class is forbidden |
| 133 | - _doing_it_wrong( __FUNCTION__, esc_html__( 'Something went wrong.', 'image-optimizer' ), '1.0.0' ); // @codeCoverageIgnore | |
| 133 | + _doing_it_wrong( __FUNCTION__, esc_html__( 'Something went wrong.', 'image-optimization' ), '1.0.0' ); // @codeCoverageIgnore | |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | 137 | * @access public |
| @@ -232,9 +232,9 @@ | ||
| 232 | 232 | $is_test_mode = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG; |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | if ( ! $relative_url ) { |
| 236 | - $relative_url = $this->get_assets_relative_url() . '/'; | |
| 236 | + $relative_url = $this->get_assets_relative_url(); | |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | $url = $this->get_assets_base_url() . $relative_url . $file_name; |
| 240 | 240 | |
| @@ -283,9 +283,9 @@ | ||
| 283 | 283 | * |
| 284 | 284 | * @return string |
| 285 | 285 | */ |
| 286 | 286 | protected function get_assets_base_url(): string { |
| 287 | - return IMAGE_OPTIMIZER_URL; | |
| 287 | + return IMAGE_OPTIMIZATION_URL; | |
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | /** |
| 291 | 291 | * Get assets relative url |
| @@ -295,13 +295,13 @@ | ||
| 295 | 295 | protected function get_assets_relative_url(): string { |
| 296 | 296 | return 'assets/build/'; |
| 297 | 297 | } |
| 298 | 298 | |
| 299 | - public static function routes_list() : array { | |
| 299 | + public static function routes_list(): array { | |
| 300 | 300 | return []; |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | - public static function component_list() : array { | |
| 303 | + public static function component_list(): array { | |
| 304 | 304 | return []; |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | 307 | /** |
| @@ -331,5 +331,4 @@ | ||
| 331 | 331 | $this->add_route( $route_id, new $class_name() ); |
| 332 | 332 | } |
| 333 | 333 | } |
| 334 | 334 | } |
| 335 | - | |