Navigation Menu

Skip to content

Commit

Permalink
whitespace coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Jul 5, 2013
1 parent 06fc8db commit c989624
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 28 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Controller/Component/Auth/BlowfishAuthenticate.php
Expand Up @@ -34,9 +34,9 @@
* For initial password hashing/creation see Security::hash(). Other than how the password is initially hashed,
* BlowfishAuthenticate works exactly the same way as FormAuthenticate.
*
* @package Cake.Controller.Component.Auth
* @since CakePHP(tm) v 2.3
* @see AuthComponent::$authenticate
* @package Cake.Controller.Component.Auth
* @since CakePHP(tm) v 2.3
* @see AuthComponent::$authenticate
*/
class BlowfishAuthenticate extends FormAuthenticate {

Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Core/Object.php
Expand Up @@ -112,7 +112,7 @@ public function requestAction($url, $extra = array()) {
*
* @param string $method Name of the method to call
* @param array $params Parameter list to use when calling $method
* @return mixed Returns the result of the method call
* @return mixed Returns the result of the method call
*/
public function dispatchMethod($method, $params = array()) {
switch (count($params)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Model/Behavior/ContainableBehavior.php
Expand Up @@ -88,7 +88,7 @@ public function setup(Model $Model, $settings = array()) {
* )));
* }}}
*
* @param Model $Model Model using the behavior
* @param Model $Model Model using the behavior
* @param array $query Query parameters as set by cake
* @return array
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Model/Behavior/TreeBehavior.php
Expand Up @@ -105,7 +105,7 @@ public function afterSave(Model $Model, $created) {
/**
* Runs before a find() operation
*
* @param Model $Model Model using the behavior
* @param Model $Model Model using the behavior
* @param array $query Query parameters as set by cake
* @return array
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Database/Postgres.php
Expand Up @@ -328,7 +328,7 @@ public function resetSequence($table, $column) {
* @param string|Model $table A string or model class representing the table to be truncated
* @param boolean $reset true for resetting the sequence, false to leave it as is.
* and if 1, sequences are not modified
* @return boolean SQL TRUNCATE TABLE statement, false if not applicable.
* @return boolean SQL TRUNCATE TABLE statement, false if not applicable.
*/
public function truncate($table, $reset = false) {
$table = $this->fullTableName($table, false, false);
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Database/Sqlite.php
Expand Up @@ -227,7 +227,7 @@ public function update(Model $model, $fields = array(), $values = null, $conditi
* primary key, where applicable.
*
* @param string|Model $table A string or model class representing the table to be truncated
* @return boolean SQL TRUNCATE TABLE statement, false if not applicable.
* @return boolean SQL TRUNCATE TABLE statement, false if not applicable.
*/
public function truncate($table) {
$this->_execute('DELETE FROM sqlite_sequence where name=' . $this->startQuote . $this->fullTableName($table, false, false) . $this->endQuote);
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/DboSource.php
Expand Up @@ -2031,7 +2031,7 @@ public function calculate(Model $model, $func, $params = array()) {
* primary key, where applicable.
*
* @param Model|string $table A string or model class representing the table to be truncated
* @return boolean SQL TRUNCATE TABLE statement, false if not applicable.
* @return boolean SQL TRUNCATE TABLE statement, false if not applicable.
*/
public function truncate($table) {
return $this->execute('TRUNCATE TABLE ' . $this->fullTableName($table));
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/CakeTestCase.php
Expand Up @@ -73,7 +73,7 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase {
* If no TestResult object is passed a new one will be created.
* This method is run for each test method in this class
*
* @param PHPUnit_Framework_TestResult $result
* @param PHPUnit_Framework_TestResult $result
* @return PHPUnit_Framework_TestResult
* @throws InvalidArgumentException
*/
Expand Down
3 changes: 2 additions & 1 deletion lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php
Expand Up @@ -372,7 +372,8 @@ protected function _getStackTrace(Exception $e) {
/**
* A test suite started.
*
* @param PHPUnit_Framework_TestSuite $suite
* @param PHPUnit_Framework_TestSuite $suite
* @return void
*/
public function startTestSuite(PHPUnit_Framework_TestSuite $suite) {
if (!$this->_headerSent) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Utility/CakeNumber.php
Expand Up @@ -371,7 +371,7 @@ public static function addFormat($formatName, $options) {
/**
* Getter/setter for default currency
*
* @param string $currency Default currency string used by currency() if $currency argument is not provided
* @param string $currency Default currency string used by currency() if $currency argument is not provided
* @return string Currency
*/
public static function defaultCurrency($currency = null) {
Expand Down
6 changes: 3 additions & 3 deletions lib/Cake/Utility/ClassRegistry.php
Expand Up @@ -203,8 +203,8 @@ public static function init($class, $strict = false) {
/**
* Add $object to the registry, associating it with the name $key.
*
* @param string $key Key for the object in registry
* @param object $object Object to store
* @param string $key Key for the object in registry
* @param object $object Object to store
* @return boolean True if the object was written, false if $key already exists
*/
public static function addObject($key, $object) {
Expand All @@ -220,7 +220,7 @@ public static function addObject($key, $object) {
/**
* Remove object which corresponds to given key.
*
* @param string $key Key of object to remove from registry
* @param string $key Key of object to remove from registry
* @return void
*/
public static function removeObject($key) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper.php
Expand Up @@ -247,7 +247,7 @@ public function __set($name, $value) {
* an array of url parameters. Using an array for URLs will allow you to leverage
* the reverse routing features of CakePHP.
* @param boolean $full If true, the full base URL will be prepended to the result
* @return string Full translated URL with base path.
* @return string Full translated URL with base path.
* @link http://book.cakephp.org/2.0/en/views/helpers.html
*/
public function url($url = null, $full = false) {
Expand Down
8 changes: 4 additions & 4 deletions lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -649,14 +649,14 @@ public function isFieldError($field) {
*
* ### Options:
*
* - `escape` bool Whether or not to html escape the contents of the error.
* - `wrap` mixed Whether or not the error message should be wrapped in a div. If a
* - `escape` bool - Whether or not to html escape the contents of the error.
* - `wrap` mixed - Whether or not the error message should be wrapped in a div. If a
* string, will be used as the HTML tag to use.
* - `class` string The classname for the error message
* - `class` string - The classname for the error message
*
* @param string $field A field name, like "Modelname.fieldname"
* @param string|array $text Error message as string or array of messages.
* If array contains `attributes` key it will be used as options for error container
* If array contains `attributes` key it will be used as options for error container
* @param array $options Rendering options for <div /> wrapper tag
* @return string If there are errors this method returns an error message, otherwise null.
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::error
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/NumberHelper.php
Expand Up @@ -76,7 +76,7 @@ public function __call($method, $params) {
/**
* @see CakeNumber::precision()
*
* @param float $number A floating point number.
* @param float $number A floating point number.
* @param integer $precision The precision of the returned number.
* @return float Formatted float.
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html#NumberHelper::precision
Expand Down
14 changes: 7 additions & 7 deletions lib/Cake/basics.php
Expand Up @@ -233,7 +233,7 @@ function pluginSplit($name, $dotAppend = false, $plugin = null) {
* Print_r convenience function, which prints out <PRE> tags around
* the output of given array. Similar to debug().
*
* @see debug()
* @see debug()
* @param array $var Variable to print out
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#pr
*/
Expand Down Expand Up @@ -281,7 +281,7 @@ function am() {
* IIS, or SCRIPT_NAME in CGI mode). Also exposes some additional custom
* environment information.
*
* @param string $key Environment variable name.
* @param string $key Environment variable name.
* @return string Environment variable setting.
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#env
*/
Expand Down Expand Up @@ -382,11 +382,11 @@ function env($key) {
/**
* Reads/writes temporary data to cache files or session.
*
* @param string $path File path within /tmp to save the file.
* @param mixed $data The data to save to the temporary file.
* @param mixed $expires A valid strtotime string when the data expires.
* @param string $target The target of the cached data; either 'cache' or 'public'.
* @return mixed The contents of the temporary file.
* @param string $path File path within /tmp to save the file.
* @param mixed $data The data to save to the temporary file.
* @param mixed $expires A valid strtotime string when the data expires.
* @param string $target The target of the cached data; either 'cache' or 'public'.
* @return mixed The contents of the temporary file.
* @deprecated Please use Cache::write() instead
*/
function cache($path, $data = null, $expires = '+1 day', $target = 'cache') {
Expand Down

0 comments on commit c989624

Please sign in to comment.