Completed
Pull Request — master (#4748)
by Michael
10:35
created
core/Config.php 1 patch
Doc Comments   +14 added lines, -9 removed lines patch added patch discarded remove patch
@@ -507,12 +507,18 @@  discard block
 block discarded – undo
507 507
 
508 508
 	protected $extraConfigSources = array();
509 509
 
510
+	/**
511
+	 * @param string $class
512
+	 */
510 513
 	public function extraConfigSourcesChanged($class) {
511 514
 		unset($this->extraConfigSources[$class]);
512 515
 		$this->cache->clean("__{$class}");
513 516
 		$this->persistentCache->clean("__{$class}");
514 517
 	}
515 518
 
519
+	/**
520
+	 * @param integer $sourceOptions
521
+	 */
516 522
 	protected function getUncached($class, $name, $sourceOptions, &$result, $suppress, &$tags) {
517 523
 		$tags[] = "__{$class}";
518 524
 		$tags[] = "__{$class}__{$name}";
@@ -699,15 +705,6 @@  discard block
 block discarded – undo
699 705
 	 *
700 706
 	 * @param string $class The class to remove a configuration value from
701 707
 	 * @param string $name The configuration name
702
-	 * @param mixed $key An optional key to filter against.
703
-	 *   If referenced config value is an array, only members of that array that match this key will be removed
704
-	 *   Must also match value if provided to be removed
705
-	 * @param mixed $value And optional value to filter against.
706
-	 *   If referenced config value is an array, only members of that array that match this value will be removed
707
-	 *   If referenced config value is not an array, value will be removed only if it matches this argument
708
-	 *   Must also match key if provided and referenced config value is an array to be removed
709
-	 *
710
-	 * Matching is always by "==", not by "==="
711 708
 	 */
712 709
 	public function remove($class, $name /*,$key = null*/ /*,$value = null*/) {
713 710
 		$argc = func_num_args();
@@ -788,6 +785,10 @@  discard block
 block discarded – undo
788 785
 		$this->cache = $cloned;
789 786
 	}
790 787
 
788
+	/**
789
+	 * @param integer $key
790
+	 * @param integer $val
791
+	 */
791 792
 	public function set($key, $val, $tags = array()) {
792 793
 		// Find an index to set at
793 794
 		$replacing = null;
@@ -856,6 +857,9 @@  discard block
 block discarded – undo
856 857
 		}
857 858
 	}
858 859
 
860
+	/**
861
+	 * @param string $tag
862
+	 */
859 863
 	public function clean($tag = null) {
860 864
 		if ($tag) {
861 865
 			foreach ($this->cache as $i => $v) {
@@ -917,6 +921,7 @@  discard block
 block discarded – undo
917 921
 
918 922
 	/**
919 923
 	 * Checks for a cache hit and returns the value as a multi-value return
924
+	 * @param string $key
920 925
 	 * @return array First element boolean, isHit. Second element the actual result.
921 926
 	 */
922 927
 	public function checkAndGet($key) {
Please login to merge, or discard this patch.