Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

QA: typo fixes.

  • Loading branch information...
commit 7ecf90a5ce8fe3e095fba0c3903887a1177f1f1d 1 parent e833b72
@daschl daschl authored
View
2  action/Request.php
@@ -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.
View
2  console/Dispatcher.php
@@ -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.
View
2  console/Response.php
@@ -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
View
2  console/command/Help.php
@@ -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) {
View
4 console/command/Library.php
@@ -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;
}
@@ -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;
}
View
2  net/http/Media.php
@@ -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()`.
*
View
2  security/auth/adapter/Form.php
@@ -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
View
2  security/auth/adapter/Http.php
@@ -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
View
4 storage/Cache.php
@@ -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
@@ -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.
*
View
2  storage/Session.php
@@ -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()) {
View
2  storage/cache/adapter/File.php
@@ -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.
*
View
2  storage/session/strategy/Hmac.php
@@ -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
View
2  template/View.php
@@ -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:
*
* {{{
View
6 template/helper/Form.php
@@ -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),
*
@@ -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'`.
*
@@ -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)) {
View
2  template/helper/Html.php
@@ -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.
View
2  template/readme.wiki
@@ -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.
View
2  template/view/Renderer.php
@@ -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
*/
View
4 test/Unit.php
@@ -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:
* {{{
@@ -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:
* {{{
View
2  test/filter/Affected.php
@@ -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)/';
View
2  tests/mocks/storage/session/adapter/MockPhp.php
@@ -5,7 +5,7 @@
class MockPhp extends \lithium\storage\session\adapter\Php {
/**
- * Overriden method for testing.
+ * Overridden method for testing.
*
* @return boolean false.
*/

2 comments on commit 7ecf90a

@daschl
Collaborator

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

@Howard3
Collaborator

hah nice

Please sign in to comment.
Something went wrong with that request. Please try again.