mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Unused variables in Utility removed
This commit is contained in:
parent
3c9cb3b97d
commit
f9db4270c6
5 changed files with 2 additions and 6 deletions
|
@ -93,7 +93,7 @@ class ClassRegistry {
|
||||||
*/
|
*/
|
||||||
public static function &init($class, $type = null) {
|
public static function &init($class, $type = null) {
|
||||||
$_this = ClassRegistry::getInstance();
|
$_this = ClassRegistry::getInstance();
|
||||||
$id = $false = false;
|
$false = false;
|
||||||
$true = true;
|
$true = true;
|
||||||
|
|
||||||
if (!$type) {
|
if (!$type) {
|
||||||
|
|
|
@ -274,7 +274,6 @@ class Debugger {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$helpCode = null;
|
|
||||||
if (!empty($_this->helpPath) && preg_match('/.*\[([0-9]+)\]$/', $description, $codes)) {
|
if (!empty($_this->helpPath) && preg_match('/.*\[([0-9]+)\]$/', $description, $codes)) {
|
||||||
if (isset($codes[1])) {
|
if (isset($codes[1])) {
|
||||||
$helpID = $codes[1];
|
$helpID = $codes[1];
|
||||||
|
@ -418,7 +417,7 @@ class Debugger {
|
||||||
* @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
|
* @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
|
||||||
*/
|
*/
|
||||||
public static function excerpt($file, $line, $context = 2) {
|
public static function excerpt($file, $line, $context = 2) {
|
||||||
$data = $lines = array();
|
$lines = array();
|
||||||
if (!file_exists($file)) {
|
if (!file_exists($file)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
|
@ -415,7 +415,6 @@ class Set {
|
||||||
$matches[] = $context;
|
$matches[] = $context;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$match = false;
|
|
||||||
if ($token === '@*' && is_array($context['item'])) {
|
if ($token === '@*' && is_array($context['item'])) {
|
||||||
$matches[] = array(
|
$matches[] = array(
|
||||||
'trace' => array_merge($context['trace'], (array)$key),
|
'trace' => array_merge($context['trace'], (array)$key),
|
||||||
|
|
|
@ -33,7 +33,6 @@ class String {
|
||||||
*/
|
*/
|
||||||
public static function uuid() {
|
public static function uuid() {
|
||||||
$node = env('SERVER_ADDR');
|
$node = env('SERVER_ADDR');
|
||||||
$pid = null;
|
|
||||||
|
|
||||||
if (strpos($node, ':') !== false) {
|
if (strpos($node, ':') !== false) {
|
||||||
if (substr_count($node, '::')) {
|
if (substr_count($node, '::')) {
|
||||||
|
|
|
@ -194,7 +194,6 @@ class Xml {
|
||||||
$value = '';
|
$value = '';
|
||||||
}
|
}
|
||||||
$isNamespace = strpos($key, 'xmlns:');
|
$isNamespace = strpos($key, 'xmlns:');
|
||||||
$nsUri = null;
|
|
||||||
if ($isNamespace !== false) {
|
if ($isNamespace !== false) {
|
||||||
$node->setAttributeNS('http://www.w3.org/2000/xmlns/', $key, $value);
|
$node->setAttributeNS('http://www.w3.org/2000/xmlns/', $key, $value);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue