mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
According to CakePHP conding styles, methods prefixed by _ are protected. Changing where it makes sense and don't break anything.
This commit is contained in:
parent
438050dcaa
commit
ed96936ea7
7 changed files with 7 additions and 7 deletions
|
@ -196,7 +196,7 @@ class TemplateTask extends Shell {
|
|||
* @access public
|
||||
* @return string filename will exit program if template is not found.
|
||||
*/
|
||||
public function _findTemplate($path, $directory, $filename) {
|
||||
protected function _findTemplate($path, $directory, $filename) {
|
||||
$themeFile = $path . $directory . DS . $filename . '.ctp';
|
||||
if (file_exists($themeFile)) {
|
||||
return $themeFile;
|
||||
|
|
|
@ -529,7 +529,7 @@ class CakeSchema extends Object {
|
|||
* where match was not found.
|
||||
* @access protected
|
||||
*/
|
||||
public function _arrayDiffAssoc($array1, $array2) {
|
||||
protected function _arrayDiffAssoc($array1, $array2) {
|
||||
$difference = array();
|
||||
foreach ($array1 as $key => $value) {
|
||||
if (!array_key_exists($key, $array2)) {
|
||||
|
|
|
@ -60,7 +60,7 @@ class ShellTestShell extends Shell {
|
|||
|
||||
}
|
||||
|
||||
public function _secret() {
|
||||
protected function _secret() {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -215,7 +215,7 @@ class Folder {
|
|||
* @return array Files matching pattern
|
||||
* @access private
|
||||
*/
|
||||
public function _findRecursive($pattern, $sort = false) {
|
||||
protected function _findRecursive($pattern, $sort = false) {
|
||||
list($dirs, $files) = $this->read($sort);
|
||||
$found = array();
|
||||
|
||||
|
|
|
@ -322,7 +322,7 @@ class Helper extends Object {
|
|||
* @param string $insertAfter String to be inserted after options.
|
||||
* @return string Composed attributes.
|
||||
*/
|
||||
public function _parseAttributes($options, $exclude = null, $insertBefore = ' ', $insertAfter = null) {
|
||||
protected function _parseAttributes($options, $exclude = null, $insertBefore = ' ', $insertAfter = null) {
|
||||
if (!is_string($options)) {
|
||||
$options = (array) $options + array('escape' => true);
|
||||
|
||||
|
|
|
@ -1011,7 +1011,7 @@ class HtmlHelper extends AppHelper {
|
|||
* @param string $insertAfter String to be inserted after options.
|
||||
* @return string Composed attributes.
|
||||
*/
|
||||
public function _parseAttributes($options, $exclude = null, $insertBefore = ' ', $insertAfter = null) {
|
||||
protected function _parseAttributes($options, $exclude = null, $insertBefore = ' ', $insertAfter = null) {
|
||||
if (is_array($options)) {
|
||||
$options = array_merge(array('escape' => true), $options);
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ class JqueryEngineHelper extends JsBaseEngineHelper {
|
|||
* @param string $callbacks Array of callback / special options.
|
||||
* @return string Composed method string
|
||||
*/
|
||||
public function _methodTemplate($method, $template, $options, $extraSafeKeys = array()) {
|
||||
protected function _methodTemplate($method, $template, $options, $extraSafeKeys = array()) {
|
||||
$options = $this->_mapOptions($method, $options);
|
||||
$options = $this->_prepareCallbacks($method, $options);
|
||||
$callbacks = array_keys($this->_callbackArguments[$method]);
|
||||
|
|
Loading…
Reference in a new issue