Completed
Branch dependabot/composer/wp-graphql... (9d68cf)
by
unknown
13:28 queued 10:22
created
modules/gateways/Invoice/lib/invoice_functions.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 {
16 16
     $files = [];
17 17
     // read our template dir and build an array of files
18
-    $directory_handle = opendir(dirname($class_file) . '/lib/templates/css/');
18
+    $directory_handle = opendir(dirname($class_file).'/lib/templates/css/');
19 19
     //if we managed to open the directory
20 20
     if ($directory_handle) {
21 21
         /** @var RequestInterface $request */
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         while (false !== ($fname = readdir($directory_handle))) {
35 35
             // if the file is not this file, and does not start with a '.' or '..',
36 36
             // then store it for later display
37
-            if (! in_array($fname, $skip, true)) {
37
+            if ( ! in_array($fname, $skip, true)) {
38 38
                 $files[] = $fname;
39 39
             }
40 40
         }
Please login to merge, or discard this patch.
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -13,36 +13,36 @@  discard block
 block discarded – undo
13 13
  */
14 14
 function espresso_invoice_template_files($class_file)
15 15
 {
16
-    $files = [];
17
-    // read our template dir and build an array of files
18
-    $directory_handle = opendir(dirname($class_file) . '/lib/templates/css/');
19
-    //if we managed to open the directory
20
-    if ($directory_handle) {
21
-        /** @var RequestInterface $request */
22
-        $request = LoaderFactory::getLoader()->getShared(RequestInterface::class);
23
-        $skip = [
24
-            '.',
25
-            '..',
26
-            '.DS_Store',
27
-            '.svn',
28
-            'images',
29
-            'index.php',
30
-            'print',
31
-            basename($request->getServerParam('PHP_SELF')),
32
-        ];
33
-        // loop through all of the files
34
-        while (false !== ($fname = readdir($directory_handle))) {
35
-            // if the file is not this file, and does not start with a '.' or '..',
36
-            // then store it for later display
37
-            if (! in_array($fname, $skip, true)) {
38
-                $files[] = $fname;
39
-            }
40
-        }
41
-        // close the directory
42
-        closedir($directory_handle);
43
-    }
16
+	$files = [];
17
+	// read our template dir and build an array of files
18
+	$directory_handle = opendir(dirname($class_file) . '/lib/templates/css/');
19
+	//if we managed to open the directory
20
+	if ($directory_handle) {
21
+		/** @var RequestInterface $request */
22
+		$request = LoaderFactory::getLoader()->getShared(RequestInterface::class);
23
+		$skip = [
24
+			'.',
25
+			'..',
26
+			'.DS_Store',
27
+			'.svn',
28
+			'images',
29
+			'index.php',
30
+			'print',
31
+			basename($request->getServerParam('PHP_SELF')),
32
+		];
33
+		// loop through all of the files
34
+		while (false !== ($fname = readdir($directory_handle))) {
35
+			// if the file is not this file, and does not start with a '.' or '..',
36
+			// then store it for later display
37
+			if (! in_array($fname, $skip, true)) {
38
+				$files[] = $fname;
39
+			}
40
+		}
41
+		// close the directory
42
+		closedir($directory_handle);
43
+	}
44 44
 
45
-    return $files;
45
+	return $files;
46 46
 }
47 47
 
48 48
 
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
  */
57 57
 function espresso_invoice_is_selected($input_item, $selected = '')
58 58
 {
59
-    if ($input_item === $selected) {
60
-        return 'selected';
61
-    }
62
-    return '';
59
+	if ($input_item === $selected) {
60
+		return 'selected';
61
+	}
62
+	return '';
63 63
 }
64 64
\ No newline at end of file
Please login to merge, or discard this patch.
core/domain/services/graphql/connections/RootQueryStatesConnection.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 . 'State',
42
-            'fromFieldName'      => lcfirst($this->namespace) . 'States',
41
+            'toType'             => $this->namespace.'State',
42
+            'fromFieldName'      => lcfirst($this->namespace).'States',
43 43
             'connectionTypeName' => "{$this->namespace}RootQueryStatesConnection",
44 44
             'connectionArgs'     => self::get_connection_args(),
45 45
             'resolve'            => [$this, 'resolveConnection'],
Please login to merge, or discard this patch.
Indentation   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -18,95 +18,95 @@
 block discarded – undo
18 18
  */
19 19
 class RootQueryStatesConnection extends AbstractRootQueryConnection
20 20
 {
21
-    /**
22
-     * StateConnection constructor.
23
-     *
24
-     * @param EEM_State               $model
25
-     */
26
-    public function __construct(EEM_State $model)
27
-    {
28
-        parent::__construct($model);
29
-    }
21
+	/**
22
+	 * StateConnection constructor.
23
+	 *
24
+	 * @param EEM_State               $model
25
+	 */
26
+	public function __construct(EEM_State $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 . 'State',
40
-            'fromFieldName'      => lcfirst($this->namespace) . 'States',
41
-            'connectionTypeName' => "{$this->namespace}RootQueryStatesConnection",
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 . 'State',
40
+			'fromFieldName'      => lcfirst($this->namespace) . 'States',
41
+			'connectionTypeName' => "{$this->namespace}RootQueryStatesConnection",
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 StateConnectionResolver
54
-     * @throws Exception
55
-     */
56
-    public function getConnectionResolver($entity, $args, $context, $info): AbstractConnectionResolver
57
-    {
58
-        return new StateConnectionResolver($entity, $args, $context, $info);
59
-    }
48
+	/**
49
+	 * @param $entity
50
+	 * @param $args
51
+	 * @param $context
52
+	 * @param $info
53
+	 * @return StateConnectionResolver
54
+	 * @throws Exception
55
+	 */
56
+	public function getConnectionResolver($entity, $args, $context, $info): AbstractConnectionResolver
57
+	{
58
+		return new StateConnectionResolver($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
-            'orderby'      => [
72
-                'type'        => ['list_of' => 'EspressoCountriesConnectionOrderbyInput'],
73
-                'description' => esc_html__('What parameter to use to order the objects by.', 'event_espresso'),
74
-            ],
75
-            'in' => [
76
-                'type'        => ['list_of' => 'ID'],
77
-                'description' => esc_html__(
78
-                    'Limit the result to the set of given state IDs.',
79
-                    'event_espresso'
80
-                ),
81
-            ],
82
-            'countryIsoIn' => [
83
-                'type'        => ['list_of' => 'String'],
84
-                'description' => esc_html__(
85
-                    'Limit the result to the set of given country ISOs.',
86
-                    'event_espresso'
87
-                ),
88
-            ],
89
-            'search' => [
90
-                'type'        => 'String',
91
-                'description' => esc_html__('The search keywords', 'event_espresso'),
92
-            ],
93
-            'activeOnly' => [
94
-                'type'        => 'Boolean',
95
-                'description' => esc_html__(
96
-                    'Limit the result to the active states.',
97
-                    'event_espresso'
98
-                ),
99
-            ],
100
-        ];
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
+			'orderby'      => [
72
+				'type'        => ['list_of' => 'EspressoCountriesConnectionOrderbyInput'],
73
+				'description' => esc_html__('What parameter to use to order the objects by.', 'event_espresso'),
74
+			],
75
+			'in' => [
76
+				'type'        => ['list_of' => 'ID'],
77
+				'description' => esc_html__(
78
+					'Limit the result to the set of given state IDs.',
79
+					'event_espresso'
80
+				),
81
+			],
82
+			'countryIsoIn' => [
83
+				'type'        => ['list_of' => 'String'],
84
+				'description' => esc_html__(
85
+					'Limit the result to the set of given country ISOs.',
86
+					'event_espresso'
87
+				),
88
+			],
89
+			'search' => [
90
+				'type'        => 'String',
91
+				'description' => esc_html__('The search keywords', 'event_espresso'),
92
+			],
93
+			'activeOnly' => [
94
+				'type'        => 'Boolean',
95
+				'description' => esc_html__(
96
+					'Limit the result to the active states.',
97
+					'event_espresso'
98
+				),
99
+			],
100
+		];
101 101
 
102
-        $newArgs = apply_filters(
103
-            'FHEE__EventEspresso_core_domain_services_graphql_connections__state_args',
104
-            $newArgs,
105
-            $args
106
-        );
107
-        return array_merge(
108
-            $newArgs,
109
-            $args
110
-        );
111
-    }
102
+		$newArgs = apply_filters(
103
+			'FHEE__EventEspresso_core_domain_services_graphql_connections__state_args',
104
+			$newArgs,
105
+			$args
106
+		);
107
+		return array_merge(
108
+			$newArgs,
109
+			$args
110
+		);
111
+	}
112 112
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/connections/RootQueryCountriesConnection.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 . 'Country',
42
-            'fromFieldName'      => lcfirst($this->namespace . 'Countries'),
41
+            'toType'             => $this->namespace.'Country',
42
+            'fromFieldName'      => lcfirst($this->namespace.'Countries'),
43 43
             'connectionTypeName' => "{$this->namespace}RootQueryCountriesConnection",
44 44
             'connectionArgs'     => RootQueryCountriesConnection::get_connection_args(),
45 45
             'resolve'            => [$this, 'resolveConnection'],
Please login to merge, or discard this patch.
Indentation   +95 added lines, -95 removed lines patch added patch discarded remove patch
@@ -18,105 +18,105 @@
 block discarded – undo
18 18
  */
19 19
 class RootQueryCountriesConnection extends AbstractRootQueryConnection
20 20
 {
21
-    /**
22
-     * CountryConnection constructor.
23
-     *
24
-     * @param EEM_Country               $model
25
-     */
26
-    public function __construct(EEM_Country $model)
27
-    {
28
-        parent::__construct($model);
29
-    }
21
+	/**
22
+	 * CountryConnection constructor.
23
+	 *
24
+	 * @param EEM_Country               $model
25
+	 */
26
+	public function __construct(EEM_Country $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 . 'Country',
40
-            'fromFieldName'      => lcfirst($this->namespace . 'Countries'),
41
-            'connectionTypeName' => "{$this->namespace}RootQueryCountriesConnection",
42
-            'connectionArgs'     => RootQueryCountriesConnection::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 . 'Country',
40
+			'fromFieldName'      => lcfirst($this->namespace . 'Countries'),
41
+			'connectionTypeName' => "{$this->namespace}RootQueryCountriesConnection",
42
+			'connectionArgs'     => RootQueryCountriesConnection::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 CountryConnectionResolver
54
-     * @throws Exception
55
-     */
56
-    public function getConnectionResolver($entity, $args, $context, $info): AbstractConnectionResolver
57
-    {
58
-        return new CountryConnectionResolver($entity, $args, $context, $info);
59
-    }
48
+	/**
49
+	 * @param $entity
50
+	 * @param $args
51
+	 * @param $context
52
+	 * @param $info
53
+	 * @return CountryConnectionResolver
54
+	 * @throws Exception
55
+	 */
56
+	public function getConnectionResolver($entity, $args, $context, $info): AbstractConnectionResolver
57
+	{
58
+		return new CountryConnectionResolver($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
-            'orderby'      => [
72
-                'type'        => ['list_of' => 'EspressoCountriesConnectionOrderbyInput'],
73
-                'description' => esc_html__('What parameter to use to order the objects by.', 'event_espresso'),
74
-            ],
75
-            'in' => [
76
-                'type'        => ['list_of' => 'ID'],
77
-                'description' => esc_html__(
78
-                    'Limit the result to the set of given country IDs.',
79
-                    'event_espresso'
80
-                ),
81
-            ],
82
-            'isoIn' => [
83
-                'type'        => ['list_of' => 'String'],
84
-                'description' => esc_html__(
85
-                    'Limit the result to the set of given country ISOs.',
86
-                    'event_espresso'
87
-                ),
88
-            ],
89
-            'iso3In' => [
90
-                'type'        => ['list_of' => 'String'],
91
-                'description' => esc_html__(
92
-                    'Limit the result to the set of given country ISO3s.',
93
-                    'event_espresso'
94
-                ),
95
-            ],
96
-            'search' => [
97
-                'type'        => 'String',
98
-                'description' => esc_html__(
99
-                    'Limit the result to the given search query.',
100
-                    'event_espresso'
101
-                ),
102
-            ],
103
-            'activeOnly' => [
104
-                'type'        => 'Boolean',
105
-                'description' => esc_html__(
106
-                    'Limit the result to the active countries.',
107
-                    'event_espresso'
108
-                ),
109
-            ],
110
-        ];
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
+			'orderby'      => [
72
+				'type'        => ['list_of' => 'EspressoCountriesConnectionOrderbyInput'],
73
+				'description' => esc_html__('What parameter to use to order the objects by.', 'event_espresso'),
74
+			],
75
+			'in' => [
76
+				'type'        => ['list_of' => 'ID'],
77
+				'description' => esc_html__(
78
+					'Limit the result to the set of given country IDs.',
79
+					'event_espresso'
80
+				),
81
+			],
82
+			'isoIn' => [
83
+				'type'        => ['list_of' => 'String'],
84
+				'description' => esc_html__(
85
+					'Limit the result to the set of given country ISOs.',
86
+					'event_espresso'
87
+				),
88
+			],
89
+			'iso3In' => [
90
+				'type'        => ['list_of' => 'String'],
91
+				'description' => esc_html__(
92
+					'Limit the result to the set of given country ISO3s.',
93
+					'event_espresso'
94
+				),
95
+			],
96
+			'search' => [
97
+				'type'        => 'String',
98
+				'description' => esc_html__(
99
+					'Limit the result to the given search query.',
100
+					'event_espresso'
101
+				),
102
+			],
103
+			'activeOnly' => [
104
+				'type'        => 'Boolean',
105
+				'description' => esc_html__(
106
+					'Limit the result to the active countries.',
107
+					'event_espresso'
108
+				),
109
+			],
110
+		];
111 111
 
112
-        $newArgs = apply_filters(
113
-            'FHEE__EventEspresso_core_domain_services_graphql_connections__country_args',
114
-            $newArgs,
115
-            $args
116
-        );
117
-        return array_merge(
118
-            $newArgs,
119
-            $args
120
-        );
121
-    }
112
+		$newArgs = apply_filters(
113
+			'FHEE__EventEspresso_core_domain_services_graphql_connections__country_args',
114
+			$newArgs,
115
+			$args
116
+		);
117
+		return array_merge(
118
+			$newArgs,
119
+			$args
120
+		);
121
+	}
122 122
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/inputs/StatesConnectionOrderbyInput.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function __construct()
24 24
     {
25
-        $this->setName($this->namespace . 'StatesConnectionOrderbyInput');
25
+        $this->setName($this->namespace.'StatesConnectionOrderbyInput');
26 26
         $this->setDescription(esc_html__('Options for ordering the connection', 'event_espresso'));
27 27
         parent::__construct();
28 28
     }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         return [
37 37
             new GraphQLField(
38 38
                 'field',
39
-                ['non_null' => $this->namespace . 'StatesConnectionOrderbyEnum']
39
+                ['non_null' => $this->namespace.'StatesConnectionOrderbyEnum']
40 40
             ),
41 41
             new GraphQLField(
42 42
                 '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 StatesConnectionOrderbyInput extends InputBase
18 18
 {
19
-    /**
20
-     * StatesConnectionOrderbyInput constructor.
21
-     */
22
-    public function __construct()
23
-    {
24
-        $this->setName($this->namespace . 'StatesConnectionOrderbyInput');
25
-        $this->setDescription(esc_html__('Options for ordering the connection', 'event_espresso'));
26
-        parent::__construct();
27
-    }
19
+	/**
20
+	 * StatesConnectionOrderbyInput constructor.
21
+	 */
22
+	public function __construct()
23
+	{
24
+		$this->setName($this->namespace . 'StatesConnectionOrderbyInput');
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 . 'StatesConnectionOrderbyEnum']
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 . 'StatesConnectionOrderbyEnum']
39
+			),
40
+			new GraphQLField(
41
+				'order',
42
+				'OrderEnum'
43
+			),
44
+		];
45
+	}
46 46
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/inputs/CountriesConnectionOrderbyInput.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function __construct()
24 24
     {
25
-        $this->setName($this->namespace . 'CountriesConnectionOrderbyInput');
25
+        $this->setName($this->namespace.'CountriesConnectionOrderbyInput');
26 26
         $this->setDescription(esc_html__('Options for ordering the connection', 'event_espresso'));
27 27
         parent::__construct();
28 28
     }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         return [
37 37
             new GraphQLField(
38 38
                 'field',
39
-                ['non_null' => $this->namespace . 'CountriesConnectionOrderbyEnum']
39
+                ['non_null' => $this->namespace.'CountriesConnectionOrderbyEnum']
40 40
             ),
41 41
             new GraphQLField(
42 42
                 '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 CountriesConnectionOrderbyInput extends InputBase
18 18
 {
19
-    /**
20
-     * CountriesConnectionOrderbyInput constructor.
21
-     */
22
-    public function __construct()
23
-    {
24
-        $this->setName($this->namespace . 'CountriesConnectionOrderbyInput');
25
-        $this->setDescription(esc_html__('Options for ordering the connection', 'event_espresso'));
26
-        parent::__construct();
27
-    }
19
+	/**
20
+	 * CountriesConnectionOrderbyInput constructor.
21
+	 */
22
+	public function __construct()
23
+	{
24
+		$this->setName($this->namespace . 'CountriesConnectionOrderbyInput');
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 . 'CountriesConnectionOrderbyEnum']
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 . 'CountriesConnectionOrderbyEnum']
39
+			),
40
+			new GraphQLField(
41
+				'order',
42
+				'OrderEnum'
43
+			),
44
+		];
45
+	}
46 46
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/data/loaders/CountryLoader.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 CountryLoader extends AbstractLoader
17 17
 {
18
-    /**
19
-     * @return EEM_Base|EEM_Country
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_Country::instance();
29
-    }
18
+	/**
19
+	 * @return EEM_Base|EEM_Country
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_Country::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
-            'CNT_ISO' => ['IN', $keys],
40
-        ];
41
-    }
32
+	/**
33
+	 * @param array $keys
34
+	 * @return array
35
+	 */
36
+	protected function getWhereParams(array $keys): array
37
+	{
38
+		return [
39
+			'CNT_ISO' => ['IN', $keys],
40
+		];
41
+	}
42 42
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/data/loaders/StateLoader.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 StateLoader extends AbstractLoader
17 17
 {
18
-    /**
19
-     * @return EEM_Base|EEM_State
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_State::instance();
29
-    }
18
+	/**
19
+	 * @return EEM_Base|EEM_State
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_State::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
-            'STA_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
+			'STA_ID' => ['IN', $keys],
40
+		];
41
+	}
42 42
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/enums/CountriesConnectionOrderbyEnum.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 . 'CountriesConnectionOrderbyEnum');
23
+        $this->setName($this->namespace.'CountriesConnectionOrderbyEnum');
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 CountriesConnectionOrderbyEnum extends EnumBase
16 16
 {
17
-    /**
18
-     * CountriesConnectionOrderbyEnum constructor.
19
-     */
20
-    public function __construct()
21
-    {
22
-        $this->setName($this->namespace . 'CountriesConnectionOrderbyEnum');
23
-        $this->setDescription(esc_html__('Field to order the connection by', 'event_espresso'));
24
-        parent::__construct();
25
-    }
17
+	/**
18
+	 * CountriesConnectionOrderbyEnum constructor.
19
+	 */
20
+	public function __construct()
21
+	{
22
+		$this->setName($this->namespace . 'CountriesConnectionOrderbyEnum');
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
-            'NAME'     => [
35
-                'value'       => 'CNT_name',
36
-                'description' => esc_html__('Order by country name', 'event_espresso'),
37
-            ],
38
-            'ISO'     => [
39
-                'value'       => 'CNT_ISO',
40
-                'description' => esc_html__('Order by country ISO', 'event_espresso'),
41
-            ],
42
-            'CNT_ISO3'     => [
43
-                'value'       => 'CNT_ISO3',
44
-                'description' => esc_html__('Order by country ISO3', 'event_espresso'),
45
-            ],
46
-        ];
47
-    }
28
+	/**
29
+	 * @return array
30
+	 */
31
+	protected function getValues(): array
32
+	{
33
+		return [
34
+			'NAME'     => [
35
+				'value'       => 'CNT_name',
36
+				'description' => esc_html__('Order by country name', 'event_espresso'),
37
+			],
38
+			'ISO'     => [
39
+				'value'       => 'CNT_ISO',
40
+				'description' => esc_html__('Order by country ISO', 'event_espresso'),
41
+			],
42
+			'CNT_ISO3'     => [
43
+				'value'       => 'CNT_ISO3',
44
+				'description' => esc_html__('Order by country ISO3', 'event_espresso'),
45
+			],
46
+		];
47
+	}
48 48
 }
Please login to merge, or discard this patch.
core/domain/services/graphql/enums/StatesConnectionOrderbyEnum.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 . 'StatesConnectionOrderbyEnum');
23
+        $this->setName($this->namespace.'StatesConnectionOrderbyEnum');
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   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -14,31 +14,31 @@
 block discarded – undo
14 14
  */
15 15
 class StatesConnectionOrderbyEnum extends EnumBase
16 16
 {
17
-    /**
18
-     * StatesConnectionOrderbyEnum constructor.
19
-     */
20
-    public function __construct()
21
-    {
22
-        $this->setName($this->namespace . 'StatesConnectionOrderbyEnum');
23
-        $this->setDescription(esc_html__('Field to order the connection by', 'event_espresso'));
24
-        parent::__construct();
25
-    }
17
+	/**
18
+	 * StatesConnectionOrderbyEnum constructor.
19
+	 */
20
+	public function __construct()
21
+	{
22
+		$this->setName($this->namespace . 'StatesConnectionOrderbyEnum');
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
-            'NAME'     => [
35
-                'value'       => 'CNT_name',
36
-                'description' => esc_html__('Order by state name', 'event_espresso'),
37
-            ],
38
-            'COUNTRY_ISO'     => [
39
-                'value'       => 'CNT_ISO',
40
-                'description' => esc_html__('Order by country ISO', 'event_espresso'),
41
-            ],
42
-        ];
43
-    }
28
+	/**
29
+	 * @return array
30
+	 */
31
+	protected function getValues(): array
32
+	{
33
+		return [
34
+			'NAME'     => [
35
+				'value'       => 'CNT_name',
36
+				'description' => esc_html__('Order by state name', 'event_espresso'),
37
+			],
38
+			'COUNTRY_ISO'     => [
39
+				'value'       => 'CNT_ISO',
40
+				'description' => esc_html__('Order by country ISO', 'event_espresso'),
41
+			],
42
+		];
43
+	}
44 44
 }
Please login to merge, or discard this patch.