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) {
|
||||
$_this = ClassRegistry::getInstance();
|
||||
$id = $false = false;
|
||||
$false = false;
|
||||
$true = true;
|
||||
|
||||
if (!$type) {
|
||||
|
|
|
@ -274,7 +274,6 @@ class Debugger {
|
|||
break;
|
||||
}
|
||||
|
||||
$helpCode = null;
|
||||
if (!empty($_this->helpPath) && preg_match('/.*\[([0-9]+)\]$/', $description, $codes)) {
|
||||
if (isset($codes[1])) {
|
||||
$helpID = $codes[1];
|
||||
|
@ -418,7 +417,7 @@ class Debugger {
|
|||
* @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
|
||||
*/
|
||||
public static function excerpt($file, $line, $context = 2) {
|
||||
$data = $lines = array();
|
||||
$lines = array();
|
||||
if (!file_exists($file)) {
|
||||
return array();
|
||||
}
|
||||
|
|
|
@ -415,7 +415,6 @@ class Set {
|
|||
$matches[] = $context;
|
||||
continue;
|
||||
}
|
||||
$match = false;
|
||||
if ($token === '@*' && is_array($context['item'])) {
|
||||
$matches[] = array(
|
||||
'trace' => array_merge($context['trace'], (array)$key),
|
||||
|
|
|
@ -33,7 +33,6 @@ class String {
|
|||
*/
|
||||
public static function uuid() {
|
||||
$node = env('SERVER_ADDR');
|
||||
$pid = null;
|
||||
|
||||
if (strpos($node, ':') !== false) {
|
||||
if (substr_count($node, '::')) {
|
||||
|
|
|
@ -194,7 +194,6 @@ class Xml {
|
|||
$value = '';
|
||||
}
|
||||
$isNamespace = strpos($key, 'xmlns:');
|
||||
$nsUri = null;
|
||||
if ($isNamespace !== false) {
|
||||
$node->setAttributeNS('http://www.w3.org/2000/xmlns/', $key, $value);
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue