Completed
Pull Request — master (#41)
by
unknown
07:49
created
src/Entities/Assertions/AssertionFactory.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      *
190 190
      * @param string $string The string potentially containing a structure name
191 191
      *
192
-     * @return boolean
192
+     * @return false|string
193 193
      */
194 194
     protected function filterType($string)
195 195
     {
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      *
245 245
      * @param string $string The string potentially containing a scalar type hint
246 246
      *
247
-     * @return boolean|string
247
+     * @return false|string
248 248
      */
249 249
     protected function filterScalarType($string)
250 250
     {
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      *
274 274
      * @param string $string The string potentially containing a type hint for a typed collection
275 275
      *
276
-     * @return boolean|string
276
+     * @return string|false
277 277
      */
278 278
     protected function filterTypedCollection($string)
279 279
     {
Please login to merge, or discard this patch.
src/Entities/Definitions/AttributeDefinition.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
     /**
200 200
      * Setter method for the $defaultValue property
201 201
      *
202
-     * @param mixed $defaultValue Default value of the attribute
202
+     * @param string|null $defaultValue Default value of the attribute
203 203
      *
204 204
      * @return null
205 205
      */
Please login to merge, or discard this patch.
src/Entities/Pointcuts/PointcutPointcut.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
     /**
104 104
      * Getter for the $referencedPointcuts property
105 105
      *
106
-     * @return array
106
+     * @return \AppserverIo\Doppelgaenger\Interfaces\PointcutInterface[]
107 107
      */
108 108
     public function getReferencedPointcuts()
109 109
     {
Please login to merge, or discard this patch.
src/Generator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -454,7 +454,7 @@
 block discarded – undo
454 454
      *
455 455
      * @param string $structureName The structure we want the cache path for
456 456
      *
457
-     * @return boolean|string
457
+     * @return false|string
458 458
      */
459 459
     public function getFileName($structureName)
460 460
     {
Please login to merge, or discard this patch.
src/Parser/AbstractStructureParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@
 block discarded – undo
217 217
     /**
218 218
      * Will check the main token array for the occurrence of a certain on (class, interface or trait)
219 219
      *
220
-     * @return string|boolean
220
+     * @return string|false
221 221
      */
222 222
     protected function getStructureToken()
223 223
     {
Please login to merge, or discard this patch.
src/Parser/AnnotationParser.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -21,13 +21,10 @@  discard block
 block discarded – undo
21 21
 namespace AppserverIo\Doppelgaenger\Parser;
22 22
 
23 23
 use AppserverIo\Doppelgaenger\Entities\Assertions\AssertionFactory;
24
-use AppserverIo\Doppelgaenger\Entities\Assertions\RawAssertion;
25
-use AppserverIo\Doppelgaenger\Entities\Assertions\TypedCollectionAssertion;
26 24
 use AppserverIo\Doppelgaenger\Entities\Definitions\AttributeDefinition;
27 25
 use AppserverIo\Doppelgaenger\Entities\Definitions\FunctionDefinition;
28 26
 use AppserverIo\Doppelgaenger\Entities\Joinpoint;
29 27
 use AppserverIo\Doppelgaenger\Entities\Lists\AssertionList;
30
-use AppserverIo\Doppelgaenger\Entities\Assertions\ChainedAssertion;
31 28
 use AppserverIo\Doppelgaenger\Config;
32 29
 use AppserverIo\Doppelgaenger\Entities\Lists\PointcutExpressionList;
33 30
 use AppserverIo\Doppelgaenger\Entities\PointcutExpression;
@@ -35,7 +32,6 @@  discard block
 block discarded – undo
35 32
 use AppserverIo\Doppelgaenger\Interfaces\AssertionInterface;
36 33
 use AppserverIo\Doppelgaenger\Interfaces\PropertiedStructureInterface;
37 34
 use AppserverIo\Doppelgaenger\Interfaces\StructureDefinitionInterface;
38
-use AppserverIo\Doppelgaenger\Dictionaries\ReservedKeywords;
39 35
 use AppserverIo\Psr\MetaobjectProtocol\Aop\Annotations\Introduce;
40 36
 use AppserverIo\Psr\MetaobjectProtocol\Dbc\Annotations\Ensures;
41 37
 use AppserverIo\Psr\MetaobjectProtocol\Dbc\Annotations\Invariant;
Please login to merge, or discard this patch.
src/Parser/FunctionParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      * @param array   $tokens       The token array
67 67
      * @param boolean $getRecursive Do we have to get the ancestral contents as well?
68 68
      *
69
-     * @return boolean|\AppserverIo\Doppelgaenger\Entities\Lists\FunctionDefinitionList
69
+     * @return FunctionDefinitionList
70 70
      */
71 71
     public function getDefinitionListFromTokens(array $tokens, $getRecursive = true)
72 72
     {
Please login to merge, or discard this patch.
src/Parser/InterfaceParser.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,6 @@
 block discarded – undo
21 21
 namespace AppserverIo\Doppelgaenger\Parser;
22 22
 
23 23
 use AppserverIo\Doppelgaenger\Entities\Definitions\InterfaceDefinition;
24
-use AppserverIo\Doppelgaenger\Entities\Definitions\FileDefinition;
25
-use AppserverIo\Doppelgaenger\Entities\Lists\StructureDefinitionList;
26 24
 use AppserverIo\Doppelgaenger\Exceptions\GeneratorException;
27 25
 use AppserverIo\Psr\MetaobjectProtocol\Dbc\Annotations\Invariant;
28 26
 
Please login to merge, or discard this patch.
src/StreamFilters/AbstractFilter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
 namespace AppserverIo\Doppelgaenger\StreamFilters;
22 22
 
23 23
 use AppserverIo\Doppelgaenger\Interfaces\StreamFilterInterface;
24
-use Monolog\Handler\error_log;
25 24
 
26 25
 /**
27 26
  * This abstract class provides a clean parent class for custom stream filters
Please login to merge, or discard this patch.