Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/zoninator_rest/class-zoninator-rest-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Zoninator_REST_Controller extends WP_REST_Controller implements Zoninator_
private $routes = array();

/**
* Optional, an enviromnent.
* Optional, an environment.
*
* @var null|Zoninator_REST_Environment
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/zoninator_rest/class-zoninator-rest-environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function get( $name ) {
* Filter the variable value
*
* @param mixed $value The value.
* @param Zoninator_REST_Environment $this The Environemnt.
* @param Zoninator_REST_Environment $this The Environment.
* @param string $name The var name.
*
* @return mixed
Expand Down
4 changes: 2 additions & 2 deletions lib/zoninator_rest/class-zoninator-rest-expect.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ static function that( $cond, $fail_message ) {
*
* @param string $method The method name.
*
* @throws Zoninator_REST_Exception To Overrride this.
* @throws Zoninator_REST_Exception To Override this.
*/
static function should_override( $method ) {
throw new Zoninator_REST_Exception( $method . ' should be overriden' );
throw new Zoninator_REST_Exception( $method . ' should be overridden' );
}
}
2 changes: 1 addition & 1 deletion lib/zoninator_rest/class-zoninator-rest-model.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ protected function run_field_validations( $field_declaration ) {
}

/**
* Prepare the value associated with this declaraton for output.
* Prepare the value associated with this declaration for output.
*
* @param Zoninator_REST_Field_Declaration $field_declaration The declaration to use.
* @return mixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function bool_to_bit( $value ) {
}

/**
* Covert bit to bool
* Convert bit to bool
*
* @param mixed $value Val.
* @return bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function bool_to_bit( $value ) {
}

/**
* Covert bit to bool
* Convert bit to bool
*
* @param mixed $value Val.
* @return bool
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/class-zoninator-api-controller-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function assertResponseStatus( $response, $status_code ) {
* Have WP_REST_Server Dispatch an HTTP request
*
* @param string $endpoint The Endpoint.
* @param string $method Http mehod.
* @param string $method Http method.
* @param array $args Any Data/Args.
* @return WP_REST_Response
*/
Expand Down
2 changes: 1 addition & 1 deletion zoninator.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ function admin_page_zone_edit( $zone = null ) {
</div>
<?php endif; ?>

<?php // Ideally, we should seperate nonces for each action. But this will do for simplicity. ?>
<?php // Ideally, we should separate nonces for each action. But this will do for simplicity. ?>
<?php wp_nonce_field( $this->_get_nonce_key( $this->zone_ajax_nonce_action ), $this->_get_nonce_key( $this->zone_ajax_nonce_action ), false ); ?>
</div>

Expand Down