@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @return mixed |
|
| 42 | + * @return string |
|
| 43 | 43 | */ |
| 44 | 44 | public function getName() |
| 45 | 45 | { |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 3/17/17. |
| 15 | 15 | */ |
@@ -20,5 +20,8 @@ |
||
| 20 | 20 | { |
| 21 | 21 | public function getValue(); |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @return void |
|
| 25 | + */ |
|
| 23 | 26 | public function setValue($value); |
| 24 | 27 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 01.12.15. |
| 15 | 15 | */ |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * @return Field[]|FragmentInterface[]|Query[] |
|
| 64 | + * @return Query[] |
|
| 65 | 65 | */ |
| 66 | 66 | public function getFields() |
| 67 | 67 | { |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 23.11.15. |
| 15 | 15 | */ |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | public function hasFields() |
| 75 | 75 | { |
| 76 | - return (bool) \count($this->fields); |
|
| 76 | + return (bool)\count($this->fields); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -82,6 +82,10 @@ |
||
| 82 | 82 | /** @var int */ |
| 83 | 83 | private $column; |
| 84 | 84 | |
| 85 | + /** |
|
| 86 | + * @param integer $line |
|
| 87 | + * @param integer $column |
|
| 88 | + */ |
|
| 85 | 89 | public function __construct($type, $line, $column, $data = null) |
| 86 | 90 | { |
| 87 | 91 | $this->type = $type; |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 23.11.15. |
| 15 | 15 | */ |
@@ -219,6 +219,9 @@ discard block |
||
| 219 | 219 | return new Token($this->getKeyword($value), $this->getLine(), $this->getColumn(), $value); |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | + /** |
|
| 223 | + * @param string $name |
|
| 224 | + */ |
|
| 222 | 225 | protected function getKeyword($name) |
| 223 | 226 | { |
| 224 | 227 | switch ($name) { |
@@ -302,6 +305,9 @@ discard block |
||
| 302 | 305 | } |
| 303 | 306 | } |
| 304 | 307 | |
| 308 | + /** |
|
| 309 | + * @param string $message |
|
| 310 | + */ |
|
| 305 | 311 | protected function createException($message) |
| 306 | 312 | { |
| 307 | 313 | return new SyntaxErrorException(\sprintf('%s', $message), $this->getLocation()); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 23.11.15. |
| 15 | 15 | */ |
@@ -279,9 +279,9 @@ discard block |
||
| 279 | 279 | $value = \mb_substr($this->source, $start, $this->pos - $start); |
| 280 | 280 | |
| 281 | 281 | if (false === \mb_strpos($value, '.')) { |
| 282 | - $value = (int) $value; |
|
| 282 | + $value = (int)$value; |
|
| 283 | 283 | } else { |
| 284 | - $value = (float) $value; |
|
| 284 | + $value = (float)$value; |
|
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | return new Token(Token::TYPE_NUMBER, $this->getLine(), $this->getColumn(), $value); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * @param $cursor string |
| 54 | 54 | * |
| 55 | - * @return int|null |
|
| 55 | + * @return string|null |
|
| 56 | 56 | * |
| 57 | 57 | * @deprecated Use cursorToKey instead. |
| 58 | 58 | */ |
@@ -109,6 +109,10 @@ discard block |
||
| 109 | 109 | return self::connectionFromArraySlice($data, $args, 0, \count($data)); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param integer $sliceStart |
|
| 114 | + * @param integer $arrayLength |
|
| 115 | + */ |
|
| 112 | 116 | public static function connectionFromArraySlice(array $data, array $args, $sliceStart, $arrayLength) |
| 113 | 117 | { |
| 114 | 118 | $after = $args['after'] ?? null; |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 17.05.16. |
| 15 | 15 | */ |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | $index = \array_search($object, $data, true); |
| 30 | 30 | |
| 31 | - return false === $index ? null : (string) self::keyToCursor($index); |
|
| 31 | + return false === $index ? null : (string)self::keyToCursor($index); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | public static function keyToCursor($key) |
| 48 | 48 | { |
| 49 | - return \base64_encode(self::PREFIX . $key); |
|
| 49 | + return \base64_encode(self::PREFIX.$key); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $offset = \array_search($key, \array_keys($array), true); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - return null === $offset ? $default : (int) $offset; |
|
| 104 | + return null === $offset ? $default : (int)$offset; |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | public static function connectionFromArray(array $data, array $args = []) |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @param $typeName string name of type |
|
| 36 | + * @param string $typeName string name of type |
|
| 37 | 37 | * @param $id int local id |
| 38 | 38 | * |
| 39 | 39 | * @return string global id |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 10.05.16. |
| 15 | 15 | */ |
@@ -70,6 +70,9 @@ |
||
| 70 | 70 | return $this->directivesList; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param DirectiveInterface $directive |
|
| 75 | + */ |
|
| 73 | 76 | private function getDirectiveName($directive) |
| 74 | 77 | { |
| 75 | 78 | if (\is_string($directive)) { |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 3/24/17. |
| 15 | 15 | */ |
@@ -18,5 +18,8 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface ConfigValidatorInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return boolean |
|
| 23 | + */ |
|
| 21 | 24 | public function validate($data, $rules = [], $allowExtraFields = null); |
| 22 | 25 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 01.12.15. |
| 15 | 15 | */ |