Completed
Branch master (16095c)
by
unknown
09:17 queued 04:49
created
core/domain/services/graphql/data/loaders/PriceTypeLoader.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -15,27 +15,27 @@
 block discarded – undo
15 15
  */
16 16
 class PriceTypeLoader extends AbstractLoader
17 17
 {
18
-    /**
19
-     * @return EEM_Base
20
-     * @throws EE_Error
21
-     * @throws InvalidArgumentException
22
-     * @throws InvalidDataTypeException
23
-     * @throws InvalidInterfaceException
24
-     * @throws ReflectionException
25
-     */
26
-    protected function getQuery(): EEM_Base
27
-    {
28
-        return EEM_Price_Type::instance();
29
-    }
18
+	/**
19
+	 * @return EEM_Base
20
+	 * @throws EE_Error
21
+	 * @throws InvalidArgumentException
22
+	 * @throws InvalidDataTypeException
23
+	 * @throws InvalidInterfaceException
24
+	 * @throws ReflectionException
25
+	 */
26
+	protected function getQuery(): EEM_Base
27
+	{
28
+		return EEM_Price_Type::instance();
29
+	}
30 30
 
31
-    /**
32
-     * @param array $keys
33
-     * @return array
34
-     */
35
-    protected function getWhereParams(array $keys): array
36
-    {
37
-        return [
38
-            'PRT_ID' => ['IN', $keys],
39
-        ];
40
-    }
31
+	/**
32
+	 * @param array $keys
33
+	 * @return array
34
+	 */
35
+	protected function getWhereParams(array $keys): array
36
+	{
37
+		return [
38
+			'PRT_ID' => ['IN', $keys],
39
+		];
40
+	}
41 41
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/data/loaders/AttendeeLoader.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -15,28 +15,28 @@
 block discarded – undo
15 15
  */
16 16
 class AttendeeLoader extends AbstractLoader
17 17
 {
18
-    /**
19
-     * @return EEM_Base|EEM_Attendee
20
-     * @throws EE_Error
21
-     * @throws InvalidArgumentException
22
-     * @throws InvalidDataTypeException
23
-     * @throws InvalidInterfaceException
24
-     * @throws ReflectionException
25
-     */
26
-    protected function getQuery(): EEM_Base
27
-    {
28
-        return EEM_Attendee::instance();
29
-    }
18
+	/**
19
+	 * @return EEM_Base|EEM_Attendee
20
+	 * @throws EE_Error
21
+	 * @throws InvalidArgumentException
22
+	 * @throws InvalidDataTypeException
23
+	 * @throws InvalidInterfaceException
24
+	 * @throws ReflectionException
25
+	 */
26
+	protected function getQuery(): EEM_Base
27
+	{
28
+		return EEM_Attendee::instance();
29
+	}
30 30
 
31 31
 
32
-    /**
33
-     * @param array $keys
34
-     * @return array
35
-     */
36
-    protected function getWhereParams(array $keys): array
37
-    {
38
-        return [
39
-            'ATT_ID' => ['IN', $keys],
40
-        ];
41
-    }
32
+	/**
33
+	 * @param array $keys
34
+	 * @return array
35
+	 */
36
+	protected function getWhereParams(array $keys): array
37
+	{
38
+		return [
39
+			'ATT_ID' => ['IN', $keys],
40
+		];
41
+	}
42 42
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/data/loaders/FormSectionLoader.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -15,27 +15,27 @@
 block discarded – undo
15 15
  */
16 16
 class FormSectionLoader extends AbstractLoader
17 17
 {
18
-    /**
19
-     * @return EEM_Base
20
-     * @throws EE_Error
21
-     * @throws InvalidArgumentException
22
-     * @throws InvalidDataTypeException
23
-     * @throws InvalidInterfaceException
24
-     * @throws ReflectionException
25
-     */
26
-    protected function getQuery(): EEM_Base
27
-    {
28
-        return EEM_Form_Section::instance();
29
-    }
18
+	/**
19
+	 * @return EEM_Base
20
+	 * @throws EE_Error
21
+	 * @throws InvalidArgumentException
22
+	 * @throws InvalidDataTypeException
23
+	 * @throws InvalidInterfaceException
24
+	 * @throws ReflectionException
25
+	 */
26
+	protected function getQuery(): EEM_Base
27
+	{
28
+		return EEM_Form_Section::instance();
29
+	}
30 30
 
31
-    /**
32
-     * @param array $keys
33
-     * @return array
34
-     */
35
-    protected function getWhereParams(array $keys): array
36
-    {
37
-        return [
38
-            'FSC_UUID' => ['IN', $keys],
39
-        ];
40
-    }
31
+	/**
32
+	 * @param array $keys
33
+	 * @return array
34
+	 */
35
+	protected function getWhereParams(array $keys): array
36
+	{
37
+		return [
38
+			'FSC_UUID' => ['IN', $keys],
39
+		];
40
+	}
41 41
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/data/loaders/TicketLoader.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -15,28 +15,28 @@
 block discarded – undo
15 15
  */
16 16
 class TicketLoader extends AbstractLoader
17 17
 {
18
-    /**
19
-     * @return EEM_Base
20
-     * @throws EE_Error
21
-     * @throws InvalidArgumentException
22
-     * @throws InvalidDataTypeException
23
-     * @throws InvalidInterfaceException
24
-     * @throws ReflectionException
25
-     */
26
-    protected function getQuery(): EEM_Base
27
-    {
28
-        return EEM_Ticket::instance();
29
-    }
18
+	/**
19
+	 * @return EEM_Base
20
+	 * @throws EE_Error
21
+	 * @throws InvalidArgumentException
22
+	 * @throws InvalidDataTypeException
23
+	 * @throws InvalidInterfaceException
24
+	 * @throws ReflectionException
25
+	 */
26
+	protected function getQuery(): EEM_Base
27
+	{
28
+		return EEM_Ticket::instance();
29
+	}
30 30
 
31
-    /**
32
-     * @param array $keys
33
-     * @return array
34
-     */
35
-    protected function getWhereParams(array $keys): array
36
-    {
37
-        return [
38
-            'TKT_ID'      => ['IN', $keys],
39
-            'TKT_deleted' => ['IN', [true, false]]
40
-        ];
41
-    }
31
+	/**
32
+	 * @param array $keys
33
+	 * @return array
34
+	 */
35
+	protected function getWhereParams(array $keys): array
36
+	{
37
+		return [
38
+			'TKT_ID'      => ['IN', $keys],
39
+			'TKT_deleted' => ['IN', [true, false]]
40
+		];
41
+	}
42 42
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/data/loaders/PriceLoader.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -15,27 +15,27 @@
 block discarded – undo
15 15
  */
16 16
 class PriceLoader extends AbstractLoader
17 17
 {
18
-    /**
19
-     * @return EEM_Base
20
-     * @throws EE_Error
21
-     * @throws InvalidArgumentException
22
-     * @throws InvalidDataTypeException
23
-     * @throws InvalidInterfaceException
24
-     * @throws ReflectionException
25
-     */
26
-    protected function getQuery(): EEM_Base
27
-    {
28
-        return EEM_Price::instance();
29
-    }
18
+	/**
19
+	 * @return EEM_Base
20
+	 * @throws EE_Error
21
+	 * @throws InvalidArgumentException
22
+	 * @throws InvalidDataTypeException
23
+	 * @throws InvalidInterfaceException
24
+	 * @throws ReflectionException
25
+	 */
26
+	protected function getQuery(): EEM_Base
27
+	{
28
+		return EEM_Price::instance();
29
+	}
30 30
 
31
-    /**
32
-     * @param array $keys
33
-     * @return array
34
-     */
35
-    protected function getWhereParams(array $keys): array
36
-    {
37
-        return [
38
-            'PRC_ID' => ['IN', $keys],
39
-        ];
40
-    }
31
+	/**
32
+	 * @param array $keys
33
+	 * @return array
34
+	 */
35
+	protected function getWhereParams(array $keys): array
36
+	{
37
+		return [
38
+			'PRC_ID' => ['IN', $keys],
39
+		];
40
+	}
41 41
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/data/loaders/VenueLoader.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -15,27 +15,27 @@
 block discarded – undo
15 15
  */
16 16
 class VenueLoader extends AbstractLoader
17 17
 {
18
-    /**
19
-     * @return EEM_Base
20
-     * @throws EE_Error
21
-     * @throws InvalidArgumentException
22
-     * @throws InvalidDataTypeException
23
-     * @throws InvalidInterfaceException
24
-     * @throws ReflectionException
25
-     */
26
-    protected function getQuery(): EEM_Base
27
-    {
28
-        return EEM_Venue::instance();
29
-    }
18
+	/**
19
+	 * @return EEM_Base
20
+	 * @throws EE_Error
21
+	 * @throws InvalidArgumentException
22
+	 * @throws InvalidDataTypeException
23
+	 * @throws InvalidInterfaceException
24
+	 * @throws ReflectionException
25
+	 */
26
+	protected function getQuery(): EEM_Base
27
+	{
28
+		return EEM_Venue::instance();
29
+	}
30 30
 
31
-    /**
32
-     * @param array $keys
33
-     * @return array
34
-     */
35
-    protected function getWhereParams(array $keys): array
36
-    {
37
-        return [
38
-            'VNU_ID' => ['IN', $keys],
39
-        ];
40
-    }
31
+	/**
32
+	 * @param array $keys
33
+	 * @return array
34
+	 */
35
+	protected function getWhereParams(array $keys): array
36
+	{
37
+		return [
38
+			'VNU_ID' => ['IN', $keys],
39
+		];
40
+	}
41 41
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/data/loaders/DatetimeLoader.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -15,28 +15,28 @@
 block discarded – undo
15 15
  */
16 16
 class DatetimeLoader extends AbstractLoader
17 17
 {
18
-    /**
19
-     * @return EEM_Base
20
-     * @throws EE_Error
21
-     * @throws InvalidArgumentException
22
-     * @throws InvalidDataTypeException
23
-     * @throws InvalidInterfaceException
24
-     * @throws ReflectionException
25
-     */
26
-    protected function getQuery(): EEM_Base
27
-    {
28
-        return EEM_Datetime::instance();
29
-    }
18
+	/**
19
+	 * @return EEM_Base
20
+	 * @throws EE_Error
21
+	 * @throws InvalidArgumentException
22
+	 * @throws InvalidDataTypeException
23
+	 * @throws InvalidInterfaceException
24
+	 * @throws ReflectionException
25
+	 */
26
+	protected function getQuery(): EEM_Base
27
+	{
28
+		return EEM_Datetime::instance();
29
+	}
30 30
 
31
-    /**
32
-     * @param array $keys
33
-     * @return array
34
-     */
35
-    protected function getWhereParams(array $keys): array
36
-    {
37
-        return [
38
-            'DTT_ID'      => ['IN', $keys],
39
-            'DTT_deleted' => ['IN', [true, false]]
40
-        ];
41
-    }
31
+	/**
32
+	 * @param array $keys
33
+	 * @return array
34
+	 */
35
+	protected function getWhereParams(array $keys): array
36
+	{
37
+		return [
38
+			'DTT_ID'      => ['IN', $keys],
39
+			'DTT_deleted' => ['IN', [true, false]]
40
+		];
41
+	}
42 42
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/data/mutations/VenueMutation.php 2 patches
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -25,83 +25,83 @@
 block discarded – undo
25 25
     {
26 26
         $args = [];
27 27
 
28
-        if (! empty($input['name'])) {
28
+        if ( ! empty($input['name'])) {
29 29
             $args['VNU_name'] = sanitize_text_field($input['name']);
30 30
         }
31 31
 
32
-        if (! empty($input['description'])) {
32
+        if ( ! empty($input['description'])) {
33 33
             $args['VNU_desc'] = wp_kses_post($input['description']);
34 34
         }
35 35
 
36
-        if (! empty($input['shortDescription'])) {
36
+        if ( ! empty($input['shortDescription'])) {
37 37
             $args['VNU_short_desc'] = sanitize_text_field($input['shortDescription']);
38 38
         }
39 39
 
40
-        if (! empty($input['identifier'])) {
40
+        if ( ! empty($input['identifier'])) {
41 41
             $args['VNU_identifier'] = sanitize_title($input['identifier']);
42 42
         }
43 43
 
44
-        if (! empty($input['created'])) {
44
+        if ( ! empty($input['created'])) {
45 45
             $args['VNU_created'] = new DateTime(sanitize_text_field($input['created']));
46 46
         }
47 47
 
48
-        if (! empty($input['order'])) {
48
+        if ( ! empty($input['order'])) {
49 49
             $args['VNU_order'] = absint($input['order']);
50 50
         }
51 51
 
52
-        if (! empty($input['wpUser'])) {
52
+        if ( ! empty($input['wpUser'])) {
53 53
             $args['VNU_wp_user'] = absint($input['wpUser']);
54 54
         }
55 55
 
56
-        if (! empty($input['address'])) {
56
+        if ( ! empty($input['address'])) {
57 57
             $args['VNU_address'] = sanitize_text_field($input['address']);
58 58
         }
59 59
 
60
-        if (! empty($input['address2'])) {
60
+        if ( ! empty($input['address2'])) {
61 61
             $args['VNU_address2'] = sanitize_text_field($input['address2']);
62 62
         }
63 63
 
64
-        if (! empty($input['city'])) {
64
+        if ( ! empty($input['city'])) {
65 65
             $args['VNU_city'] = sanitize_text_field($input['city']);
66 66
         }
67 67
 
68
-        if (! empty($input['state'])) {
68
+        if ( ! empty($input['state'])) {
69 69
             $args['STA_ID'] = absint($input['state']);
70 70
         }
71 71
 
72
-        if (! empty($input['country'])) {
72
+        if ( ! empty($input['country'])) {
73 73
             $args['CNT_ISO'] = sanitize_text_field($input['country']);
74 74
         }
75 75
 
76
-        if (! empty($input['zip'])) {
76
+        if ( ! empty($input['zip'])) {
77 77
             $args['VNU_zip'] = sanitize_text_field($input['zip']);
78 78
         }
79 79
 
80
-        if (! empty($input['capacity'])) {
80
+        if ( ! empty($input['capacity'])) {
81 81
             $args['VNU_capacity'] = absint($input['capacity']);
82 82
         }
83 83
 
84
-        if (! empty($input['phone'])) {
84
+        if ( ! empty($input['phone'])) {
85 85
             $args['VNU_phone'] = sanitize_text_field($input['phone']);
86 86
         }
87 87
 
88
-        if (! empty($input['virtualPhone'])) {
88
+        if ( ! empty($input['virtualPhone'])) {
89 89
             $args['VNU_virtual_phone'] = sanitize_text_field($input['virtualPhone']);
90 90
         }
91 91
 
92
-        if (! empty($input['url'])) {
92
+        if ( ! empty($input['url'])) {
93 93
             $args['VNU_url'] = sanitize_text_field($input['url']);
94 94
         }
95 95
 
96
-        if (! empty($input['virtualUrl'])) {
96
+        if ( ! empty($input['virtualUrl'])) {
97 97
             $args['VNU_virtual_url'] = sanitize_text_field($input['virtualUrl']);
98 98
         }
99 99
 
100
-        if (! empty($input['googleMapLink'])) {
100
+        if ( ! empty($input['googleMapLink'])) {
101 101
             $args['VNU_google_map_link'] = sanitize_text_field($input['googleMapLink']);
102 102
         }
103 103
 
104
-        if (! empty($input['enableForGmap'])) {
104
+        if ( ! empty($input['enableForGmap'])) {
105 105
             $args['VNU_enable_for_gmap'] = (bool) $input['enableForGmap'];
106 106
         }
107 107
 
Please login to merge, or discard this patch.
Indentation   +97 added lines, -97 removed lines patch added patch discarded remove patch
@@ -13,101 +13,101 @@
 block discarded – undo
13 13
  */
14 14
 class VenueMutation
15 15
 {
16
-    /**
17
-     * Maps the GraphQL input to a format that the model functions can use
18
-     *
19
-     * @param array  $input         Data coming from the GraphQL mutation query input
20
-     * @return array
21
-     * @throws Exception
22
-     */
23
-    public static function prepareFields(array $input): array
24
-    {
25
-        $args = [];
26
-
27
-        if (! empty($input['name'])) {
28
-            $args['VNU_name'] = sanitize_text_field($input['name']);
29
-        }
30
-
31
-        if (! empty($input['description'])) {
32
-            $args['VNU_desc'] = wp_kses_post($input['description']);
33
-        }
34
-
35
-        if (! empty($input['shortDescription'])) {
36
-            $args['VNU_short_desc'] = sanitize_text_field($input['shortDescription']);
37
-        }
38
-
39
-        if (! empty($input['identifier'])) {
40
-            $args['VNU_identifier'] = sanitize_title($input['identifier']);
41
-        }
42
-
43
-        if (! empty($input['created'])) {
44
-            $args['VNU_created'] = new DateTime(sanitize_text_field($input['created']));
45
-        }
46
-
47
-        if (! empty($input['order'])) {
48
-            $args['VNU_order'] = absint($input['order']);
49
-        }
50
-
51
-        if (! empty($input['wpUser'])) {
52
-            $args['VNU_wp_user'] = absint($input['wpUser']);
53
-        }
54
-
55
-        if (! empty($input['address'])) {
56
-            $args['VNU_address'] = sanitize_text_field($input['address']);
57
-        }
58
-
59
-        if (! empty($input['address2'])) {
60
-            $args['VNU_address2'] = sanitize_text_field($input['address2']);
61
-        }
62
-
63
-        if (! empty($input['city'])) {
64
-            $args['VNU_city'] = sanitize_text_field($input['city']);
65
-        }
66
-
67
-        if (! empty($input['state'])) {
68
-            $args['STA_ID'] = absint($input['state']);
69
-        }
70
-
71
-        if (! empty($input['country'])) {
72
-            $args['CNT_ISO'] = sanitize_text_field($input['country']);
73
-        }
74
-
75
-        if (! empty($input['zip'])) {
76
-            $args['VNU_zip'] = sanitize_text_field($input['zip']);
77
-        }
78
-
79
-        if (! empty($input['capacity'])) {
80
-            $args['VNU_capacity'] = absint($input['capacity']);
81
-        }
82
-
83
-        if (! empty($input['phone'])) {
84
-            $args['VNU_phone'] = sanitize_text_field($input['phone']);
85
-        }
86
-
87
-        if (! empty($input['virtualPhone'])) {
88
-            $args['VNU_virtual_phone'] = sanitize_text_field($input['virtualPhone']);
89
-        }
90
-
91
-        if (! empty($input['url'])) {
92
-            $args['VNU_url'] = sanitize_text_field($input['url']);
93
-        }
94
-
95
-        if (! empty($input['virtualUrl'])) {
96
-            $args['VNU_virtual_url'] = sanitize_text_field($input['virtualUrl']);
97
-        }
98
-
99
-        if (! empty($input['googleMapLink'])) {
100
-            $args['VNU_google_map_link'] = sanitize_text_field($input['googleMapLink']);
101
-        }
102
-
103
-        if (! empty($input['enableForGmap'])) {
104
-            $args['VNU_enable_for_gmap'] = (bool) $input['enableForGmap'];
105
-        }
106
-
107
-        return apply_filters(
108
-            'FHEE__EventEspresso_core_domain_services_graphql_data_mutations__venue_args',
109
-            $args,
110
-            $input
111
-        );
112
-    }
16
+	/**
17
+	 * Maps the GraphQL input to a format that the model functions can use
18
+	 *
19
+	 * @param array  $input         Data coming from the GraphQL mutation query input
20
+	 * @return array
21
+	 * @throws Exception
22
+	 */
23
+	public static function prepareFields(array $input): array
24
+	{
25
+		$args = [];
26
+
27
+		if (! empty($input['name'])) {
28
+			$args['VNU_name'] = sanitize_text_field($input['name']);
29
+		}
30
+
31
+		if (! empty($input['description'])) {
32
+			$args['VNU_desc'] = wp_kses_post($input['description']);
33
+		}
34
+
35
+		if (! empty($input['shortDescription'])) {
36
+			$args['VNU_short_desc'] = sanitize_text_field($input['shortDescription']);
37
+		}
38
+
39
+		if (! empty($input['identifier'])) {
40
+			$args['VNU_identifier'] = sanitize_title($input['identifier']);
41
+		}
42
+
43
+		if (! empty($input['created'])) {
44
+			$args['VNU_created'] = new DateTime(sanitize_text_field($input['created']));
45
+		}
46
+
47
+		if (! empty($input['order'])) {
48
+			$args['VNU_order'] = absint($input['order']);
49
+		}
50
+
51
+		if (! empty($input['wpUser'])) {
52
+			$args['VNU_wp_user'] = absint($input['wpUser']);
53
+		}
54
+
55
+		if (! empty($input['address'])) {
56
+			$args['VNU_address'] = sanitize_text_field($input['address']);
57
+		}
58
+
59
+		if (! empty($input['address2'])) {
60
+			$args['VNU_address2'] = sanitize_text_field($input['address2']);
61
+		}
62
+
63
+		if (! empty($input['city'])) {
64
+			$args['VNU_city'] = sanitize_text_field($input['city']);
65
+		}
66
+
67
+		if (! empty($input['state'])) {
68
+			$args['STA_ID'] = absint($input['state']);
69
+		}
70
+
71
+		if (! empty($input['country'])) {
72
+			$args['CNT_ISO'] = sanitize_text_field($input['country']);
73
+		}
74
+
75
+		if (! empty($input['zip'])) {
76
+			$args['VNU_zip'] = sanitize_text_field($input['zip']);
77
+		}
78
+
79
+		if (! empty($input['capacity'])) {
80
+			$args['VNU_capacity'] = absint($input['capacity']);
81
+		}
82
+
83
+		if (! empty($input['phone'])) {
84
+			$args['VNU_phone'] = sanitize_text_field($input['phone']);
85
+		}
86
+
87
+		if (! empty($input['virtualPhone'])) {
88
+			$args['VNU_virtual_phone'] = sanitize_text_field($input['virtualPhone']);
89
+		}
90
+
91
+		if (! empty($input['url'])) {
92
+			$args['VNU_url'] = sanitize_text_field($input['url']);
93
+		}
94
+
95
+		if (! empty($input['virtualUrl'])) {
96
+			$args['VNU_virtual_url'] = sanitize_text_field($input['virtualUrl']);
97
+		}
98
+
99
+		if (! empty($input['googleMapLink'])) {
100
+			$args['VNU_google_map_link'] = sanitize_text_field($input['googleMapLink']);
101
+		}
102
+
103
+		if (! empty($input['enableForGmap'])) {
104
+			$args['VNU_enable_for_gmap'] = (bool) $input['enableForGmap'];
105
+		}
106
+
107
+		return apply_filters(
108
+			'FHEE__EventEspresso_core_domain_services_graphql_data_mutations__venue_args',
109
+			$args,
110
+			$input
111
+		);
112
+	}
113 113
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/types/State.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function __construct(EEM_State $state_model)
29 29
     {
30
-        $this->setName($this->namespace . 'State');
30
+        $this->setName($this->namespace.'State');
31 31
         $this->setDescription(__('A state', 'event_espresso'));
32 32
         $this->setIsCustomPostType(false);
33 33
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             ),
80 80
             new GraphQLOutputField(
81 81
                 'country',
82
-                $this->namespace . 'Country',
82
+                $this->namespace.'Country',
83 83
                 null,
84 84
                 esc_html__('Country for the state', 'event_espresso')
85 85
             ),
Please login to merge, or discard this patch.
Indentation   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -20,82 +20,82 @@
 block discarded – undo
20 20
  */
21 21
 class State extends TypeBase
22 22
 {
23
-    /**
24
-     * State constructor.
25
-     *
26
-     * @param EEM_State $state_model
27
-     */
28
-    public function __construct(EEM_State $state_model)
29
-    {
30
-        $this->setName($this->namespace . 'State');
31
-        $this->setDescription(__('A state', 'event_espresso'));
32
-        $this->setIsCustomPostType(false);
23
+	/**
24
+	 * State constructor.
25
+	 *
26
+	 * @param EEM_State $state_model
27
+	 */
28
+	public function __construct(EEM_State $state_model)
29
+	{
30
+		$this->setName($this->namespace . 'State');
31
+		$this->setDescription(__('A state', 'event_espresso'));
32
+		$this->setIsCustomPostType(false);
33 33
 
34
-        parent::__construct($state_model);
35
-    }
34
+		parent::__construct($state_model);
35
+	}
36 36
 
37 37
 
38
-    /**
39
-     * @return GraphQLFieldInterface[]
40
-     */
41
-    public function getFields(): array
42
-    {
43
-        $fields = [
44
-            new GraphQLField(
45
-                'id',
46
-                ['non_null' => 'ID'],
47
-                null,
48
-                esc_html__('The globally unique ID for the object.', 'event_espresso')
49
-            ),
50
-            new GraphQLOutputField(
51
-                'dbId',
52
-                ['non_null' => 'Int'],
53
-                'ID',
54
-                esc_html__('State ID', 'event_espresso')
55
-            ),
56
-            new GraphQLField(
57
-                'abbreviation',
58
-                'String',
59
-                'abbrev',
60
-                esc_html__('State Abbreviation', 'event_espresso')
61
-            ),
62
-            new GraphQLOutputField(
63
-                'cacheId',
64
-                ['non_null' => 'String'],
65
-                null,
66
-                esc_html__('The cache ID of the object.', 'event_espresso')
67
-            ),
68
-            new GraphQLField(
69
-                'name',
70
-                'String',
71
-                'name',
72
-                esc_html__('State Name', 'event_espresso')
73
-            ),
74
-            new GraphQLField(
75
-                'isActive',
76
-                'Boolean',
77
-                'active',
78
-                esc_html__('State Active Flag', 'event_espresso')
79
-            ),
80
-            new GraphQLOutputField(
81
-                'country',
82
-                $this->namespace . 'Country',
83
-                null,
84
-                esc_html__('Country for the state', 'event_espresso')
85
-            ),
86
-            new GraphQLInputField(
87
-                'country',
88
-                'String',
89
-                null,
90
-                esc_html__('Country ISO Code', 'event_espresso')
91
-            ),
92
-        ];
38
+	/**
39
+	 * @return GraphQLFieldInterface[]
40
+	 */
41
+	public function getFields(): array
42
+	{
43
+		$fields = [
44
+			new GraphQLField(
45
+				'id',
46
+				['non_null' => 'ID'],
47
+				null,
48
+				esc_html__('The globally unique ID for the object.', 'event_espresso')
49
+			),
50
+			new GraphQLOutputField(
51
+				'dbId',
52
+				['non_null' => 'Int'],
53
+				'ID',
54
+				esc_html__('State ID', 'event_espresso')
55
+			),
56
+			new GraphQLField(
57
+				'abbreviation',
58
+				'String',
59
+				'abbrev',
60
+				esc_html__('State Abbreviation', 'event_espresso')
61
+			),
62
+			new GraphQLOutputField(
63
+				'cacheId',
64
+				['non_null' => 'String'],
65
+				null,
66
+				esc_html__('The cache ID of the object.', 'event_espresso')
67
+			),
68
+			new GraphQLField(
69
+				'name',
70
+				'String',
71
+				'name',
72
+				esc_html__('State Name', 'event_espresso')
73
+			),
74
+			new GraphQLField(
75
+				'isActive',
76
+				'Boolean',
77
+				'active',
78
+				esc_html__('State Active Flag', 'event_espresso')
79
+			),
80
+			new GraphQLOutputField(
81
+				'country',
82
+				$this->namespace . 'Country',
83
+				null,
84
+				esc_html__('Country for the state', 'event_espresso')
85
+			),
86
+			new GraphQLInputField(
87
+				'country',
88
+				'String',
89
+				null,
90
+				esc_html__('Country ISO Code', 'event_espresso')
91
+			),
92
+		];
93 93
 
94
-        return apply_filters(
95
-            'FHEE__EventEspresso_core_domain_services_graphql_types__state_fields',
96
-            $fields,
97
-            $this->name,
98
-            $this->model
99
-        );
100
-    }
94
+		return apply_filters(
95
+			'FHEE__EventEspresso_core_domain_services_graphql_types__state_fields',
96
+			$fields,
97
+			$this->name,
98
+			$this->model
99
+		);
100
+	}
101 101
 }
Please login to merge, or discard this patch.