Code Duplication    Length = 10-11 lines in 8 locations

core/domain/services/graphql/connections/DatetimeTicketsConnection.php 1 location

@@ 38-48 (lines=11) @@
35
     * @return array
36
     * @since $VID:$
37
     */
38
    public function config()
39
    {
40
        return [
41
            'fromType'           => $this->namespace . 'Datetime',
42
            'toType'             => $this->namespace . 'Ticket',
43
            'fromFieldName'      => 'tickets',
44
            'connectionTypeName' => "{$this->namespace}DatetimeTicketsConnection",
45
            'connectionArgs'     => self::get_connection_args(),
46
            'resolve'            => [$this, 'resolveConnection'],
47
        ];
48
    }
49
50
51
    /**

core/domain/services/graphql/connections/EventDatetimesConnection.php 1 location

@@ 39-49 (lines=11) @@
36
     * @return array
37
     * @since $VID:$
38
     */
39
    public function config()
40
    {
41
        return [
42
            'fromType'           => $this->namespace . 'Event',
43
            'toType'             => $this->namespace . 'Datetime',
44
            'fromFieldName'      => 'datetimes',
45
            'connectionTypeName' => "{$this->namespace}EventDatetimesConnection",
46
            'connectionArgs'     => self::get_connection_args(),
47
            'resolve'            => [$this, 'resolveConnection'],
48
        ];
49
    }
50
51
52
    /**

core/domain/services/graphql/connections/RootQueryDatetimesConnection.php 1 location

@@ 37-47 (lines=11) @@
34
     * @return array
35
     * @since $VID:$
36
     */
37
    public function config()
38
    {
39
        return [
40
            'fromType'           => 'RootQuery',
41
            'toType'             => $this->namespace . 'Datetime',
42
            'fromFieldName'      => lcfirst($this->namespace . 'Datetimes'),
43
            'connectionTypeName' => "{$this->namespace}RootQueryDatetimesConnection",
44
            'connectionArgs'     => EventDatetimesConnection::get_connection_args(),
45
            'resolve'            => [$this, 'resolveConnection'],
46
        ];
47
    }
48
49
50
    /**

core/domain/services/graphql/connections/RootQueryPricesConnection.php 1 location

@@ 37-47 (lines=11) @@
34
     * @return array
35
     * @since $VID:$
36
     */
37
    public function config()
38
    {
39
        return [
40
            'fromType'           => 'RootQuery',
41
            'toType'             => $this->namespace . 'Price',
42
            'fromFieldName'      => lcfirst($this->namespace) . 'Prices',
43
            'connectionTypeName' => "{$this->namespace}RootQueryPricesConnection",
44
            'connectionArgs'     => TicketPricesConnection::get_connection_args(),
45
            'resolve'            => [$this, 'resolveConnection'],
46
        ];
47
    }
48
49
50
    /**

core/domain/services/graphql/connections/RootQueryPriceTypesConnection.php 1 location

@@ 37-46 (lines=10) @@
34
     * @return array
35
     * @since $VID:$
36
     */
37
    public function config()
38
    {
39
        return [
40
            'fromType'           => 'RootQuery',
41
            'toType'             => $this->namespace . 'PriceType',
42
            'fromFieldName'      => lcfirst($this->namespace) . 'PriceTypes',
43
            'connectionTypeName' => "{$this->namespace}RootQueryPriceTypesConnection",
44
            'resolve'            => [$this, 'resolveConnection'],
45
        ];
46
    }
47
48
49
    /**

core/domain/services/graphql/connections/RootQueryTicketsConnection.php 1 location

@@ 37-47 (lines=11) @@
34
     * @return array
35
     * @since $VID:$
36
     */
37
    public function config()
38
    {
39
        return [
40
            'fromType'           => 'RootQuery',
41
            'toType'             => $this->namespace . 'Ticket',
42
            'fromFieldName'      => lcfirst($this->namespace) . 'Tickets',
43
            'connectionTypeName' => "{$this->namespace}RootQueryTicketsConnection",
44
            'connectionArgs'     => DatetimeTicketsConnection::get_connection_args(),
45
            'resolve'            => [$this, 'resolveConnection'],
46
        ];
47
    }
48
49
50
    /**

core/domain/services/graphql/connections/TicketDatetimesConnection.php 1 location

@@ 39-49 (lines=11) @@
36
     * @return array
37
     * @since $VID:$
38
     */
39
    public function config()
40
    {
41
        return [
42
            'fromType'           => $this->namespace . 'Ticket',
43
            'toType'             => $this->namespace . 'Datetime',
44
            'fromFieldName'      => 'datetimes',
45
            'connectionTypeName' => "{$this->namespace}TicketDatetimesConnection",
46
            'connectionArgs'     => EventDatetimesConnection::get_connection_args(),
47
            'resolve'            => [$this, 'resolveConnection'],
48
        ];
49
    }
50
51
52
    /**

core/domain/services/graphql/connections/TicketPricesConnection.php 1 location

@@ 38-48 (lines=11) @@
35
     * @return array
36
     * @since $VID:$
37
     */
38
    public function config()
39
    {
40
        return [
41
            'fromType'           => $this->namespace . 'Ticket',
42
            'toType'             => $this->namespace . 'Price',
43
            'fromFieldName'      => 'prices',
44
            'connectionTypeName' => "{$this->namespace}TicketPricesConnection",
45
            'connectionArgs'     => self::get_connection_args(),
46
            'resolve'            => [$this, 'resolveConnection'],
47
        ];
48
    }
49
50
51
    /**