@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | * @param Argument $argument |
| 56 | 56 | * @return static |
| 57 | 57 | */ |
| 58 | - public function argument( Argument $argument ) { |
|
| 59 | - $this->arguments[ $argument->get_key() ] = $argument; |
|
| 58 | + public function argument(Argument $argument) { |
|
| 59 | + $this->arguments[$argument->get_key()] = $argument; |
|
| 60 | 60 | return $this; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | * @param string $key |
| 67 | 67 | * @return bool |
| 68 | 68 | */ |
| 69 | - public function has_argument( string $key ): bool { |
|
| 70 | - return \array_key_exists( $key, $this->arguments ); |
|
| 69 | + public function has_argument(string $key): bool { |
|
| 70 | + return \array_key_exists($key, $this->arguments); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * @param callable(\WP_REST_Request): bool $auth_callback |
| 77 | 77 | * @return static |
| 78 | 78 | */ |
| 79 | - public function authentication( callable $auth_callback ) { |
|
| 79 | + public function authentication(callable $auth_callback) { |
|
| 80 | 80 | $this->authentication[] = $auth_callback; |
| 81 | 81 | return $this; |
| 82 | 82 | } |