@@ -77,19 +77,19 @@ |
||
77 | 77 | |
78 | 78 | /** @var NodeBuilder $rootNode */ |
79 | 79 | $config->scalarNode('target') |
80 | - ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
81 | - ->isRequired(); |
|
80 | + ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
81 | + ->isRequired(); |
|
82 | 82 | $config->variableNode('filters') |
83 | - ->info('Filters configuration'); |
|
83 | + ->info('Filters configuration'); |
|
84 | 84 | $config->variableNode('order_by'); |
85 | 85 | $config->variableNode('search_fields'); |
86 | 86 | $config->integerNode('limit')->info('Max number of records allowed for first & last')->defaultValue($this->limit); |
87 | 87 | $config->scalarNode('parent_field') |
88 | - ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
88 | + ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
89 | 89 | $config->enumNode('parent_relation') |
90 | - ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
91 | - ->defaultValue(self::ONE_TO_MANY) |
|
92 | - ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
90 | + ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
91 | + ->defaultValue(self::ONE_TO_MANY) |
|
92 | + ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $cursorOffset = $offset - 1; |
46 | 46 | foreach ($results as $result) { |
47 | - $cursorOffset ++; |
|
47 | + $cursorOffset++; |
|
48 | 48 | |
49 | 49 | if (!$this->connection->getPageInfo()->getStartCursor()) { |
50 | 50 | $this->connection->getPageInfo()->setStartCursor($this->encodeCursor($offset)); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | if ($pagination->getLast()) { |
117 | 117 | $offset = $count - $pagination->getLast(); |
118 | 118 | if ($offset < $this->decodeCursor($pagination->getAfter())) { |
119 | - $offset = $this->decodeCursor($pagination->getAfter()) + 1; |
|
119 | + $offset = $this->decodeCursor($pagination->getAfter()) + 1; |
|
120 | 120 | } |
121 | 121 | } else { |
122 | 122 | $offset = $this->decodeCursor($pagination->getAfter()) + 1; |