mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed whitespace and added docblocks
This commit is contained in:
parent
3c5fd14f38
commit
6cf03b9c2b
@ -26,11 +26,22 @@
|
||||
* When set per-module, only direct calls to deprecated methods from those modules are considered - if the module
|
||||
* calls a non-module method which then calls a deprecated method, that call will use the global check version, not
|
||||
* the module specific check version.
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage dev
|
||||
*/
|
||||
class Deprecation {
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $version;
|
||||
|
||||
/**
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected static $module_version_overrides = array();
|
||||
|
||||
/**
|
||||
@ -92,7 +103,7 @@ class Deprecation {
|
||||
$level = (int)$level;
|
||||
if(!$level) $level = 1;
|
||||
$called = $backtrace[$level];
|
||||
|
||||
|
||||
if (isset($called['class'])) {
|
||||
return $called['class'] . $called['type'] . $called['function'];
|
||||
}
|
||||
@ -104,7 +115,7 @@ class Deprecation {
|
||||
/**
|
||||
* Raise a notice indicating the method is deprecated if the version passed as the second argument is greater
|
||||
* than or equal to the check version set via ::notification_version
|
||||
*
|
||||
*
|
||||
* @static
|
||||
* @param $string - The notice to raise
|
||||
* @param $atVersion - The version at which this notice should start being raised
|
||||
@ -167,5 +178,4 @@ class Deprecation {
|
||||
self::$version = $settings['version'];
|
||||
self::$module_version_overrides = $settings['moduleVersions'];
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user