mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing more documentations.
This commit is contained in:
parent
0575e92833
commit
40654df5ab
3 changed files with 5 additions and 5 deletions
|
@ -136,7 +136,7 @@ class ProjectTask extends Shell {
|
||||||
/**
|
/**
|
||||||
* Checks PHP's include_path for CakePHP.
|
* Checks PHP's include_path for CakePHP.
|
||||||
*
|
*
|
||||||
* @return bool Indicates whether or not CakePHP exists on include_path
|
* @return boolean Indicates whether or not CakePHP exists on include_path
|
||||||
*/
|
*/
|
||||||
public function cakeOnIncludePath() {
|
public function cakeOnIncludePath() {
|
||||||
$paths = explode(PATH_SEPARATOR, ini_get('include_path'));
|
$paths = explode(PATH_SEPARATOR, ini_get('include_path'));
|
||||||
|
@ -304,7 +304,7 @@ class ProjectTask extends Shell {
|
||||||
* Generates and writes CAKE_CORE_INCLUDE_PATH
|
* Generates and writes CAKE_CORE_INCLUDE_PATH
|
||||||
*
|
*
|
||||||
* @param string $path Project path
|
* @param string $path Project path
|
||||||
* @param bool $hardCode Wether or not define calls should be hardcoded.
|
* @param boolean $hardCode Wether or not define calls should be hardcoded.
|
||||||
* @return boolean Success
|
* @return boolean Success
|
||||||
*/
|
*/
|
||||||
public function corePath($path, $hardCode = true) {
|
public function corePath($path, $hardCode = true) {
|
||||||
|
@ -326,7 +326,7 @@ class ProjectTask extends Shell {
|
||||||
*
|
*
|
||||||
* @param string $filename The filename to operate on.
|
* @param string $filename The filename to operate on.
|
||||||
* @param boolean $hardCode Whether or not the define should be uncommented.
|
* @param boolean $hardCode Whether or not the define should be uncommented.
|
||||||
* @retun bool Success
|
* @return boolean Success
|
||||||
*/
|
*/
|
||||||
protected function _replaceCorePath($filename, $hardCode) {
|
protected function _replaceCorePath($filename, $hardCode) {
|
||||||
$contents = file_get_contents($filename);
|
$contents = file_get_contents($filename);
|
||||||
|
|
|
@ -75,6 +75,7 @@ class ConsoleInputOption {
|
||||||
* @param boolean $boolean Whether this option is a boolean option. Boolean options don't consume extra tokens
|
* @param boolean $boolean Whether this option is a boolean option. Boolean options don't consume extra tokens
|
||||||
* @param string $default The default value for this option.
|
* @param string $default The default value for this option.
|
||||||
* @param array $choices Valid choices for this option.
|
* @param array $choices Valid choices for this option.
|
||||||
|
* @throws ConsoleException
|
||||||
*/
|
*/
|
||||||
public function __construct($name, $short = null, $help = '', $boolean = false, $default = '', $choices = array()) {
|
public function __construct($name, $short = null, $help = '', $boolean = false, $default = '', $choices = array()) {
|
||||||
if (is_array($name) && isset($name['name'])) {
|
if (is_array($name) && isset($name['name'])) {
|
||||||
|
|
|
@ -185,10 +185,9 @@ class CacheHelper extends AppHelper {
|
||||||
* Munges the output from a view with cache tags, and numbers the sections.
|
* Munges the output from a view with cache tags, and numbers the sections.
|
||||||
* This helps solve issues with empty/duplicate content.
|
* This helps solve issues with empty/duplicate content.
|
||||||
*
|
*
|
||||||
* @param string $content The content to munge.
|
|
||||||
* @return string The content with cake:nocache tags replaced.
|
* @return string The content with cake:nocache tags replaced.
|
||||||
*/
|
*/
|
||||||
function _replaceSection($matches) {
|
function _replaceSection() {
|
||||||
$this->_counter += 1;
|
$this->_counter += 1;
|
||||||
return sprintf('<!--nocache:%03d-->', $this->_counter);
|
return sprintf('<!--nocache:%03d-->', $this->_counter);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue