mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
doc block corrections
This commit is contained in:
parent
c478d60e79
commit
ba02678693
7 changed files with 14 additions and 12 deletions
|
@ -255,8 +255,8 @@ class CakeLog {
|
||||||
* }}}
|
* }}}
|
||||||
*
|
*
|
||||||
* @param array $levels array
|
* @param array $levels array
|
||||||
* @param bool $append true to append, false to replace
|
* @param boolean $append true to append, false to replace
|
||||||
* @return array active log levels
|
* @return array Active log levels
|
||||||
*/
|
*/
|
||||||
public static function levels($levels = array(), $append = true) {
|
public static function levels($levels = array(), $append = true) {
|
||||||
if (empty(self::$_Collection)) {
|
if (empty(self::$_Collection)) {
|
||||||
|
@ -278,7 +278,7 @@ class CakeLog {
|
||||||
/**
|
/**
|
||||||
* Reset log levels to the original value
|
* Reset log levels to the original value
|
||||||
*
|
*
|
||||||
* @return array default log levels
|
* @return array Default log levels
|
||||||
*/
|
*/
|
||||||
public static function defaultLevels() {
|
public static function defaultLevels() {
|
||||||
self::$_levelMap = self::$_defaultLevels;
|
self::$_levelMap = self::$_defaultLevels;
|
||||||
|
@ -304,7 +304,7 @@ class CakeLog {
|
||||||
* Checks whether $streamName is enabled
|
* Checks whether $streamName is enabled
|
||||||
*
|
*
|
||||||
* @param string $streamName to check
|
* @param string $streamName to check
|
||||||
* @return bool
|
* @return boolean
|
||||||
* @throws CakeLogException
|
* @throws CakeLogException
|
||||||
*/
|
*/
|
||||||
public static function enabled($streamName) {
|
public static function enabled($streamName) {
|
||||||
|
|
|
@ -673,7 +673,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
*
|
*
|
||||||
* @param integer $tldLength Number of segments your tld contains. For example: `example.com` contains 1 tld.
|
* @param integer $tldLength Number of segments your tld contains. For example: `example.com` contains 1 tld.
|
||||||
* While `example.co.uk` contains 2.
|
* While `example.co.uk` contains 2.
|
||||||
* @return array of subdomains.
|
* @return array An array of subdomains.
|
||||||
*/
|
*/
|
||||||
public function subdomains($tldLength = 1) {
|
public function subdomains($tldLength = 1) {
|
||||||
$segments = explode('.', $this->host());
|
$segments = explode('.', $this->host());
|
||||||
|
|
|
@ -498,7 +498,7 @@ class DbAclTest extends CakeTestCase {
|
||||||
* Generates a list of the current aro and aco structures and a grid dump of the permissions that are defined
|
* Generates a list of the current aro and aco structures and a grid dump of the permissions that are defined
|
||||||
* Only designed to work with the db based ACL
|
* Only designed to work with the db based ACL
|
||||||
*
|
*
|
||||||
* @param bool $treesToo
|
* @param boolean $treesToo
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function _debug($printTreesToo = false) {
|
protected function _debug($printTreesToo = false) {
|
||||||
|
|
|
@ -184,7 +184,7 @@ class TestBehavior extends ModelBehavior {
|
||||||
* afterValidate method
|
* afterValidate method
|
||||||
*
|
*
|
||||||
* @param Model $model
|
* @param Model $model
|
||||||
* @param bool $cascade
|
* @param boolean $cascade
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function afterValidate(Model $model) {
|
public function afterValidate(Model $model) {
|
||||||
|
@ -205,7 +205,7 @@ class TestBehavior extends ModelBehavior {
|
||||||
* beforeDelete method
|
* beforeDelete method
|
||||||
*
|
*
|
||||||
* @param Model $model
|
* @param Model $model
|
||||||
* @param bool $cascade
|
* @param boolean $cascade
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function beforeDelete(Model $model, $cascade = true) {
|
public function beforeDelete(Model $model, $cascade = true) {
|
||||||
|
@ -277,7 +277,7 @@ class TestBehavior extends ModelBehavior {
|
||||||
* testMethod method
|
* testMethod method
|
||||||
*
|
*
|
||||||
* @param Model $model
|
* @param Model $model
|
||||||
* @param bool $param
|
* @param boolean $param
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testMethod(Model $model, $param = true) {
|
public function testMethod(Model $model, $param = true) {
|
||||||
|
|
|
@ -2547,7 +2547,7 @@ class NumberTree extends CakeTestModel {
|
||||||
* @param mixed $currentLevel
|
* @param mixed $currentLevel
|
||||||
* @param mixed $parent_id
|
* @param mixed $parent_id
|
||||||
* @param string $prefix
|
* @param string $prefix
|
||||||
* @param bool $hierarchal
|
* @param boolean $hierarchal
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = null, $parentId = null, $prefix = '1', $hierarchal = true) {
|
public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = null, $parentId = null, $prefix = '1', $hierarchal = true) {
|
||||||
|
|
|
@ -33,7 +33,8 @@ class TestCakeRequest extends CakeRequest {
|
||||||
* reConstruct method
|
* reConstruct method
|
||||||
*
|
*
|
||||||
* @param string $url
|
* @param string $url
|
||||||
* @param bool $parseEnvironment
|
* @param boolean $parseEnvironment
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function reConstruct($url = 'some/path', $parseEnvironment = true) {
|
public function reConstruct($url = 'some/path', $parseEnvironment = true) {
|
||||||
$this->_base();
|
$this->_base();
|
||||||
|
@ -2105,6 +2106,7 @@ XML;
|
||||||
/**
|
/**
|
||||||
* Test onlyAllow throwing exception
|
* Test onlyAllow throwing exception
|
||||||
*
|
*
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testOnlyAllowException() {
|
public function testOnlyAllowException() {
|
||||||
$_SERVER['REQUEST_METHOD'] = 'PUT';
|
$_SERVER['REQUEST_METHOD'] = 'PUT';
|
||||||
|
|
|
@ -543,7 +543,7 @@ class FileTest extends CakeTestCase {
|
||||||
/**
|
/**
|
||||||
* getTmpFile method
|
* getTmpFile method
|
||||||
*
|
*
|
||||||
* @param bool $paintSkip
|
* @param boolean $paintSkip
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function _getTmpFile($paintSkip = true) {
|
protected function _getTmpFile($paintSkip = true) {
|
||||||
|
|
Loading…
Reference in a new issue