Completed
Push — 3.1 ( 730512...76ce9f )
by Damian
16s
created
control/HTTP.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	 * @param string|callable $code Either a string that can evaluate to an expression
100 100
 	 * to rewrite links (depreciated), or a callable that takes a single 
101 101
 	 * parameter and returns the rewritten URL
102
-	 * @return The content with all links rewritten as per the logic specified in $code
102
+	 * @return string content with all links rewritten as per the logic specified in $code
103 103
 	 */
104 104
 	public static function urlRewriter($content, $code) {
105 105
 		if(!is_callable($code)) {
@@ -243,6 +243,9 @@  discard block
 block discarded – undo
243 243
 		return count($result) ? $result : null;
244 244
 	}
245 245
 	
246
+	/**
247
+	 * @param string $content
248
+	 */
246 249
 	public static function getLinksIn($content) {
247 250
 		return self::findByTagAndAttribute($content, array("a" => "href"));
248 251
 	}
@@ -285,6 +288,7 @@  discard block
 block discarded – undo
285 288
 
286 289
 	/**
287 290
 	 * Set the maximum age of this page in web caches, in seconds
291
+	 * @param integer $age
288 292
 	 */
289 293
 	public static function set_cache_age($age) {
290 294
 		self::$cache_age = $age;
@@ -296,11 +300,17 @@  discard block
 block discarded – undo
296 300
 			self::$modification_date = $timestamp;
297 301
 	}
298 302
 
303
+	/**
304
+	 * @param integer $timestamp
305
+	 */
299 306
 	public static function register_modification_timestamp($timestamp) {
300 307
 		if($timestamp > self::$modification_date)
301 308
 			self::$modification_date = $timestamp;
302 309
 	}
303 310
 
311
+	/**
312
+	 * @param string $etag
313
+	 */
304 314
 	public static function register_etag($etag) {
305 315
 		self::$etag = $etag;
306 316
 	}
@@ -313,6 +323,7 @@  discard block
 block discarded – undo
313 323
 	 *
314 324
 	 * @param SS_HTTPResponse The SS_HTTPResponse object to augment.  Omitted the argument or passing a string is
315 325
 	 *                            deprecated; in these cases, the headers are output directly.
326
+	 * @param SS_HTTPResponse $body
316 327
 	 */
317 328
 	public static function add_cache_headers($body = null) {
318 329
 		$cacheAge = self::$cache_age;
Please login to merge, or discard this patch.
control/injector/Injector.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -331,14 +331,13 @@  discard block
 block discarded – undo
331 331
 	 * of a particular type is injected, and what items should be injected
332 332
 	 * for those properties / methods.
333 333
 	 *
334
-	 * @param type $class
334
+	 * @param string $class
335 335
 	 *					The class to set a mapping for
336
-	 * @param type $property
336
+	 * @param string $property
337 337
 	 *					The property to set the mapping for
338
-	 * @param type $injectType
339
-	 *					The registered type that will be injected
340 338
 	 * @param string $injectVia
341 339
 	 *					Whether to inject by setting a property or calling a setter
340
+	 * @param string $toInject
342 341
 	 */
343 342
 	public function setInjectMapping($class, $property, $toInject, $injectVia = 'property') {
344 343
 		$mapping = isset($this->injectMap[$class]) ? $this->injectMap[$class] : array();
@@ -358,7 +357,7 @@  discard block
 block discarded – undo
358 357
 	 *
359 358
 	 * @param string $property
360 359
 	 *				the name of the property
361
-	 * @param object $object
360
+	 * @param string $object
362 361
 	 *				the object to be set
363 362
 	 */
364 363
 	public function addAutoProperty($property, $object) {
@@ -452,7 +451,7 @@  discard block
 block discarded – undo
452 451
 	 *				The name of the service to update the definition for
453 452
 	 * @param string $property
454 453
 	 *				The name of the property to update.
455
-	 * @param mixed $value
454
+	 * @param string $value
456 455
 	 *				The value to set
457 456
 	 * @param boolean $append
458 457
 	 *				Whether to append (the default) when the property is an array
@@ -720,6 +719,7 @@  discard block
 block discarded – undo
720 719
 	 *
721 720
 	 * Will recursively call hasService for each depth of dotting
722 721
 	 *
722
+	 * @param string $name
723 723
 	 * @return string
724 724
 	 *				The name of the service (as it might be different from the one passed in)
725 725
 	 */
@@ -764,6 +764,8 @@  discard block
 block discarded – undo
764 764
 	 * Register a service with an explicit name
765 765
 	 *
766 766
 	 * @deprecated since 3.1.1
767
+	 * @param string $name
768
+	 * @param stdClass $service
767 769
 	 */
768 770
 	public function registerNamedService($name, $service) {
769 771
 		return $this->registerService($service, $name);
@@ -895,8 +897,6 @@  discard block
 block discarded – undo
895 897
 	 *
896 898
 	 * @param string $name
897 899
 	 *				Name of the class to create an object of
898
-	 * @param array $args
899
-	 *				Arguments to pass to the constructor
900 900
 	 * @return mixed
901 901
 	 */
902 902
 	public function createWithArgs($name, $constructorArgs) {
Please login to merge, or discard this patch.
control/RequestHandler.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -121,6 +121,7 @@  discard block
 block discarded – undo
121 121
 	
122 122
 	/**
123 123
 	 * Set the DataModel for this request.
124
+	 * @param DataModel $model
124 125
 	 */
125 126
 	public function setDataModel($model) {
126 127
 		$this->model = $model;
@@ -238,6 +239,9 @@  discard block
 block discarded – undo
238 239
 		return $this;
239 240
 	}
240 241
 
242
+	/**
243
+	 * @param SS_HTTPRequest $request
244
+	 */
241 245
 	protected function findAction($request) {
242 246
 		$handlerClass = ($this->class) ? $this->class : get_class($this);
243 247
 
@@ -384,6 +388,7 @@  discard block
 block discarded – undo
384 388
 
385 389
 	/**
386 390
 	 * Return the class that defines the given action, so that we know where to check allowed_actions.
391
+	 * @return string|null
387 392
 	 */
388 393
 	protected function definingClassForAction($actionOrigCasing) {
389 394
 		$action = strtolower($actionOrigCasing);
Please login to merge, or discard this patch.
core/Config.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -475,6 +475,9 @@  discard block
 block discarded – undo
475 475
 		$this->cache->clean("__{$class}");
476 476
 	}
477 477
 
478
+	/**
479
+	 * @param integer $sourceOptions
480
+	 */
478 481
 	protected function getUncached($class, $name, $sourceOptions, &$result, $suppress, &$tags) {
479 482
 		$tags[] = "__{$class}";
480 483
 		$tags[] = "__{$class}__{$name}";
@@ -732,6 +735,10 @@  discard block
 block discarded – undo
732 735
 		$this->cache = $cloned;
733 736
 	}
734 737
 
738
+	/**
739
+	 * @param integer $key
740
+	 * @param integer $val
741
+	 */
735 742
 	public function set($key, $val, $tags = array()) {
736 743
 		// Find an index to set at
737 744
 		$replacing = null;
@@ -767,6 +774,9 @@  discard block
 block discarded – undo
767 774
 		return $this->miss ? ($this->hit / $this->miss) : 0;
768 775
 	}
769 776
 
777
+	/**
778
+	 * @param integer $key
779
+	 */
770 780
 	public function get($key) {
771 781
 		if (isset($this->indexing[$key])) {
772 782
 			$this->hit++;
@@ -780,6 +790,9 @@  discard block
 block discarded – undo
780 790
 		return false;
781 791
 	}
782 792
 
793
+	/**
794
+	 * @param string $tag
795
+	 */
783 796
 	public function clean($tag = null) {
784 797
 		if ($tag) {
785 798
 			foreach ($this->cache as $i => $v) {
Please login to merge, or discard this patch.
core/Convert.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 * @see http://www.w3.org/TR/REC-html40/types.html#type-cdata
52 52
 	 * @uses Convert::raw2att()
53 53
 	 * @param array|string $val String to escape, or array of strings
54
-	 * @return array|string
54
+	 * @return string
55 55
 	 */
56 56
 	public static function raw2htmlname($val) {
57 57
 		if(is_array($val)) {
@@ -200,6 +200,7 @@  discard block
 block discarded – undo
200 200
 	 * call this function directly, Please use {@link Convert::xml2array()}
201 201
 	 * 
202 202
 	 * @param SimpleXMLElement
203
+	 * @param SimpleXMLElement $xml
203 204
 	 * 
204 205
 	 * @return mixed
205 206
 	 */
Please login to merge, or discard this patch.
core/PaginatedList.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -322,14 +322,14 @@
 block discarded – undo
322 322
 	}
323 323
 
324 324
 	/**
325
-	 * @return int
325
+	 * @return double
326 326
 	 */
327 327
 	public function CurrentPage() {
328 328
 		return floor($this->getPageStart() / $this->getPageLength()) + 1;
329 329
 	}
330 330
 
331 331
 	/**
332
-	 * @return int
332
+	 * @return double
333 333
 	 */
334 334
 	public function TotalPages() {
335 335
 		return ceil($this->getTotalItems() / $this->getPageLength());
Please login to merge, or discard this patch.
dev/FixtureBlueprint.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,6 +245,9 @@  discard block
 block discarded – undo
245 245
 		return $this;
246 246
 	}
247 247
 
248
+	/**
249
+	 * @param string $type
250
+	 */
248 251
 	protected function invokeCallbacks($type, $args = array()) {
249 252
 		foreach($this->callbacks[$type] as $callback) {
250 253
 			call_user_func_array($callback, $args);
@@ -255,7 +258,6 @@  discard block
 block discarded – undo
255 258
 	 * Parse a value from a fixture file.  If it starts with => 
256 259
 	 * it will get an ID from the fixture dictionary
257 260
 	 *
258
-	 * @param String $fieldVal
259 261
 	 * @param  Array $fixtures See {@link createObject()}
260 262
 	 * @return String Fixture database ID, or the original value
261 263
 	 */
@@ -282,6 +284,9 @@  discard block
 block discarded – undo
282 284
 		$obj->$name = $this->parseValue($value, $fixtures);
283 285
 	}
284 286
 
287
+	/**
288
+	 * @param string $fieldName
289
+	 */
285 290
 	protected function overrideField($obj, $fieldName, $value, $fixtures = null) {
286 291
 		$table = ClassInfo::table_for_object_field(get_class($obj), $fieldName);
287 292
 		$value = $this->parseValue($value, $fixtures);
Please login to merge, or discard this patch.
dev/install/MySQLDatabaseConfigurationHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 	/**
47 47
 	 * Get the database version for the MySQL connection, given the
48 48
 	 * database parameters.
49
-	 * @return mixed string Version number as string | boolean FALSE on failure
49
+	 * @return string string Version number as string | boolean FALSE on failure
50 50
 	 */
51 51
 	public function getDatabaseVersion($databaseConfig) {
52 52
 		$conn = new MySQLi($databaseConfig['server'], $databaseConfig['username'], $databaseConfig['password']);
Please login to merge, or discard this patch.
dev/SapphireTest.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,6 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
 	/**
140 140
 	 * Set the manifest to be used to look up test classes by helper functions
141
+	 * @param SS_ClassManifest $manifest
141 142
 	 */
142 143
 	public static function set_test_class_manifest($manifest) {
143 144
 		self::$test_class_manifest = $manifest;
@@ -389,7 +390,7 @@  discard block
 block discarded – undo
389 390
 	/**
390 391
 	 * Get the ID of an object from the fixture.
391 392
 	 *
392
-	 * @param $className The data class, as specified in your fixture file.  Parent classes won't work
393
+	 * @param string $className The data class, as specified in your fixture file.  Parent classes won't work
393 394
 	 * @param $identifier The identifier string, as provided in your fixture file
394 395
 	 * @return int
395 396
 	 */
@@ -412,7 +413,7 @@  discard block
 block discarded – undo
412 413
 	 * Will collate all IDs form all fixtures if multiple fixtures are provided.
413 414
 	 *
414 415
 	 * @param string $className
415
-	 * @return array A map of fixture-identifier => object-id
416
+	 * @return A A map of fixture-identifier => object-id
416 417
 	 */
417 418
 	protected function allFixtureIDs($className) {
418 419
 		return $this->getFixtureFactory()->getIds($className);
@@ -572,7 +573,7 @@  discard block
 block discarded – undo
572 573
 	/**
573 574
 	 * Assert that the matching email was sent since the last call to clearEmails()
574 575
 	 * All of the parameters can either be a string, or, if they start with "/", a PREG-compatible regular expression.
575
-	 * @param $to
576
+	 * @param string $to
576 577
 	 * @param $from
577 578
 	 * @param $subject
578 579
 	 * @param $content
@@ -871,6 +872,7 @@  discard block
 block discarded – undo
871 872
 	/**
872 873
 	 * Create a member and group with the given permission code, and log in with it.
873 874
 	 * Returns the member ID.
875
+	 * @return integer
874 876
 	 */
875 877
 	public function logInWithPermission($permCode = "ADMIN") {
876 878
 		if(!isset($this->cache_generatedMembers[$permCode])) {
Please login to merge, or discard this patch.