| @@ -34,9 +34,10 @@ | ||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Returns the key name of the class. |
| 37 | 37 | * |
| 38 | - * @throws \Exception If the `get_name` method is not implemented. | |
| 38 | + * @return string | |
| 39 | + * @throws \Exception | |
| 39 | 40 | */ |
| 40 | 41 | public static function get_name() { |
| 41 | 42 | throw new \Exception( 'You must implements `get_name` static method in ' . static::class ); |
| 42 | 43 | } |
| @@ -44,9 +45,9 @@ | ||
| 44 | 45 | /** |
| 45 | 46 | * @param $post_id |
| 46 | 47 | * |
| 47 | 48 | * @return string |
| 48 | - * @throws \Exception If the `get_name` method is not implemented. | |
| 49 | + * @throws \Exception | |
| 49 | 50 | */ |
| 50 | 51 | public static function get_url( $post_id ) { |
| 51 | 52 | return Render_Mode_Manager::get_base_url( $post_id, static::get_name() ); |
| 52 | 53 | } |
| @@ -66,14 +67,18 @@ | ||
| 66 | 67 | |
| 67 | 68 | /** |
| 68 | 69 | * By default do not do anything. |
| 69 | 70 | */ |
| 70 | - protected function enqueue_scripts() {} | |
| 71 | + protected function enqueue_scripts() { | |
| 72 | + // | |
| 73 | + } | |
| 71 | 74 | |
| 72 | 75 | /** |
| 73 | 76 | * By default do not do anything. |
| 74 | 77 | */ |
| 75 | - protected function enqueue_styles() {} | |
| 78 | + protected function enqueue_styles() { | |
| 79 | + // | |
| 80 | + } | |
| 76 | 81 | |
| 77 | 82 | /** |
| 78 | 83 | * Check if the current user has permissions for the current render mode. |
| 79 | 84 | * |