@@ -25,8 +25,8 @@ abstract class AbstractEndpoint {
2525 * @since 0.1.0
2626 */
2727 public static function init () {
28- $ child = get_called_class ();
29- $ endpoint = new $ child ;
28+ $ child = get_called_class ();
29+ $ endpoint = new $ child() ;
3030 $ endpoint ->create ();
3131 }
3232
@@ -47,7 +47,7 @@ public function create() {
4747 */
4848 private function set_variables () {
4949 $ this ->namespace = apply_filters ( Filters::API_NAMESPACE , 'nolte ' , $ this ->endpoint );
50- $ this ->version = apply_filters ( Filters::API_VERSION , 'v2 ' , $ this ->endpoint );
50+ $ this ->version = apply_filters ( Filters::API_VERSION , 'v2 ' , $ this ->endpoint );
5151 }
5252
5353 /**
@@ -100,10 +100,10 @@ protected function filter_format( $str = '' ) {
100100 */
101101 protected function endpoint_options () {
102102 return [
103- 'methods ' => \WP_REST_Server::READABLE ,
104- 'callback ' => [ $ this , 'endpoint_callback ' ],
103+ 'methods ' => \WP_REST_Server::READABLE ,
104+ 'callback ' => [ $ this , 'endpoint_callback ' ],
105105 'permission_callback ' => '__return_true ' ,
106- 'args ' => $ this ->endpoint_args (),
106+ 'args ' => $ this ->endpoint_args (),
107107 ];
108108 }
109109
0 commit comments