Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Fixed whitespace and added docblocks

  • Loading branch information...
commit 6cf03b9c2b79a97bf80d3337716d52a536023872 1 parent 3c5fd14
@stojg stojg authored
Showing with 13 additions and 3 deletions.
  1. +13 −3 dev/Deprecation.php
View
16 dev/Deprecation.php
@@ -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 @@ protected static function get_called_method_from_trace($backtrace, $level = 1) {
$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 @@ protected static function get_called_method_from_trace($backtrace, $level = 1) {
/**
* 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 @@ public static function restore_settings($settings) {
self::$version = $settings['version'];
self::$module_version_overrides = $settings['moduleVersions'];
}
-
}
Please sign in to comment.
Something went wrong with that request. Please try again.