Skip to content
This repository
Browse code

MINOR Fixed whitespace and added docblocks

  • Loading branch information...
commit 6cf03b9c2b79a97bf80d3337716d52a536023872 1 parent 3c5fd14
Stig Lindqvist authored October 28, 2011

Showing 1 changed file with 13 additions and 3 deletions. Show diff stats Hide diff stats

  1. 16  dev/Deprecation.php
16  dev/Deprecation.php
@@ -26,11 +26,22 @@
26 26
  * When set per-module, only direct calls to deprecated methods from those modules are considered - if the module
27 27
  * calls a non-module method which then calls a deprecated method, that call will use the global check version, not
28 28
  * the module specific check version.
  29
+ *
  30
+ * @package sapphire
  31
+ * @subpackage dev
29 32
  */
30 33
 class Deprecation {
31 34
 
  35
+	/**
  36
+	 *
  37
+	 * @var string
  38
+	 */
32 39
 	protected static $version;
33 40
 
  41
+	/**
  42
+	 *
  43
+	 * @var array
  44
+	 */
34 45
 	protected static $module_version_overrides = array();
35 46
 
36 47
 	/**
@@ -92,7 +103,7 @@ protected static function get_called_method_from_trace($backtrace, $level = 1) {
92 103
 		$level = (int)$level;
93 104
 		if(!$level) $level = 1;
94 105
 		$called = $backtrace[$level];
95  
-		
  106
+
96 107
 		if (isset($called['class'])) {
97 108
 			return $called['class'] . $called['type'] . $called['function'];
98 109
 		}
@@ -104,7 +115,7 @@ protected static function get_called_method_from_trace($backtrace, $level = 1) {
104 115
 	/**
105 116
 	 * Raise a notice indicating the method is deprecated if the version passed as the second argument is greater
106 117
 	 * than or equal to the check version set via ::notification_version
107  
-	 * 
  118
+	 *
108 119
 	 * @static
109 120
 	 * @param $string - The notice to raise
110 121
 	 * @param $atVersion - The version at which this notice should start being raised
@@ -167,5 +178,4 @@ public static function restore_settings($settings) {
167 178
 		self::$version = $settings['version'];
168 179
 		self::$module_version_overrides = $settings['moduleVersions'];
169 180
 	}
170  
-
171 181
 }

0 notes on commit 6cf03b9

Please sign in to comment.
Something went wrong with that request. Please try again.