Skip to content

Commit

Permalink
typos correction
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Jul 26, 2014
1 parent 0528600 commit ac1d2b9
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Console/Command/Task/FixtureTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ protected function _generateRecords(Table $table, $recordCount = 1) {
}

/**
* Convert a $records array into a a string.
* Convert a $records array into a string.
*
* @param array $records Array of records to be converted to string
* @return string A string value of the $records array.
Expand Down
8 changes: 4 additions & 4 deletions src/Console/ConsoleIo.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function level($level = null) {
/**
* Output at the verbose level.
*
* @param string|array $message A string or a an array of strings to output
* @param string|array $message A string or an array of strings to output
* @param int $newlines Number of newlines to append
* @return int|bool Returns the number of bytes returned from writing to stdout.
*/
Expand All @@ -125,7 +125,7 @@ public function verbose($message, $newlines = 1) {
/**
* Output at all levels.
*
* @param string|array $message A string or a an array of strings to output
* @param string|array $message A string or an array of strings to output
* @param int $newlines Number of newlines to append
* @return int|bool Returns the number of bytes returned from writing to stdout.
*/
Expand All @@ -144,7 +144,7 @@ public function quiet($message, $newlines = 1) {
* present in most shells. Using Shell::QUIET for a message means it will always display.
* While using Shell::VERBOSE means it will only display when verbose output is toggled.
*
* @param string|array $message A string or a an array of strings to output
* @param string|array $message A string or an array of strings to output
* @param int $newlines Number of newlines to append
* @param int $level The message's output level, see above.
* @return int|bool Returns the number of bytes returned from writing to stdout.
Expand Down Expand Up @@ -193,7 +193,7 @@ public function overwrite($message, $newlines = 1, $size = null) {
* Outputs a single or multiple error messages to stderr. If no parameters
* are passed outputs just a newline.
*
* @param string|array $message A string or a an array of strings to output
* @param string|array $message A string or an array of strings to output
* @param int $newlines Number of newlines to append
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Console/ConsoleOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function __construct($stream = 'php://stdout') {
* Outputs a single or multiple messages to stdout. If no parameters
* are passed, outputs just a newline.
*
* @param string|array $message A string or a an array of strings to output
* @param string|array $message A string or an array of strings to output
* @param int $newlines Number of newlines to append
* @return int Returns the number of bytes returned from writing to stdout.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Console/HelpFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HelpFormatter {
protected $_maxOptions = 6;

/**
* Build the help formatter for a an OptionParser
* Build the help formatter for an OptionParser
*
* @param ConsoleOptionParser $parser The option parser help is being generated for.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Shell.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public function wrapText($text, $options = []) {
* present in most shells. Using Shell::QUIET for a message means it will always display.
* While using Shell::VERBOSE means it will only display when verbose output is toggled.
*
* @param string|array $message A string or a an array of strings to output
* @param string|array $message A string or an array of strings to output
* @param int $newlines Number of newlines to append
* @param int $level The message's output level, see above.
* @return int|bool Returns the number of bytes returned from writing to stdout.
Expand All @@ -492,7 +492,7 @@ public function out($message = null, $newlines = 1, $level = Shell::NORMAL) {
* Outputs a single or multiple error messages to stderr. If no parameters
* are passed outputs just a newline.
*
* @param string|array $message A string or a an array of strings to output
* @param string|array $message A string or an array of strings to output
* @param int $newlines Number of newlines to append
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
* CakePHP fires a number of life cycle callbacks during each request. By implementing a method
* you can receive the related events. The available callbacks are:
*
* - `beforeFilter(Event $event)` - Called before the before each action. This is a good place to
* - `beforeFilter(Event $event)` - Called before each action. This is a good place to
* do general logic that applies to all actions.
* - `beforeRender(Event $event)` - Called before the view is rendered.
* - `beforeRedirect(Cake\Event\Event $event $url, Cake\Network\Response $response)` - Called before
Expand Down
2 changes: 1 addition & 1 deletion src/Network/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ public function notModified() {
* parameters are passed, then an array with the current Vary header
* value is returned
*
* @param string|array $cacheVariances a single Vary string or a array
* @param string|array $cacheVariances a single Vary string or an array
* containing the list for variances.
* @return array
*/
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ public function hasBehavior($name) {
}

/**
* Returns a association objected configured for the specified alias if any
* Returns an association object configured for the specified alias if any
*
* @param string $name the alias used for the association
* @return \Cake\ORM\Association
Expand Down
2 changes: 1 addition & 1 deletion src/Utility/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function offset($offset = false, $seek = SEEK_SET) {
}

/**
* Prepares a ASCII string for writing. Converts line endings to the
* Prepares an ASCII string for writing. Converts line endings to the
* correct terminator for the current platform. If Windows, "\r\n" will be used,
* all other platforms will use "\n"
*
Expand Down
2 changes: 1 addition & 1 deletion src/Utility/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ protected static function _createChild($data) {
}

/**
* Returns this XML structure as a array.
* Returns this XML structure as an array.
*
* @param \SimpleXMLElement|\DOMDocument|\DOMNode $obj SimpleXMLElement, DOMDocument or DOMNode instance
* @return array Array representation of the XML structure.
Expand Down

0 comments on commit ac1d2b9

Please sign in to comment.