cs corrections, bool to boolean and int to integer.

This commit is contained in:
euromark 2013-09-17 14:44:34 +02:00
parent 5ec9b145bf
commit 382f75dbfc
38 changed files with 89 additions and 89 deletions

View file

@ -155,7 +155,7 @@ class IniReader implements ConfigReaderInterface {
* @param string $key The identifier to write to. If the key has a . it will be treated
* as a plugin prefix.
* @param array $data The data to convert to ini file.
* @return int Bytes saved.
* @return integer Bytes saved.
*/
public function dump($key, $data) {
$result = array();

View file

@ -83,7 +83,7 @@ class PhpReader implements ConfigReaderInterface {
* @param string $key The identifier to write to. If the key has a . it will be treated
* as a plugin prefix.
* @param array $data Data to dump.
* @return int Bytes saved.
* @return integer Bytes saved.
*/
public function dump($key, $data) {
$contents = '<?php' . "\n" . '$config = ' . var_export($data, true) . ';';

View file

@ -39,7 +39,7 @@ class ConsoleInput {
* 2. Handle we are attached to must be stdin.
* Allows rich editing with arrow keys and history when inputting a string.
*
* @var bool
* @var boolean
*/
protected $_canReadline;
@ -73,7 +73,7 @@ class ConsoleInput {
* Checks if data is available on the stream
*
* @param integer $timeout An optional time to wait for data
* @return bool True for data available, false otherwise
* @return boolean True for data available, false otherwise
*/
public function dataAvailable($timeout = 0) {
$readFds = array($this->_input);

View file

@ -718,7 +718,7 @@ class Controller extends Object implements CakeEventListener {
*
* @param string $modelClass Name of model class to load
* @param integer|string $id Initial ID the instanced model class should have
* @return bool True if the model was found
* @return boolean True if the model was found
* @throws MissingModelException if the model class cannot be found.
*/
public function loadModel($modelClass = null, $id = null) {

View file

@ -32,7 +32,7 @@ class CakeEventManager {
/**
* The default priority queue value for new, attached listeners
*
* @var int
* @var integer
*/
public static $defaultPriority = 10;

View file

@ -146,7 +146,7 @@ class SyslogLog extends BaseLog {
*
* @param integer $priority
* @param string $message
* @return bool
* @return boolean
*/
protected function _write($priority, $message) {
return syslog($priority, $message);

View file

@ -38,7 +38,7 @@ class DatabaseSession implements CakeSessionHandlerInterface {
/**
* Number of seconds to mark the session as expired
*
* @var int
* @var integer
*/
protected $_timeout;

View file

@ -526,7 +526,7 @@ class ModelValidator implements ArrayAccess, IteratorAggregate, Countable {
/**
* Returns the number of fields having validation rules
*
* @return int
* @return integer
*/
public function count() {
$this->_parseRules();

View file

@ -359,7 +359,7 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
/**
* Returns the number of rules in this set
*
* @return int
* @return integer
*/
public function count() {
return count($this->_rules);

View file

@ -848,7 +848,7 @@ class CakeResponse {
* If called with no parameters, this function will return the current max-age value if any
*
* @param integer $seconds if null, the method will return the current s-maxage value
* @return int
* @return integer
*/
public function sharedMaxAge($seconds = null) {
if ($seconds !== null) {
@ -868,7 +868,7 @@ class CakeResponse {
* If called with no parameters, this function will return the current max-age value if any
*
* @param integer $seconds if null, the method will return the current max-age value
* @return int
* @return integer
*/
public function maxAge($seconds = null) {
if ($seconds !== null) {

View file

@ -31,7 +31,7 @@ abstract class DispatcherFilter implements CakeEventListener {
/**
* Default priority for all methods in this filter
*
* @var int
* @var integer
*/
public $priority = 10;

View file

@ -31,7 +31,7 @@ class AssetDispatcher extends DispatcherFilter {
* Default priority for all methods in this filter
* This filter should run before the request gets parsed by router
*
* @var int
* @var integer
*/
public $priority = 9;

View file

@ -27,7 +27,7 @@ class CacheDispatcher extends DispatcherFilter {
* Default priority for all methods in this filter
* This filter should run before the request gets parsed by router
*
* @var int
* @var integer
*/
public $priority = 9;

View file

@ -778,7 +778,7 @@ class Router {
* or an array specifying any of the following: 'controller', 'action',
* and/or 'plugin', in addition to named arguments (keyed array elements),
* and standard URL arguments (indexed array elements)
* @param bool|array $full If (bool) true, the full base URL will be prepended to the result.
* @param boolean|array $full If (bool) true, the full base URL will be prepended to the result.
* If an array accepts the following keys
* - escape - used when making URLs embedded in html escapes query string '&'
* - full - if true the full base URL will be prepended.

View file

@ -44,7 +44,7 @@ class FixtureTaskTest extends CakeTestCase {
/**
* Whether backup global state for each test method or not
*
* @var bool false
* @var boolean
*/
public $backupGlobals = false;

View file

@ -42,7 +42,7 @@ class AclNodeTwoTestBase extends AclNode {
/**
* cacheSources property
*
* @var bool false
* @var boolean
*/
public $cacheSources = false;
}
@ -129,7 +129,7 @@ class PermissionTwoTest extends Permission {
/**
* cacheQueries property
*
* @var bool false
* @var boolean
*/
public $cacheQueries = false;

View file

@ -33,7 +33,7 @@ class TestAuthComponent extends AuthComponent {
/**
* testStop property
*
* @var bool false
* @var boolean
*/
public $testStop = false;
@ -271,7 +271,7 @@ class AuthComponentTest extends CakeTestCase {
/**
* initialized property
*
* @var bool false
* @var boolean
*/
public $initialized = false;

View file

@ -38,7 +38,7 @@ class DbAclNodeTestBase extends AclNode {
/**
* cacheSources property
*
* @var bool false
* @var boolean
*/
public $cacheSources = false;
}
@ -104,7 +104,7 @@ class DbPermissionTest extends CakeTestModel {
/**
* cacheQueries property
*
* @var bool false
* @var boolean
*/
public $cacheQueries = false;

View file

@ -27,7 +27,7 @@ class TranslateBehaviorTest extends CakeTestCase {
/**
* autoFixtures property
*
* @var bool false
* @var boolean
*/
public $autoFixtures = false;

View file

@ -32,7 +32,7 @@ class TreeBehaviorAfterTest extends CakeTestCase {
/**
* Whether backup global state for each test method or not
*
* @var bool false
* @var boolean
*/
public $backupGlobals = false;

View file

@ -34,7 +34,7 @@ class TreeBehaviorNumberTest extends CakeTestCase {
/**
* Whether backup global state for each test method or not
*
* @var bool false
* @var boolean
*/
public $backupGlobals = false;

View file

@ -34,7 +34,7 @@ class TreeBehaviorScopedTest extends CakeTestCase {
/**
* Whether backup global state for each test method or not
*
* @var bool false
* @var boolean
*/
public $backupGlobals = false;

View file

@ -35,7 +35,7 @@ class TreeBehaviorUuidTest extends CakeTestCase {
/**
* Whether backup global state for each test method or not
*
* @var bool false
* @var boolean
*/
public $backupGlobals = false;

View file

@ -35,7 +35,7 @@ class MysqlTest extends CakeTestCase {
/**
* autoFixtures property
*
* @var bool false
* @var boolean
*/
public $autoFixtures = false;

View file

@ -69,7 +69,7 @@ class PostgresTestModel extends Model {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -150,7 +150,7 @@ class PostgresClientTestModel extends Model {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;

View file

@ -118,7 +118,7 @@ class SqlserverTestModel extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -184,7 +184,7 @@ class SqlserverClientTestModel extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -250,7 +250,7 @@ class SqlserverTest extends CakeTestCase {
/**
* autoFixtures property
*
* @var bool false
* @var boolean
*/
public $autoFixtures = false;

View file

@ -116,7 +116,7 @@ class DboSourceTest extends CakeTestCase {
/**
* autoFixtures property
*
* @var bool false
* @var boolean
*/
public $autoFixtures = false;

View file

@ -32,14 +32,14 @@ abstract class BaseModelTest extends CakeTestCase {
/**
* autoFixtures property
*
* @var bool false
* @var boolean
*/
public $autoFixtures = false;
/**
* Whether backup global state for each test method or not
*
* @var bool false
* @var boolean
*/
public $backupGlobals = false;

View file

@ -68,7 +68,7 @@ class Test extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -105,7 +105,7 @@ class TestAlias extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -141,7 +141,7 @@ class TestValidate extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -215,7 +215,7 @@ class User extends CakeTestModel {
/**
* beforeFind() callback used to run ContainableBehaviorTest::testLazyLoad()
*
* @return bool
* @return boolean
* @throws Exception
*/
public function beforeFind($queryData) {
@ -278,7 +278,7 @@ class Article extends CakeTestModel {
/**
* beforeSaveReturn property
*
* @var bool true
* @var boolean
*/
public $beforeSaveReturn = true;
@ -2105,7 +2105,7 @@ class TheVoid extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
}
@ -2127,7 +2127,7 @@ class ValidationTest1 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -2213,7 +2213,7 @@ class ValidationTest2 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -3079,7 +3079,7 @@ class TranslatedItem extends CakeTestModel {
/**
* cacheQueries property
*
* @var bool false
* @var boolean
*/
public $cacheQueries = false;
@ -3116,7 +3116,7 @@ class TranslatedItem2 extends CakeTestModel {
/**
* cacheQueries property
*
* @var bool false
* @var boolean
*/
public $cacheQueries = false;
@ -3160,7 +3160,7 @@ class TranslatedItemWithTable extends CakeTestModel {
/**
* cacheQueries property
*
* @var bool false
* @var boolean
*/
public $cacheQueries = false;
@ -3234,7 +3234,7 @@ class TranslatedArticle extends CakeTestModel {
/**
* cacheQueries property
*
* @var bool false
* @var boolean
*/
public $cacheQueries = false;
@ -3536,7 +3536,7 @@ class TestModel extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -3611,7 +3611,7 @@ class TestModel2 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
}
@ -3633,7 +3633,7 @@ class TestModel3 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
}
@ -3662,7 +3662,7 @@ class TestModel4 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -3746,7 +3746,7 @@ class TestModel4TestModel7 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -3791,7 +3791,7 @@ class TestModel5 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -3859,7 +3859,7 @@ class TestModel6 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -3919,7 +3919,7 @@ class TestModel7 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -3966,7 +3966,7 @@ class TestModel8 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4027,7 +4027,7 @@ class TestModel9 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4088,7 +4088,7 @@ class Level extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4147,7 +4147,7 @@ class Group extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4207,7 +4207,7 @@ class User2 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4279,7 +4279,7 @@ class Category2 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4362,7 +4362,7 @@ class Article2 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4434,7 +4434,7 @@ class CategoryFeatured2 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4482,7 +4482,7 @@ class Featured2 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4547,7 +4547,7 @@ class Comment2 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4594,7 +4594,7 @@ class ArticleFeatured2 extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -4667,7 +4667,7 @@ class MysqlTestModel extends Model {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;

View file

@ -1052,7 +1052,7 @@ class CakeRequestTest extends CakeTestCase {
* Helper function for testing callbacks.
*
* @param $request
* @return bool
* @return boolean
*/
public function detectCallback($request) {
return (bool)$request->return;

View file

@ -341,7 +341,7 @@ class SomePostsController extends AppController {
/**
* autoRender property
*
* @var bool false
* @var boolean
*/
public $autoRender = false;

View file

@ -30,7 +30,7 @@ class ClassRegisterModel extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
}

View file

@ -60,7 +60,7 @@ class SanitizeTest extends CakeTestCase {
/**
* autoFixtures property
*
* @var bool false
* @var boolean
*/
public $autoFixtures = false;

View file

@ -84,7 +84,7 @@ class XmlTest extends CakeTestCase {
/**
* autoFixtures property
*
* @var bool false
* @var boolean
*/
public $autoFixtures = false;

View file

@ -53,7 +53,7 @@ class Contact extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -144,7 +144,7 @@ class ContactTagsContact extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -209,7 +209,7 @@ class ContactTag extends Model {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -236,7 +236,7 @@ class UserForm extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -276,7 +276,7 @@ class OpenidUrl extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -331,7 +331,7 @@ class ValidateUser extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -380,7 +380,7 @@ class ValidateProfile extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -439,7 +439,7 @@ class ValidateItem extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -488,7 +488,7 @@ class TestMail extends CakeTestModel {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;

View file

@ -33,7 +33,7 @@ class HelperTestPost extends Model {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -73,7 +73,7 @@ class HelperTestComment extends Model {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -107,7 +107,7 @@ class HelperTestTag extends Model {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;
@ -138,7 +138,7 @@ class HelperTestPostsTag extends Model {
/**
* useTable property
*
* @var bool false
* @var boolean
*/
public $useTable = false;

View file

@ -44,7 +44,7 @@ abstract class ObjectCollection {
/**
* Default object priority. A non zero integer.
*
* @var int
* @var integer
*/
public $defaultPriority = 10;

View file

@ -1739,7 +1739,7 @@ class FormHelper extends AppHelper {
* @param string $title The content to be wrapped by <a> tags.
* @param string|array $url Cake-relative URL or array of URL parameters, or external URL (starts with http://)
* @param array $options Array of HTML attributes.
* @param bool|string $confirmMessage JavaScript confirmation message.
* @param boolean|string $confirmMessage JavaScript confirmation message.
* @return string An `<a />` element.
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::postLink
*/