Skip to content

Commit

Permalink
QA: typo fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
daschl committed Feb 3, 2012
1 parent e833b72 commit 7ecf90a
Show file tree
Hide file tree
Showing 20 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion action/Request.php
Expand Up @@ -354,7 +354,7 @@ protected function _parseAccept() {
* @see lithium\action\Request::env()
* @see lithium\net\http\Media::type()
* @see lithium\net\http\Router
* @param string $key A prefixed key indiciating what part of the request data the requested
* @param string $key A prefixed key indicating what part of the request data the requested
* value should come from, and the name of the value to retrieve, in lower case.
* @return string Returns the value of a GET, POST, routing or environment variable, or an
* HTTP header or method name.
Expand Down
2 changes: 1 addition & 1 deletion console/Dispatcher.php
Expand Up @@ -167,7 +167,7 @@ public static function applyRules($params) {
/**
* Calls a given command with the appropriate action.
*
* This method is reponsible for calling a `$callable` command and returning its result.
* This method is responsible for calling a `$callable` command and returning its result.
*
* @param string $callable The callable command.
* @param string $request The associated `Request` object.
Expand Down
2 changes: 1 addition & 1 deletion console/Response.php
Expand Up @@ -35,7 +35,7 @@ class Response extends \lithium\core\Object {
* Status code, most often used for setting an exit status.
*
* It should be expected that only status codes in the range of 0-255
* can be properly evalutated.
* can be properly evaluated.
*
* @var integer
* @see lithium\console\Command
Expand Down
2 changes: 1 addition & 1 deletion console/command/Help.php
Expand Up @@ -300,7 +300,7 @@ protected function _renderUsage($command, $method, $properties = array()) {
/**
* Output the formatted command description.
*
* @param array $info Info from insepcting the class of the command.
* @param array $info Info from inspecting the class of the command.
* @return void
*/
protected function _renderDescription($info) {
Expand Down
4 changes: 2 additions & 2 deletions console/command/Library.php
Expand Up @@ -466,7 +466,7 @@ public function push($name = null) {

if (!file_exists("phar://{$file}/config/{$name}.json")) {
$this->error(array(
"The forumla for {$name} is missing.", "Run li3 library formulate {$name}"
"The formula for {$name} is missing.", "Run li3 library formulate {$name}"
));
return false;
}
Expand All @@ -477,7 +477,7 @@ public function push($name = null) {
);
if (!$isValid) {
$this->error(array(
"The forumla for {$name} is not valid.", "Run li3 library formulate {$name}"
"The formula for {$name} is not valid.", "Run li3 library formulate {$name}"
));
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion net/http/Media.php
Expand Up @@ -166,7 +166,7 @@ public static function to($format, $data, array $options = array()) {
*
* - `'<prefix>:<key>'` _string_: This type of assertion can be used to match against arbitrary
* information in the request, including headers (i.e. `'http:user_agent'`), environment
* varialbes (i.e. `'env:home'`), GET and POST data (i.e. `'query:foo'` or `'data:foo'`,
* variables (i.e. `'env:home'`), GET and POST data (i.e. `'query:foo'` or `'data:foo'`,
* respectively), and the HTTP method (`'http:method'`) of the request. For more information
* on possible keys, see `lithium\action\Request::get()`.
*
Expand Down
2 changes: 1 addition & 1 deletion security/auth/adapter/Form.php
Expand Up @@ -311,7 +311,7 @@ protected function _init() {

/**
* Called by the `Auth` class to run an authentication check against a model class using the
* credientials in a data container (a `Request` object), and returns an array of user
* credentials in a data container (a `Request` object), and returns an array of user
* information on success, or `false` on failure.
*
* @param object $credentials A data container which wraps the authentication credentials used
Expand Down
2 changes: 1 addition & 1 deletion security/auth/adapter/Http.php
Expand Up @@ -45,7 +45,7 @@ public function __construct(array $config = array()) {

/**
* Called by the `Auth` class to run an authentication check against the HTTP data using the
* credientials in a data container (a `Request` object), and returns an array of user
* credentials in a data container (a `Request` object), and returns an array of user
* information on success, or `false` on failure.
*
* @param object $request A env container which wraps the authentication credentials used
Expand Down
4 changes: 2 additions & 2 deletions storage/Cache.php
Expand Up @@ -10,7 +10,7 @@

/**
* The `Cache` static class provides a consistent interface to configure and utilize the different
* cache adatpers included with Lithium, as well as your own adapters.
* cache adapters included with Lithium, as well as your own adapters.
*
* The Cache layer of Lithium inherits from the common `Adaptable` class, which provides the generic
* configuration setting & retrieval logic, as well as the logic required to locate & instantiate
Expand Down Expand Up @@ -276,7 +276,7 @@ public static function clean($name) {
}

/**
* Remove all cache keys from specified confiuration.
* Remove all cache keys from specified configuration.
*
* This method is non-filterable.
*
Expand Down
2 changes: 1 addition & 1 deletion storage/Session.php
Expand Up @@ -172,7 +172,7 @@ public static function write($key, $value = null, array $options = array()) {
* of the configuration (i.e. `'default'`) here.
* - `'strategies'` _boolean_: Indicates whether or not a configuration's applied
* strategy classes should be enabled for this operation. Defaults to `true`.
* @return boolean Returns `true` on sucessful delete, or `false` on failure.
* @return boolean Returns `true` on successful delete, or `false` on failure.
* @filter This method may be filtered.
*/
public static function delete($key, array $options = array()) {
Expand Down
2 changes: 1 addition & 1 deletion storage/cache/adapter/File.php
Expand Up @@ -24,7 +24,7 @@
* appropriate cache adapter.
*
* This adapter does *not* provide increment/decrement functionality. For such
* functionality, please use a more approrpiate cache adapter.
* functionality, please use a more appropriate cache adapter.
*
* This adapter does *not* allow multi-key operations for any methods.
*
Expand Down
2 changes: 1 addition & 1 deletion storage/session/strategy/Hmac.php
Expand Up @@ -64,7 +64,7 @@ public function __construct(array $config = array()) {
/**
* Write strategy method.
* Adds an HMAC signature to the data. Note that this will transform the
* passed `$data` to an array, and add a `__signature` key with the HMAC-caculated
* passed `$data` to an array, and add a `__signature` key with the HMAC-calculated
* value.
*
* @see lithium\storage\Session
Expand Down
2 changes: 1 addition & 1 deletion template/View.php
Expand Up @@ -50,7 +50,7 @@
*
* _Note_: This is easily adapted for XML templating.
*
* Another example, this time of something that could be used in an appliation
* Another example, this time of something that could be used in an application
* error handler:
*
* {{{
Expand Down
6 changes: 3 additions & 3 deletions template/helper/Form.php
Expand Up @@ -103,7 +103,7 @@ class Form extends \lithium\template\Helper {
*
* - schema(): Returns an array defining the objects fields and their data types.
* - data(): Returns an associative array of the data that this object represents.
* - errors(): Returns an associatie array of validation errors for the current data set, where
* - errors(): Returns an associate array of validation errors for the current data set, where
* the keys match keys from `schema()`, and the values are either strings (in cases
* where a field only has one error) or an array (in case of multiple errors),
*
Expand Down Expand Up @@ -183,7 +183,7 @@ protected function _init() {
* $this->form->config(array('label' => array('class' => 'foo')));
* }}}
*
* Note that this can be overridden on a case-by-case basis, and when overridding, values are
* Note that this can be overridden on a case-by-case basis, and when overriding, values are
* not merged or combined. Therefore, if you wanted a particular `<label />` to have both `foo`
* and `bar` as classes, you would have to specify `'class' => 'foo bar'`.
*
Expand Down Expand Up @@ -412,7 +412,7 @@ public function field($name, array $options = array()) {
$wrap = $options['wrap'];
$type = $options['type'];
$list = $options['list'];
$tempalte = $options['template'];
$template = $options['template'];
$notText = $template == 'field' && $type != 'text';

if ($notText && $this->_context->strings('field-' . $type)) {
Expand Down
2 changes: 1 addition & 1 deletion template/helper/Html.php
Expand Up @@ -126,7 +126,7 @@ public function charset($encoding = null) {
*
* @param string $title The content to be wrapped by an `<a />` tag.
* @param mixed $url Can be a string representing a URL relative to the base of your Lithium
* applcation, an external URL (starts with `'http://'` or `'https://'`), an anchor
* application, an external URL (starts with `'http://'` or `'https://'`), an anchor
* name starting with `'#'` (i.e. `'#top'`), or an array defining a set of request
* parameters that should be matched against a route in `Router`.
* @param array $options Array of HTML s and other options.
Expand Down
2 changes: 1 addition & 1 deletion template/readme.wiki
Expand Up @@ -9,7 +9,7 @@ This is where a lot of confusion comes in, because it is commonly misunderstood
that Lithium depends on `short_open_tags`, however, that's not the case. The
contents of a view are processed through a [ tokenizer](template/view/Compiler) before
it is included by PHP. The file is then `compiled` into the final PHP+HTML (or whatever
other content type that is requsted), which is then passed off to be fully rendered
other content type that is requested), which is then passed off to be fully rendered
by the two-step view to its final form.

See the PHP [ manual](http://php.net/manual/en/book.tokenizer.php) to learn more about tokens.
Expand Down
2 changes: 1 addition & 1 deletion template/view/Renderer.php
Expand Up @@ -459,7 +459,7 @@ public function data() {
* rendered within a template, or an element or template could set a variable which would be
* made available in the layout.
*
* @param array $data An arroy of key/value pairs representing local variables that should be
* @param array $data An array of key/value pairs representing local variables that should be
* made available to all other templates rendered in this rendering context.
* @return void
*/
Expand Down
4 changes: 2 additions & 2 deletions test/Unit.php
Expand Up @@ -280,7 +280,7 @@ public function assertIdentical($expected, $result, $message = false) {
}

/**
* Checks that the result evalutes to true.
* Checks that the result evaluates to true.
*
* For example:
* {{{
Expand All @@ -303,7 +303,7 @@ public function assertTrue($result, $message = '{:message}') {
}

/**
* Checks that the result evalutes to false.
* Checks that the result evaluates to false.
*
* For example:
* {{{
Expand Down
2 changes: 1 addition & 1 deletion test/filter/Affected.php
Expand Up @@ -77,7 +77,7 @@ public static function analyze($report, array $options = array()) {
*
* @param string $dependency The class name to use as a dependency.
* @param string $exclude Regex path exclusion filter.
* @return array Classes having a direct dependency on `$dependency`. May cotain duplicates.
* @return array Classes having a direct dependency on `$dependency`. May contain duplicates.
*/
protected static function _affected($dependency, $exclude = null) {
$exclude = $exclude ?: '/(tests|webroot|resources|libraries|plugins)/';
Expand Down
2 changes: 1 addition & 1 deletion tests/mocks/storage/session/adapter/MockPhp.php
Expand Up @@ -5,7 +5,7 @@
class MockPhp extends \lithium\storage\session\adapter\Php {

/**
* Overriden method for testing.
* Overridden method for testing.
*
* @return boolean false.
*/
Expand Down

2 comments on commit 7ecf90a

@daschl
Copy link
Contributor Author

@daschl daschl commented on 7ecf90a Feb 3, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHPStorm's dictionary checks really pay off. Nice tool!

@Howard3
Copy link
Member

@Howard3 Howard3 commented on 7ecf90a Feb 3, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hah nice

Please sign in to comment.