Completed
Push — master ( 999113...3b9fde )
by Peter
19:46
created
src/Addendum.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -209,8 +209,8 @@
 block discarded – undo
209 209
 
210 210
 	/**
211 211
 	 * Use $class name or object to annotate class
212
-	 * @param string|object $class
213
-	 * @return ReflectionAnnotatedMethod|ReflectionAnnotatedProperty|ReflectionAnnotatedClass
212
+	 * @param AnnotatedInterface $class
213
+	 * @return ReflectionAnnotatedClass
214 214
 	 */
215 215
 	public function annotate($class)
216 216
 	{
Please login to merge, or discard this patch.
src/Builder/DocComment.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
 		self::$parsedFiles = [];
41 41
 	}
42 42
 
43
+	/**
44
+	 * @param \Reflector $reflection
45
+	 */
43 46
 	public function get($reflection)
44 47
 	{
45 48
 		if ($reflection instanceof ReflectionClass)
@@ -83,6 +86,9 @@  discard block
 block discarded – undo
83 86
 		return $result;
84 87
 	}
85 88
 
89
+	/**
90
+	 * @param \Reflector $reflection
91
+	 */
86 92
 	public function forClass($reflection)
87 93
 	{
88 94
 		$this->process($reflection->getFileName());
@@ -99,6 +105,9 @@  discard block
 block discarded – undo
99 105
 		return $result;
100 106
 	}
101 107
 
108
+	/**
109
+	 * @param ReflectionMethod $reflection
110
+	 */
102 111
 	public function forMethod($reflection)
103 112
 	{
104 113
 		$this->process($reflection->getDeclaringClass()->getFileName());
@@ -107,6 +116,9 @@  discard block
 block discarded – undo
107 116
 		return isset(self::$methods[$class][$method]) ? self::$methods[$class][$method] : false;
108 117
 	}
109 118
 
119
+	/**
120
+	 * @param ReflectionProperty $reflection
121
+	 */
110 122
 	public function forProperty($reflection)
111 123
 	{
112 124
 		$this->process($reflection->getDeclaringClass()->getFileName());
@@ -272,6 +284,9 @@  discard block
 block discarded – undo
272 284
 		return $fqn;
273 285
 	}
274 286
 
287
+	/**
288
+	 * @param integer $max
289
+	 */
275 290
 	private function getString($tokens, &$i, $max)
276 291
 	{
277 292
 		do
Please login to merge, or discard this patch.
src/Cache/NsCache.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
38 38
 	 */
39 39
 	private static $_nsCache = [];
40 40
 
41
+	/**
42
+	 * @param string $path
43
+	 */
41 44
 	public function __construct($path, Addendum $addendum, MetaOptions $options = null)
42 45
 	{
43 46
 		$this->_file = sprintf('%s/%s', $path, self::FileName);
Please login to merge, or discard this patch.
src/Reflection/ReflectionAnnotatedClass.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -44,11 +44,17 @@  discard block
 block discarded – undo
44 44
 		ConflictChecker::check($this, $this->annotations);
45 45
 	}
46 46
 
47
+	/**
48
+	 * @param string $class
49
+	 */
47 50
 	public function hasAnnotation($class)
48 51
 	{
49 52
 		return $this->annotations->hasAnnotation($class);
50 53
 	}
51 54
 
55
+	/**
56
+	 * @param string $annotation
57
+	 */
52 58
 	public function getAnnotation($annotation)
53 59
 	{
54 60
 		return $this->annotations->getAnnotation($annotation);
@@ -125,6 +131,9 @@  discard block
 block discarded – undo
125 131
 		return ($method !== null) ? new ReflectionAnnotatedMethod($this->name, $method->name, $this->addendum) : null;
126 132
 	}
127 133
 
134
+	/**
135
+	 * @param \ReflectionProperty $property
136
+	 */
128 137
 	private function createReflectionAnnotatedProperty($property)
129 138
 	{
130 139
 		return ($property !== null) ? new ReflectionAnnotatedProperty($this->name, $property->name, $this->addendum) : null;
Please login to merge, or discard this patch.
src/Reflection/ReflectionFile.php 1 patch
Doc Comments   +13 added lines, -20 removed lines patch added patch discarded remove patch
@@ -85,13 +85,6 @@  discard block
 block discarded – undo
85 85
 	 * (PHP 5)<br/>
86 86
 	 * Exports a class
87 87
 	 * @link http://php.net/manual/en/reflectionclass.export.php
88
-	 * @param mixed $argument <p>
89
-	 * The reflection to export.
90
-	 * </p>
91
-	 * @param bool $return [optional] <p>
92
-	 * Setting to <b>TRUE</b> will return the export,
93
-	 * as opposed to emitting it. Setting to <b>FALSE</b> (the default) will do the opposite.
94
-	 * </p>
95 88
 	 * @return string If the <i>return</i> parameter
96 89
 	 * is set to <b>TRUE</b>, then the export is returned as a string,
97 90
 	 * otherwise <b>NULL</b> is returned.
@@ -116,7 +109,7 @@  discard block
 block discarded – undo
116 109
 	 * (PHP 5)<br/>
117 110
 	 * Checks if class is defined internally by an extension, or the core
118 111
 	 * @link http://php.net/manual/en/reflectionclass.isinternal.php
119
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
112
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
120 113
 	 */
121 114
 	public function isInternal()
122 115
 	{
@@ -138,7 +131,7 @@  discard block
 block discarded – undo
138 131
 	 * (PHP 5)<br/>
139 132
 	 * Checks if the class is instantiable
140 133
 	 * @link http://php.net/manual/en/reflectionclass.isinstantiable.php
141
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
134
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
142 135
 	 */
143 136
 	public function isInstantiable()
144 137
 	{
@@ -149,7 +142,7 @@  discard block
 block discarded – undo
149 142
 	 * (PHP &gt;= 5.4.0)<br/>
150 143
 	 * Returns whether this class is cloneable
151 144
 	 * @link http://php.net/manual/en/reflectionclass.iscloneable.php
152
-	 * @return bool <b>TRUE</b> if the class is cloneable, <b>FALSE</b> otherwise.
145
+	 * @return boolean|null <b>TRUE</b> if the class is cloneable, <b>FALSE</b> otherwise.
153 146
 	 */
154 147
 	public function isCloneable()
155 148
 	{
@@ -317,7 +310,7 @@  discard block
 block discarded – undo
317 310
 	 * @param string $name <p>
318 311
 	 * The name of the constant being checked for.
319 312
 	 * </p>
320
-	 * @return bool <b>TRUE</b> if the constant is defined, otherwise <b>FALSE</b>.
313
+	 * @return boolean|null <b>TRUE</b> if the constant is defined, otherwise <b>FALSE</b>.
321 314
 	 */
322 315
 	public function hasConstant($name)
323 316
 	{
@@ -377,7 +370,7 @@  discard block
 block discarded – undo
377 370
 	 * (PHP 5)<br/>
378 371
 	 * Checks if the class is an interface
379 372
 	 * @link http://php.net/manual/en/reflectionclass.isinterface.php
380
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
373
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
381 374
 	 */
382 375
 	public function isInterface()
383 376
 	{
@@ -426,7 +419,7 @@  discard block
 block discarded – undo
426 419
 	 * (PHP &gt;= 5.4.0)<br/>
427 420
 	 * Returns whether this is a trait
428 421
 	 * @link http://php.net/manual/en/reflectionclass.istrait.php
429
-	 * @return bool <b>TRUE</b> if this is a trait, <b>FALSE</b> otherwise.
422
+	 * @return boolean|null <b>TRUE</b> if this is a trait, <b>FALSE</b> otherwise.
430 423
 	 * Returns <b>NULL</b> in case of an error.
431 424
 	 */
432 425
 	public function isTrait()
@@ -438,7 +431,7 @@  discard block
 block discarded – undo
438 431
 	 * (PHP 5)<br/>
439 432
 	 * Checks if class is abstract
440 433
 	 * @link http://php.net/manual/en/reflectionclass.isabstract.php
441
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
434
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
442 435
 	 */
443 436
 	public function isAbstract()
444 437
 	{
@@ -449,7 +442,7 @@  discard block
 block discarded – undo
449 442
 	 * (PHP 5)<br/>
450 443
 	 * Checks if class is final
451 444
 	 * @link http://php.net/manual/en/reflectionclass.isfinal.php
452
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
445
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
453 446
 	 */
454 447
 	public function isFinal()
455 448
 	{
@@ -475,7 +468,7 @@  discard block
 block discarded – undo
475 468
 	 * @param object $object <p>
476 469
 	 * The object being compared to.
477 470
 	 * </p>
478
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
471
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
479 472
 	 */
480 473
 	public function isInstance($object)
481 474
 	{
@@ -541,7 +534,7 @@  discard block
 block discarded – undo
541 534
 	 * @param string $class <p>
542 535
 	 * The class name being checked against.
543 536
 	 * </p>
544
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
537
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
545 538
 	 */
546 539
 	public function isSubclassOf($class)
547 540
 	{
@@ -611,7 +604,7 @@  discard block
 block discarded – undo
611 604
 	 * (PHP 5)<br/>
612 605
 	 * Checks if iterateable
613 606
 	 * @link http://php.net/manual/en/reflectionclass.isiterateable.php
614
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
607
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
615 608
 	 */
616 609
 	public function isIterateable()
617 610
 	{
@@ -625,7 +618,7 @@  discard block
 block discarded – undo
625 618
 	 * @param string $interface <p>
626 619
 	 * The interface name.
627 620
 	 * </p>
628
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
621
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
629 622
 	 */
630 623
 	public function implementsInterface($interface)
631 624
 	{
@@ -648,7 +641,7 @@  discard block
 block discarded – undo
648 641
 	 * (PHP 5)<br/>
649 642
 	 * Gets the name of the extension which defined the class
650 643
 	 * @link http://php.net/manual/en/reflectionclass.getextensionname.php
651
-	 * @return string The name of the extension which defined the class, or <b>FALSE</b> for user-defined classes.
644
+	 * @return boolean The name of the extension which defined the class, or <b>FALSE</b> for user-defined classes.
652 645
 	 */
653 646
 	public function getExtensionName()
654 647
 	{
Please login to merge, or discard this patch.
src/Collections/MetaAnnotation.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 	 * }
101 101
 	 * ```
102 102
 	 *
103
-	 * @return AnnotatedEntityInteface
103
+	 * @return AnnotationEntityInterface
104 104
 	 */
105 105
 	public function getEntity()
106 106
 	{
Please login to merge, or discard this patch.