Completed
Branch master (4bd299)
by
unknown
04:49
created
core/domain/services/graphql/connections/EventVenuesConnection.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
     public function config(): array
38 38
     {
39 39
         return [
40
-            'fromType'           => $this->namespace . 'Event',
41
-            'toType'             => $this->namespace . 'Venue',
40
+            'fromType'           => $this->namespace.'Event',
41
+            'toType'             => $this->namespace.'Venue',
42 42
             'fromFieldName'      => 'venues',
43 43
             'connectionTypeName' => "{$this->namespace}EventVenuesConnection",
44 44
             'resolve'            => [$this, 'resolveConnection'],
Please login to merge, or discard this patch.
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -18,43 +18,43 @@
 block discarded – undo
18 18
  */
19 19
 class EventVenuesConnection extends ConnectionBase
20 20
 {
21
-    /**
22
-     * DatetimeConnection constructor.
23
-     *
24
-     * @param EEM_Venue $model
25
-     */
26
-    public function __construct(EEM_Venue $model)
27
-    {
28
-        parent::__construct($model);
29
-    }
21
+	/**
22
+	 * DatetimeConnection constructor.
23
+	 *
24
+	 * @param EEM_Venue $model
25
+	 */
26
+	public function __construct(EEM_Venue $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'           => $this->namespace . 'Event',
39
-            'toType'             => $this->namespace . 'Venue',
40
-            'fromFieldName'      => 'venues',
41
-            'connectionTypeName' => "{$this->namespace}EventVenuesConnection",
42
-            'resolve'            => [$this, 'resolveConnection'],
43
-        ];
44
-    }
32
+	/**
33
+	 * @return array
34
+	 */
35
+	public function config(): array
36
+	{
37
+		return [
38
+			'fromType'           => $this->namespace . 'Event',
39
+			'toType'             => $this->namespace . 'Venue',
40
+			'fromFieldName'      => 'venues',
41
+			'connectionTypeName' => "{$this->namespace}EventVenuesConnection",
42
+			'resolve'            => [$this, 'resolveConnection'],
43
+		];
44
+	}
45 45
 
46 46
 
47
-    /**
48
-     * @param $entity
49
-     * @param $args
50
-     * @param $context
51
-     * @param $info
52
-     * @return array|Deferred|mixed
53
-     * @throws Exception
54
-     */
55
-    public function resolveConnection($entity, $args, $context, $info)
56
-    {
57
-        $resolver = new VenueConnectionResolver($entity, $args, $context, $info);
58
-        return $resolver->get_connection();
59
-    }
47
+	/**
48
+	 * @param $entity
49
+	 * @param $args
50
+	 * @param $context
51
+	 * @param $info
52
+	 * @return array|Deferred|mixed
53
+	 * @throws Exception
54
+	 */
55
+	public function resolveConnection($entity, $args, $context, $info)
56
+	{
57
+		$resolver = new VenueConnectionResolver($entity, $args, $context, $info);
58
+		return $resolver->get_connection();
59
+	}
60 60
 }
Please login to merge, or discard this patch.
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.