Completed
Branch BUG/required-message-fields (8f9492)
by
unknown
10:53 queued 20s
created
core/domain/services/graphql/enums/AttendeesConnectionOrderbyEnum.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function __construct()
22 22
     {
23
-        $this->setName($this->namespace . 'AttendeesConnectionOrderbyEnum');
23
+        $this->setName($this->namespace.'AttendeesConnectionOrderbyEnum');
24 24
         $this->setDescription(esc_html__('Field to order the connection by', 'event_espresso'));
25 25
         parent::__construct();
26 26
     }
Please login to merge, or discard this patch.
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -14,35 +14,35 @@
 block discarded – undo
14 14
  */
15 15
 class AttendeesConnectionOrderbyEnum extends EnumBase
16 16
 {
17
-    /**
18
-     * AttendeesConnectionOrderbyEnum constructor.
19
-     */
20
-    public function __construct()
21
-    {
22
-        $this->setName($this->namespace . 'AttendeesConnectionOrderbyEnum');
23
-        $this->setDescription(esc_html__('Field to order the connection by', 'event_espresso'));
24
-        parent::__construct();
25
-    }
17
+	/**
18
+	 * AttendeesConnectionOrderbyEnum constructor.
19
+	 */
20
+	public function __construct()
21
+	{
22
+		$this->setName($this->namespace . 'AttendeesConnectionOrderbyEnum');
23
+		$this->setDescription(esc_html__('Field to order the connection by', 'event_espresso'));
24
+		parent::__construct();
25
+	}
26 26
 
27 27
 
28
-    /**
29
-     * @return array
30
-     */
31
-    protected function getValues(): array
32
-    {
33
-        return [
34
-            'ID'     => [
35
-                'value'       => 'ATT_ID',
36
-                'description' => esc_html__('Order by ID', 'event_espresso'),
37
-            ],
38
-            'LAST_NAME'     => [
39
-                'value'       => 'ATT_lname',
40
-                'description' => esc_html__('Order by last name', 'event_espresso'),
41
-            ],
42
-            'FIRST_NAME'     => [
43
-                'value'       => 'ATT_fname',
44
-                'description' => esc_html__('Order by first name', 'event_espresso'),
45
-            ],
46
-        ];
47
-    }
28
+	/**
29
+	 * @return array
30
+	 */
31
+	protected function getValues(): array
32
+	{
33
+		return [
34
+			'ID'     => [
35
+				'value'       => 'ATT_ID',
36
+				'description' => esc_html__('Order by ID', 'event_espresso'),
37
+			],
38
+			'LAST_NAME'     => [
39
+				'value'       => 'ATT_lname',
40
+				'description' => esc_html__('Order by last name', 'event_espresso'),
41
+			],
42
+			'FIRST_NAME'     => [
43
+				'value'       => 'ATT_fname',
44
+				'description' => esc_html__('Order by first name', 'event_espresso'),
45
+			],
46
+		];
47
+	}
48 48
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/connections/RootQueryAttendeesConnection.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
     {
39 39
         return [
40 40
             'fromType'           => 'RootQuery',
41
-            'toType'             => $this->namespace . 'Attendee',
42
-            'fromFieldName'      => lcfirst($this->namespace) . 'Attendees',
41
+            'toType'             => $this->namespace.'Attendee',
42
+            'fromFieldName'      => lcfirst($this->namespace).'Attendees',
43 43
             'connectionTypeName' => "{$this->namespace}RootQueryAttendeesConnection",
44 44
             'connectionArgs'     => self::get_connection_args(),
45 45
             'resolve'            => [$this, 'resolveConnection'],
Please login to merge, or discard this patch.
Indentation   +118 added lines, -118 removed lines patch added patch discarded remove patch
@@ -18,128 +18,128 @@
 block discarded – undo
18 18
  */
19 19
 class RootQueryAttendeesConnection extends AbstractRootQueryConnection
20 20
 {
21
-    /**
22
-     * AttendeeConnection constructor.
23
-     *
24
-     * @param EEM_Attendee               $model
25
-     */
26
-    public function __construct(EEM_Attendee $model)
27
-    {
28
-        parent::__construct($model);
29
-    }
21
+	/**
22
+	 * AttendeeConnection constructor.
23
+	 *
24
+	 * @param EEM_Attendee               $model
25
+	 */
26
+	public function __construct(EEM_Attendee $model)
27
+	{
28
+		parent::__construct($model);
29
+	}
30 30
 
31 31
 
32
-    /**
33
-     * @return array
34
-     */
35
-    public function config(): array
36
-    {
37
-        return [
38
-            'fromType'           => 'RootQuery',
39
-            'toType'             => $this->namespace . 'Attendee',
40
-            'fromFieldName'      => lcfirst($this->namespace) . 'Attendees',
41
-            'connectionTypeName' => "{$this->namespace}RootQueryAttendeesConnection",
42
-            'connectionArgs'     => self::get_connection_args(),
43
-            'resolve'            => [$this, 'resolveConnection'],
44
-        ];
45
-    }
32
+	/**
33
+	 * @return array
34
+	 */
35
+	public function config(): array
36
+	{
37
+		return [
38
+			'fromType'           => 'RootQuery',
39
+			'toType'             => $this->namespace . 'Attendee',
40
+			'fromFieldName'      => lcfirst($this->namespace) . 'Attendees',
41
+			'connectionTypeName' => "{$this->namespace}RootQueryAttendeesConnection",
42
+			'connectionArgs'     => self::get_connection_args(),
43
+			'resolve'            => [$this, 'resolveConnection'],
44
+		];
45
+	}
46 46
 
47 47
 
48
-    /**
49
-     * @param $entity
50
-     * @param $args
51
-     * @param $context
52
-     * @param $info
53
-     * @return AttendeeConnectionResolver
54
-     * @throws Exception
55
-     */
56
-    public function getConnectionResolver($entity, $args, $context, $info): AbstractConnectionResolver
57
-    {
58
-        return new AttendeeConnectionResolver($entity, $args, $context, $info);
59
-    }
48
+	/**
49
+	 * @param $entity
50
+	 * @param $args
51
+	 * @param $context
52
+	 * @param $info
53
+	 * @return AttendeeConnectionResolver
54
+	 * @throws Exception
55
+	 */
56
+	public function getConnectionResolver($entity, $args, $context, $info): AbstractConnectionResolver
57
+	{
58
+		return new AttendeeConnectionResolver($entity, $args, $context, $info);
59
+	}
60 60
 
61
-    /**
62
-     * Given an optional array of args, this returns the args to be used in the connection
63
-     *
64
-     * @param array $args The args to modify the defaults
65
-     * @return array
66
-     */
67
-    // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps
68
-    public static function get_connection_args(array $args = []): array
69
-    {
70
-        $newArgs = [
71
-            'datetime' => [
72
-                'type'        => 'ID',
73
-                'description' => esc_html__(
74
-                    'Globally unique datetime ID to get the attendees for.',
75
-                    'event_espresso'
76
-                ),
77
-            ],
78
-            'datetimeIn' => [
79
-                'type'        => ['list_of' => 'ID'],
80
-                'description' => esc_html__(
81
-                    'Globally unique datetime IDs to get the attendees for.',
82
-                    'event_espresso'
83
-                ),
84
-            ],
85
-            'event' => [
86
-                'type'        => 'ID',
87
-                'description' => esc_html__(
88
-                    'Globally unique event ID to get the attendees for.',
89
-                    'event_espresso'
90
-                ),
91
-            ],
92
-            'eventIn' => [
93
-                'type'        => ['list_of' => 'ID'],
94
-                'description' => esc_html__(
95
-                    'Globally unique event IDs to get the attendees for.',
96
-                    'event_espresso'
97
-                ),
98
-            ],
99
-            'orderby'      => [
100
-                'type'        => ['list_of' => 'EspressoAttendeesConnectionOrderbyInput'],
101
-                'description' => esc_html__('What parameter to use to order the objects by.', 'event_espresso'),
102
-            ],
103
-            'regTicket' => [
104
-                'type'        => 'ID',
105
-                'description' => esc_html__(
106
-                    'Globally unique registration ticket ID to get the attendees for.',
107
-                    'event_espresso'
108
-                ),
109
-            ],
110
-            'regTicketIn' => [
111
-                'type'        => ['list_of' => 'ID'],
112
-                'description' => esc_html__(
113
-                    'Globally unique registration ticket IDs to get the attendees for.',
114
-                    'event_espresso'
115
-                ),
116
-            ],
117
-            'regTicketId' => [
118
-                'type'        => 'Int',
119
-                'description' => esc_html__('Registration ticket ID to get the attendees for.', 'event_espresso'),
120
-            ],
121
-            'regTicketIdIn' => [
122
-                'type'        => ['list_of' => 'Int'],
123
-                'description' => esc_html__('Registration ticket IDs to get the attendees for.', 'event_espresso'),
124
-            ],
125
-            'regStatus' => [
126
-                'type'        => 'EspressoRegistrationStatusEnum',
127
-                'description' => esc_html__('Limit attendees to registration status.', 'event_espresso'),
128
-            ],
129
-            'search' => [
130
-                'type'        => 'String',
131
-                'description' => esc_html__('The search keywords', 'event_espresso'),
132
-            ],
133
-        ];
61
+	/**
62
+	 * Given an optional array of args, this returns the args to be used in the connection
63
+	 *
64
+	 * @param array $args The args to modify the defaults
65
+	 * @return array
66
+	 */
67
+	// phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps
68
+	public static function get_connection_args(array $args = []): array
69
+	{
70
+		$newArgs = [
71
+			'datetime' => [
72
+				'type'        => 'ID',
73
+				'description' => esc_html__(
74
+					'Globally unique datetime ID to get the attendees for.',
75
+					'event_espresso'
76
+				),
77
+			],
78
+			'datetimeIn' => [
79
+				'type'        => ['list_of' => 'ID'],
80
+				'description' => esc_html__(
81
+					'Globally unique datetime IDs to get the attendees for.',
82
+					'event_espresso'
83
+				),
84
+			],
85
+			'event' => [
86
+				'type'        => 'ID',
87
+				'description' => esc_html__(
88
+					'Globally unique event ID to get the attendees for.',
89
+					'event_espresso'
90
+				),
91
+			],
92
+			'eventIn' => [
93
+				'type'        => ['list_of' => 'ID'],
94
+				'description' => esc_html__(
95
+					'Globally unique event IDs to get the attendees for.',
96
+					'event_espresso'
97
+				),
98
+			],
99
+			'orderby'      => [
100
+				'type'        => ['list_of' => 'EspressoAttendeesConnectionOrderbyInput'],
101
+				'description' => esc_html__('What parameter to use to order the objects by.', 'event_espresso'),
102
+			],
103
+			'regTicket' => [
104
+				'type'        => 'ID',
105
+				'description' => esc_html__(
106
+					'Globally unique registration ticket ID to get the attendees for.',
107
+					'event_espresso'
108
+				),
109
+			],
110
+			'regTicketIn' => [
111
+				'type'        => ['list_of' => 'ID'],
112
+				'description' => esc_html__(
113
+					'Globally unique registration ticket IDs to get the attendees for.',
114
+					'event_espresso'
115
+				),
116
+			],
117
+			'regTicketId' => [
118
+				'type'        => 'Int',
119
+				'description' => esc_html__('Registration ticket ID to get the attendees for.', 'event_espresso'),
120
+			],
121
+			'regTicketIdIn' => [
122
+				'type'        => ['list_of' => 'Int'],
123
+				'description' => esc_html__('Registration ticket IDs to get the attendees for.', 'event_espresso'),
124
+			],
125
+			'regStatus' => [
126
+				'type'        => 'EspressoRegistrationStatusEnum',
127
+				'description' => esc_html__('Limit attendees to registration status.', 'event_espresso'),
128
+			],
129
+			'search' => [
130
+				'type'        => 'String',
131
+				'description' => esc_html__('The search keywords', 'event_espresso'),
132
+			],
133
+		];
134 134
 
135
-        $newArgs = apply_filters(
136
-            'FHEE__EventEspresso_core_domain_services_graphql_connections__attendee_args',
137
-            $newArgs,
138
-            $args
139
-        );
140
-        return array_merge(
141
-            $newArgs,
142
-            $args
143
-        );
144
-    }
135
+		$newArgs = apply_filters(
136
+			'FHEE__EventEspresso_core_domain_services_graphql_connections__attendee_args',
137
+			$newArgs,
138
+			$args
139
+		);
140
+		return array_merge(
141
+			$newArgs,
142
+			$args
143
+		);
144
+	}
145 145
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/inputs/AttendeesConnectionOrderbyInput.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function __construct()
26 26
     {
27
-        $this->setName($this->namespace . 'AttendeesConnectionOrderbyInput');
27
+        $this->setName($this->namespace.'AttendeesConnectionOrderbyInput');
28 28
         $this->setDescription(esc_html__('Options for ordering the connection', 'event_espresso'));
29 29
         parent::__construct();
30 30
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         return [
40 40
             new GraphQLField(
41 41
                 'field',
42
-                ['non_null' => $this->namespace . 'AttendeesConnectionOrderbyEnum']
42
+                ['non_null' => $this->namespace.'AttendeesConnectionOrderbyEnum']
43 43
             ),
44 44
             new GraphQLField(
45 45
                 'order',
Please login to merge, or discard this patch.
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -16,31 +16,31 @@
 block discarded – undo
16 16
  */
17 17
 class AttendeesConnectionOrderbyInput extends InputBase
18 18
 {
19
-    /**
20
-     * AttendeesConnectionOrderbyInput constructor.
21
-     */
22
-    public function __construct()
23
-    {
24
-        $this->setName($this->namespace . 'AttendeesConnectionOrderbyInput');
25
-        $this->setDescription(esc_html__('Options for ordering the connection', 'event_espresso'));
26
-        parent::__construct();
27
-    }
19
+	/**
20
+	 * AttendeesConnectionOrderbyInput constructor.
21
+	 */
22
+	public function __construct()
23
+	{
24
+		$this->setName($this->namespace . 'AttendeesConnectionOrderbyInput');
25
+		$this->setDescription(esc_html__('Options for ordering the connection', 'event_espresso'));
26
+		parent::__construct();
27
+	}
28 28
 
29 29
 
30
-    /**
31
-     * @return GraphQLFieldInterface[]
32
-     */
33
-    protected function getFields(): array
34
-    {
35
-        return [
36
-            new GraphQLField(
37
-                'field',
38
-                ['non_null' => $this->namespace . 'AttendeesConnectionOrderbyEnum']
39
-            ),
40
-            new GraphQLField(
41
-                'order',
42
-                'OrderEnum'
43
-            ),
44
-        ];
45
-    }
30
+	/**
31
+	 * @return GraphQLFieldInterface[]
32
+	 */
33
+	protected function getFields(): array
34
+	{
35
+		return [
36
+			new GraphQLField(
37
+				'field',
38
+				['non_null' => $this->namespace . 'AttendeesConnectionOrderbyEnum']
39
+			),
40
+			new GraphQLField(
41
+				'order',
42
+				'OrderEnum'
43
+			),
44
+		];
45
+	}
46 46
 }
Please login to merge, or discard this patch.
core/domain/entities/admin/GraphQLData/Prices.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function getData(array $where_params = [])
22 22
     {
23
-        $field_key = lcfirst($this->namespace) . 'Prices';
23
+        $field_key = lcfirst($this->namespace).'Prices';
24 24
         $query = <<<QUERY
25 25
         query GET_PRICES(\$where: {$this->namespace}RootQueryPricesConnectionWhereArgs, \$first: Int, \$last: Int ) {
26 26
             {$field_key}(where: \$where, first: \$first, last: \$last) {
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
  */
13 13
 class Prices extends GraphQLData
14 14
 {
15
-    /**
16
-     * @param array $where_params
17
-     * @return array|null
18
-     * @since $VID:$
19
-     */
20
-    public function getData(array $where_params = [])
21
-    {
22
-        $field_key = lcfirst($this->namespace) . 'Prices';
23
-        $query = <<<QUERY
15
+	/**
16
+	 * @param array $where_params
17
+	 * @return array|null
18
+	 * @since $VID:$
19
+	 */
20
+	public function getData(array $where_params = [])
21
+	{
22
+		$field_key = lcfirst($this->namespace) . 'Prices';
23
+		$query = <<<QUERY
24 24
         query GET_PRICES(\$where: {$this->namespace}RootQueryPricesConnectionWhereArgs, \$first: Int, \$last: Int ) {
25 25
             {$field_key}(where: \$where, first: \$first, last: \$last) {
26 26
                 nodes {
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
             }
45 45
         }
46 46
 QUERY;
47
-        $this->setParams([
48
-            'operation_name' => 'GET_PRICES',
49
-            'variables'      => [
50
-                'first' => 100,
51
-            ],
52
-            'query'          => $query,
53
-        ]);
47
+		$this->setParams([
48
+			'operation_name' => 'GET_PRICES',
49
+			'variables'      => [
50
+				'first' => 100,
51
+			],
52
+			'query'          => $query,
53
+		]);
54 54
 
55
-        return $this->getQueryResponse($field_key, $where_params);
56
-    }
55
+		return $this->getQueryResponse($field_key, $where_params);
56
+	}
57 57
 }
Please login to merge, or discard this patch.
core/domain/entities/admin/GraphQLData/Tickets.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function getData(array $where_params = [])
22 22
     {
23
-        $field_key = lcfirst($this->namespace) . 'Tickets';
23
+        $field_key = lcfirst($this->namespace).'Tickets';
24 24
         $query = <<<QUERY
25 25
         query GET_TICKETS(\$where: {$this->namespace}RootQueryTicketsConnectionWhereArgs, \$first: Int, \$last: Int ) {
26 26
             {$field_key}(where: \$where, first: \$first, last: \$last) {
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
  */
13 13
 class Tickets extends GraphQLData
14 14
 {
15
-    /**
16
-     * @param array $where_params
17
-     * @return array|null
18
-     * @since $VID:$
19
-     */
20
-    public function getData(array $where_params = [])
21
-    {
22
-        $field_key = lcfirst($this->namespace) . 'Tickets';
23
-        $query = <<<QUERY
15
+	/**
16
+	 * @param array $where_params
17
+	 * @return array|null
18
+	 * @since $VID:$
19
+	 */
20
+	public function getData(array $where_params = [])
21
+	{
22
+		$field_key = lcfirst($this->namespace) . 'Tickets';
23
+		$query = <<<QUERY
24 24
         query GET_TICKETS(\$where: {$this->namespace}RootQueryTicketsConnectionWhereArgs, \$first: Int, \$last: Int ) {
25 25
             {$field_key}(where: \$where, first: \$first, last: \$last) {
26 26
                 nodes {
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
             }
58 58
         }
59 59
 QUERY;
60
-        $this->setParams([
61
-            'operation_name' => 'GET_TICKETS',
62
-            'variables'      => [
63
-                'first' => 100,
64
-            ],
65
-            'query'          => $query,
66
-        ]);
60
+		$this->setParams([
61
+			'operation_name' => 'GET_TICKETS',
62
+			'variables'      => [
63
+				'first' => 100,
64
+			],
65
+			'query'          => $query,
66
+		]);
67 67
 
68
-        return $this->getQueryResponse($field_key, $where_params);
69
-    }
68
+		return $this->getQueryResponse($field_key, $where_params);
69
+	}
70 70
 }
Please login to merge, or discard this patch.
core/domain/entities/admin/GraphQLData/PriceTypes.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function getData(array $where_params = [])
22 22
     {
23
-        $field_key = lcfirst($this->namespace) . 'PriceTypes';
23
+        $field_key = lcfirst($this->namespace).'PriceTypes';
24 24
         $query = <<<QUERY
25 25
         query GET_PRICE_TYPES(\$first: Int, \$last: Int ) {
26 26
             {$field_key}(first: \$first, last: \$last) {
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
  */
13 13
 class PriceTypes extends GraphQLData
14 14
 {
15
-    /**
16
-     * @param array $where_params
17
-     * @return array|null
18
-     * @since $VID:$
19
-     */
20
-    public function getData(array $where_params = [])
21
-    {
22
-        $field_key = lcfirst($this->namespace) . 'PriceTypes';
23
-        $query = <<<QUERY
15
+	/**
16
+	 * @param array $where_params
17
+	 * @return array|null
18
+	 * @since $VID:$
19
+	 */
20
+	public function getData(array $where_params = [])
21
+	{
22
+		$field_key = lcfirst($this->namespace) . 'PriceTypes';
23
+		$query = <<<QUERY
24 24
         query GET_PRICE_TYPES(\$first: Int, \$last: Int ) {
25 25
             {$field_key}(first: \$first, last: \$last) {
26 26
                 nodes {
@@ -41,14 +41,14 @@  discard block
 block discarded – undo
41 41
             }
42 42
         }
43 43
 QUERY;
44
-        $this->setParams([
45
-            'operation_name' => 'GET_PRICE_TYPES',
46
-            'variables'      => [
47
-                'first' => 100,
48
-            ],
49
-            'query'          => $query,
50
-        ]);
44
+		$this->setParams([
45
+			'operation_name' => 'GET_PRICE_TYPES',
46
+			'variables'      => [
47
+				'first' => 100,
48
+			],
49
+			'query'          => $query,
50
+		]);
51 51
 
52
-        return $this->getQueryResponse($field_key, $where_params);
53
-    }
52
+		return $this->getQueryResponse($field_key, $where_params);
53
+	}
54 54
 }
Please login to merge, or discard this patch.
core/domain/entities/admin/GraphQLData/Datetimes.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function getData(array $where_params = [])
22 22
     {
23
-        $field_key = lcfirst($this->namespace) . 'Datetimes';
23
+        $field_key = lcfirst($this->namespace).'Datetimes';
24 24
         $query = <<<QUERY
25 25
         query GET_DATETIMES(\$where: {$this->namespace}RootQueryDatetimesConnectionWhereArgs, \$first: Int, \$last: Int ) {
26 26
             {$field_key}(where: \$where, first: \$first, last: \$last) {
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
  */
13 13
 class Datetimes extends GraphQLData
14 14
 {
15
-    /**
16
-     * @param array $where_params
17
-     * @return array|null
18
-     * @since $VID:$
19
-     */
20
-    public function getData(array $where_params = [])
21
-    {
22
-        $field_key = lcfirst($this->namespace) . 'Datetimes';
23
-        $query = <<<QUERY
15
+	/**
16
+	 * @param array $where_params
17
+	 * @return array|null
18
+	 * @since $VID:$
19
+	 */
20
+	public function getData(array $where_params = [])
21
+	{
22
+		$field_key = lcfirst($this->namespace) . 'Datetimes';
23
+		$query = <<<QUERY
24 24
         query GET_DATETIMES(\$where: {$this->namespace}RootQueryDatetimesConnectionWhereArgs, \$first: Int, \$last: Int ) {
25 25
             {$field_key}(where: \$where, first: \$first, last: \$last) {
26 26
                 nodes {
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
             }
51 51
         }
52 52
 QUERY;
53
-        $this->setParams([
54
-            'operation_name' => 'GET_DATETIMES',
55
-            'variables'      => [
56
-                'first' => 100,
57
-            ],
58
-            'query'          => $query,
59
-        ]);
53
+		$this->setParams([
54
+			'operation_name' => 'GET_DATETIMES',
55
+			'variables'      => [
56
+				'first' => 100,
57
+			],
58
+			'query'          => $query,
59
+		]);
60 60
 
61
-        return $this->getQueryResponse($field_key, $where_params);
62
-    }
61
+		return $this->getQueryResponse($field_key, $where_params);
62
+	}
63 63
 }
Please login to merge, or discard this patch.
core/services/graphql/loaders/DataLoaderCollection.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     private function loadCollection()
51 51
     {
52
-        if (! $this->loader instanceof CollectionLoader) {
52
+        if ( ! $this->loader instanceof CollectionLoader) {
53 53
             $this->loader = new CollectionLoader(
54 54
                 new CollectionDetails(
55 55
                     // collection name
Please login to merge, or discard this patch.
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -20,72 +20,72 @@
 block discarded – undo
20 20
  */
21 21
 class DataLoaderCollection extends Collection
22 22
 {
23
-    const COLLECTION_NAME = 'espresso_graphql_data_loaders';
23
+	const COLLECTION_NAME = 'espresso_graphql_data_loaders';
24 24
 
25
-    const COLLECTION_INTERFACE = 'EventEspresso\core\services\graphql\loaders\GQLDataDomainInterface';
25
+	const COLLECTION_INTERFACE = 'EventEspresso\core\services\graphql\loaders\GQLDataDomainInterface';
26 26
 
27
-    /**
28
-     * @var CollectionLoader $loader
29
-     */
30
-    protected $loader;
27
+	/**
28
+	 * @var CollectionLoader $loader
29
+	 */
30
+	protected $loader;
31 31
 
32 32
 
33
-    /**
34
-     * DataLoaderCollection constructor
35
-     *
36
-     * @throws InvalidInterfaceException
37
-     */
38
-    public function __construct()
39
-    {
40
-        parent::__construct(
41
-            DataLoaderCollection::COLLECTION_INTERFACE,
42
-            DataLoaderCollection::COLLECTION_NAME
43
-        );
44
-    }
33
+	/**
34
+	 * DataLoaderCollection constructor
35
+	 *
36
+	 * @throws InvalidInterfaceException
37
+	 */
38
+	public function __construct()
39
+	{
40
+		parent::__construct(
41
+			DataLoaderCollection::COLLECTION_INTERFACE,
42
+			DataLoaderCollection::COLLECTION_NAME
43
+		);
44
+	}
45 45
 
46 46
 
47
-    /**
48
-     * @throws CollectionDetailsException
49
-     * @throws CollectionLoaderException
50
-     * @since $VID:$
51
-     */
52
-    private function loadCollection()
53
-    {
54
-        if (! $this->loader instanceof CollectionLoader) {
55
-            $this->loader = new CollectionLoader(
56
-                new CollectionDetails(
57
-                    // collection name
58
-                    DataLoaderCollection::COLLECTION_NAME,
59
-                    // collection interface
60
-                    DataLoaderCollection::COLLECTION_INTERFACE,
61
-                    // FQCNs for classes to add (all classes within each namespace will be loaded)
62
-                    apply_filters(
63
-                        'FHEE__EventEspresso_core_services_graphql_DataLoaderCollection__loadCollection__collection_FQCNs',
64
-                        ['EventEspresso\core\domain\services\graphql\data\domains']
65
-                    ),
66
-                    // filepaths to classes to add
67
-                    array(),
68
-                    // file mask to use if parsing folder for files to add
69
-                    '',
70
-                    // what to use as identifier for collection entities
71
-                    // using CLASS NAME prevents duplicates (works like a singleton)
72
-                    CollectionDetails::ID_CLASS_NAME
73
-                ),
74
-                $this
75
-            );
76
-        }
77
-    }
47
+	/**
48
+	 * @throws CollectionDetailsException
49
+	 * @throws CollectionLoaderException
50
+	 * @since $VID:$
51
+	 */
52
+	private function loadCollection()
53
+	{
54
+		if (! $this->loader instanceof CollectionLoader) {
55
+			$this->loader = new CollectionLoader(
56
+				new CollectionDetails(
57
+					// collection name
58
+					DataLoaderCollection::COLLECTION_NAME,
59
+					// collection interface
60
+					DataLoaderCollection::COLLECTION_INTERFACE,
61
+					// FQCNs for classes to add (all classes within each namespace will be loaded)
62
+					apply_filters(
63
+						'FHEE__EventEspresso_core_services_graphql_DataLoaderCollection__loadCollection__collection_FQCNs',
64
+						['EventEspresso\core\domain\services\graphql\data\domains']
65
+					),
66
+					// filepaths to classes to add
67
+					array(),
68
+					// file mask to use if parsing folder for files to add
69
+					'',
70
+					// what to use as identifier for collection entities
71
+					// using CLASS NAME prevents duplicates (works like a singleton)
72
+					CollectionDetails::ID_CLASS_NAME
73
+				),
74
+				$this
75
+			);
76
+		}
77
+	}
78 78
 
79 79
 
80
-    /**
81
-     * @return CollectionInterface
82
-     * @throws CollectionDetailsException
83
-     * @throws CollectionLoaderException
84
-     * @since $VID:$
85
-     */
86
-    public function getDataLoaders()
87
-    {
88
-        $this->loadCollection();
89
-        return $this->loader->getCollection();
90
-    }
80
+	/**
81
+	 * @return CollectionInterface
82
+	 * @throws CollectionDetailsException
83
+	 * @throws CollectionLoaderException
84
+	 * @since $VID:$
85
+	 */
86
+	public function getDataLoaders()
87
+	{
88
+		$this->loadCollection();
89
+		return $this->loader->getCollection();
90
+	}
91 91
 }
Please login to merge, or discard this patch.
core/domain/services/assets/ReactAssetManager.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -20,32 +20,32 @@
 block discarded – undo
20 20
 class ReactAssetManager extends AssetManager
21 21
 {
22 22
 
23
-    const REACT_VERSION = '16.13.1';
24
-
25
-    const JS_HANDLE_REACT = 'react';
26
-
27
-    const JS_HANDLE_REACT_DOM = 'react-dom';
28
-
29
-
30
-    /**
31
-     * @throws InvalidDataTypeException
32
-     * @throws InvalidEntityException
33
-     * @throws DuplicateCollectionIdentifierException
34
-     * @throws DomainException
35
-     */
36
-    public function addAssets()
37
-    {
38
-        $this->addVendorJavascript(
39
-            ReactAssetManager::JS_HANDLE_REACT,
40
-            [],
41
-            true,
42
-            ReactAssetManager::REACT_VERSION
43
-        );
44
-        $this->addVendorJavascript(
45
-            ReactAssetManager::JS_HANDLE_REACT_DOM,
46
-            [ReactAssetManager::JS_HANDLE_REACT],
47
-            true,
48
-            ReactAssetManager::REACT_VERSION
49
-        );
50
-    }
23
+	const REACT_VERSION = '16.13.1';
24
+
25
+	const JS_HANDLE_REACT = 'react';
26
+
27
+	const JS_HANDLE_REACT_DOM = 'react-dom';
28
+
29
+
30
+	/**
31
+	 * @throws InvalidDataTypeException
32
+	 * @throws InvalidEntityException
33
+	 * @throws DuplicateCollectionIdentifierException
34
+	 * @throws DomainException
35
+	 */
36
+	public function addAssets()
37
+	{
38
+		$this->addVendorJavascript(
39
+			ReactAssetManager::JS_HANDLE_REACT,
40
+			[],
41
+			true,
42
+			ReactAssetManager::REACT_VERSION
43
+		);
44
+		$this->addVendorJavascript(
45
+			ReactAssetManager::JS_HANDLE_REACT_DOM,
46
+			[ReactAssetManager::JS_HANDLE_REACT],
47
+			true,
48
+			ReactAssetManager::REACT_VERSION
49
+		);
50
+	}
51 51
 }
Please login to merge, or discard this patch.