@@ -189,7 +189,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | { |
@@ -199,7 +199,7 @@ |
||
| 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 | */ |
@@ -103,7 +103,7 @@ |
||
| 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 | { |
@@ -454,7 +454,7 @@ |
||
| 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 | { |
@@ -217,7 +217,7 @@ |
||
| 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 | { |
@@ -21,13 +21,10 @@ discard block |
||
| 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 |
||
| 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; |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | * Will try to figure out if the passed assertion has a private context or not. |
| 401 | 401 | * This information will be entered into the assertion which will then be returned. |
| 402 | 402 | * |
| 403 | - * @param \AppserverIo\Doppelgaenger\Interfaces\AssertionInterface $assertion The assertion we need the context for |
|
| 403 | + * @param AssertionInterface|null $assertion The assertion we need the context for |
|
| 404 | 404 | * |
| 405 | 405 | * @return void |
| 406 | 406 | */ |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | * Will try to figure out if the passed assertion has a private context or not. |
| 461 | 461 | * This information will be entered into the assertion which will then be returned. |
| 462 | 462 | * |
| 463 | - * @param \AppserverIo\Doppelgaenger\Interfaces\AssertionInterface $assertion The assertion we need the minimal scope for |
|
| 463 | + * @param AssertionInterface|null $assertion The assertion we need the minimal scope for |
|
| 464 | 464 | * |
| 465 | 465 | * @return void |
| 466 | 466 | */ |
@@ -66,7 +66,7 @@ |
||
| 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 | { |
@@ -21,8 +21,6 @@ |
||
| 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 | |
@@ -21,7 +21,6 @@ |
||
| 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 |