import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -16,7 +16,7 @@
* @package Zend_Reflection
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Method.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: Method.php 18165 2009-09-17 13:24:09Z carlton $
*/
/**
@ -62,7 +62,7 @@ class Zend_Reflection_Method extends ReflectionMethod
}
return $instance;
}
/**
* Get start line (position) of method
*
@ -76,10 +76,10 @@ class Zend_Reflection_Method extends ReflectionMethod
return $this->getDocblock()->getStartLine();
}
}
return parent::getStartLine();
}
/**
* Get reflection of declaring class
*
@ -97,7 +97,7 @@ class Zend_Reflection_Method extends ReflectionMethod
unset($phpReflection);
return $zendReflection;
}
/**
* Get all method parameter reflection objects
*
@ -120,7 +120,7 @@ class Zend_Reflection_Method extends ReflectionMethod
unset($phpReflections);
return $zendReflections;
}
/**
* Get method contents
*
@ -132,10 +132,10 @@ class Zend_Reflection_Method extends ReflectionMethod
$fileContents = file($this->getFileName());
$startNum = $this->getStartLine($includeDocblock);
$endNum = ($this->getEndLine() - $this->getStartLine());
return implode("\n", array_splice($fileContents, $startNum, $endNum, true));
}
/**
* Get method body
*
@ -144,25 +144,25 @@ class Zend_Reflection_Method extends ReflectionMethod
public function getBody()
{
$lines = array_slice(
file($this->getDeclaringClass()->getFileName()),
$this->getStartLine(),
($this->getEndLine() - $this->getStartLine()),
file($this->getDeclaringClass()->getFileName(), FILE_IGNORE_NEW_LINES),
$this->getStartLine(),
($this->getEndLine() - $this->getStartLine()),
true
);
$firstLine = array_shift($lines);
if (trim($firstLine) !== '{') {
array_unshift($lines, $firstLine);
}
$lastLine = array_pop($lines);
if (trim($lastLine) !== '}') {
array_push($lines, $lastLine);
}
// just in case we had code on the braket lines
// just in case we had code on the bracket lines
return rtrim(ltrim(implode("\n", $lines), '{'), '}');
}
}