Completed
Push — master ( 776585...15784c )
by Peter
02:09
created
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/Builder/DocComment.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
 		self::$parsedFiles = [];
44 44
 	}
45 45
 
46
+	/**
47
+	 * @param Reflector $reflection
48
+	 */
46 49
 	public function get($reflection)
47 50
 	{
48 51
 		if ($reflection instanceof ReflectionClass)
@@ -142,6 +145,9 @@  discard block
 block discarded – undo
142 145
 		return isset(self::$fields[$class][$field]) ? self::$fields[$class][$field] : false;
143 146
 	}
144 147
 
148
+	/**
149
+	 * @param string $fqn
150
+	 */
145 151
 	private function processAnonymous(Reflector $reflection, $fqn)
146 152
 	{
147 153
 		if (!isset(self::$parsedFiles[$fqn]))
@@ -322,6 +328,9 @@  discard block
 block discarded – undo
322 328
 		return $fqn;
323 329
 	}
324 330
 
331
+	/**
332
+	 * @param integer $max
333
+	 */
325 334
 	private function getString($tokens, &$i, $max)
326 335
 	{
327 336
 		do
Please login to merge, or discard this patch.
src/Cache/ClassCache.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -103,6 +103,9 @@  discard block
 block discarded – undo
103 103
 		$this->checker = new Checker($this->basePath);
104 104
 	}
105 105
 
106
+	/**
107
+	 * @param string $className
108
+	 */
106 109
 	public function get($className)
107 110
 	{
108 111
 		assert(!empty($className));
@@ -118,6 +121,10 @@  discard block
 block discarded – undo
118 121
 		return $data;
119 122
 	}
120 123
 
124
+	/**
125
+	 * @param string $className
126
+	 * @param \Maslosoft\Addendum\Collections\Meta $data
127
+	 */
121 128
 	public function set($className, $data): bool
122 129
 	{
123 130
 		$this->cleaner->clean($className);
@@ -137,6 +144,9 @@  discard block
 block discarded – undo
137 144
 		$this->nsCache->setOptions($options);
138 145
 	}
139 146
 
147
+	/**
148
+	 * @return string
149
+	 */
140 150
 	private function getInstanceId(MetaOptions $options = null)
141 151
 	{
142 152
 		if (empty($options))
Please login to merge, or discard this patch.
src/Reflection/ReflectionFile.php 1 patch
Doc Comments   +11 added lines, -18 removed lines patch added patch discarded remove patch
@@ -97,13 +97,6 @@  discard block
 block discarded – undo
97 97
 	 * (PHP 5)<br/>
98 98
 	 * Exports a class
99 99
 	 * @link http://php.net/manual/en/reflectionclass.export.php
100
-	 * @param mixed $argument <p>
101
-	 * The reflection to export.
102
-	 * </p>
103
-	 * @param bool $return [optional] <p>
104
-	 * Setting to <b>TRUE</b> will return the export,
105
-	 * as opposed to emitting it. Setting to <b>FALSE</b> (the default) will do the opposite.
106
-	 * </p>
107 100
 	 * @return string If the <i>return</i> parameter
108 101
 	 * is set to <b>TRUE</b>, then the export is returned as a string,
109 102
 	 * otherwise <b>NULL</b> is returned.
@@ -128,7 +121,7 @@  discard block
 block discarded – undo
128 121
 	 * (PHP 5)<br/>
129 122
 	 * Checks if class is defined internally by an extension, or the core
130 123
 	 * @link http://php.net/manual/en/reflectionclass.isinternal.php
131
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
124
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
132 125
 	 */
133 126
 	public function isInternal()
134 127
 	{
@@ -150,7 +143,7 @@  discard block
 block discarded – undo
150 143
 	 * (PHP 5)<br/>
151 144
 	 * Checks if the class is instantiable
152 145
 	 * @link http://php.net/manual/en/reflectionclass.isinstantiable.php
153
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
146
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
154 147
 	 */
155 148
 	public function isInstantiable()
156 149
 	{
@@ -161,7 +154,7 @@  discard block
 block discarded – undo
161 154
 	 * (PHP &gt;= 5.4.0)<br/>
162 155
 	 * Returns whether this class is cloneable
163 156
 	 * @link http://php.net/manual/en/reflectionclass.iscloneable.php
164
-	 * @return bool <b>TRUE</b> if the class is cloneable, <b>FALSE</b> otherwise.
157
+	 * @return boolean|null <b>TRUE</b> if the class is cloneable, <b>FALSE</b> otherwise.
165 158
 	 */
166 159
 	public function isCloneable()
167 160
 	{
@@ -329,7 +322,7 @@  discard block
 block discarded – undo
329 322
 	 * @param string $name <p>
330 323
 	 * The name of the constant being checked for.
331 324
 	 * </p>
332
-	 * @return bool <b>TRUE</b> if the constant is defined, otherwise <b>FALSE</b>.
325
+	 * @return boolean|null <b>TRUE</b> if the constant is defined, otherwise <b>FALSE</b>.
333 326
 	 */
334 327
 	public function hasConstant($name)
335 328
 	{
@@ -450,7 +443,7 @@  discard block
 block discarded – undo
450 443
 	 * (PHP 5)<br/>
451 444
 	 * Checks if class is abstract
452 445
 	 * @link http://php.net/manual/en/reflectionclass.isabstract.php
453
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
446
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
454 447
 	 */
455 448
 	public function isAbstract()
456 449
 	{
@@ -461,7 +454,7 @@  discard block
 block discarded – undo
461 454
 	 * (PHP 5)<br/>
462 455
 	 * Checks if class is final
463 456
 	 * @link http://php.net/manual/en/reflectionclass.isfinal.php
464
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
457
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
465 458
 	 */
466 459
 	public function isFinal()
467 460
 	{
@@ -487,7 +480,7 @@  discard block
 block discarded – undo
487 480
 	 * @param object $object <p>
488 481
 	 * The object being compared to.
489 482
 	 * </p>
490
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
483
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
491 484
 	 */
492 485
 	public function isInstance($object)
493 486
 	{
@@ -553,7 +546,7 @@  discard block
 block discarded – undo
553 546
 	 * @param string $class <p>
554 547
 	 * The class name being checked against.
555 548
 	 * </p>
556
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
549
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
557 550
 	 */
558 551
 	public function isSubclassOf($class)
559 552
 	{
@@ -623,7 +616,7 @@  discard block
 block discarded – undo
623 616
 	 * (PHP 5)<br/>
624 617
 	 * Checks if iterateable
625 618
 	 * @link http://php.net/manual/en/reflectionclass.isiterateable.php
626
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
619
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
627 620
 	 */
628 621
 	public function isIterateable()
629 622
 	{
@@ -637,7 +630,7 @@  discard block
 block discarded – undo
637 630
 	 * @param string $interface <p>
638 631
 	 * The interface name.
639 632
 	 * </p>
640
-	 * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
633
+	 * @return boolean|null <b>TRUE</b> on success or <b>FALSE</b> on failure.
641 634
 	 */
642 635
 	public function implementsInterface($interface)
643 636
 	{
@@ -660,7 +653,7 @@  discard block
 block discarded – undo
660 653
 	 * (PHP 5)<br/>
661 654
 	 * Gets the name of the extension which defined the class
662 655
 	 * @link http://php.net/manual/en/reflectionclass.getextensionname.php
663
-	 * @return string The name of the extension which defined the class, or <b>FALSE</b> for user-defined classes.
656
+	 * @return boolean The name of the extension which defined the class, or <b>FALSE</b> for user-defined classes.
664 657
 	 */
665 658
 	public function getExtensionName()
666 659
 	{
Please login to merge, or discard this patch.