Completed
Branch master (4bd299)
by
unknown
04:49
created
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/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 5.0.0.p
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 5.0.0.p
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 5.0.0.p
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 5.0.0.p
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.
core/domain/services/admin/PluginUpsells.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
                      '<strong>',
77 77
                      '</strong>',
78 78
                      '<br />'
79
-                 ) .
79
+                 ).
80 80
             '</div>
81 81
         </td>
82 82
     </tr>
Please login to merge, or discard this patch.
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -16,70 +16,70 @@
 block discarded – undo
16 16
  */
17 17
 class PluginUpsells
18 18
 {
19
-    /**
20
-     * @var DomainInterface
21
-     */
22
-    private $domain;
19
+	/**
20
+	 * @var DomainInterface
21
+	 */
22
+	private $domain;
23 23
 
24 24
 
25
-    /**
26
-     * PluginUpsells constructor.
27
-     *
28
-     * @param DomainInterface $domain
29
-     */
30
-    public function __construct(DomainInterface $domain)
31
-    {
32
-        $this->domain = $domain;
33
-    }
25
+	/**
26
+	 * PluginUpsells constructor.
27
+	 *
28
+	 * @param DomainInterface $domain
29
+	 */
30
+	public function __construct(DomainInterface $domain)
31
+	{
32
+		$this->domain = $domain;
33
+	}
34 34
 
35 35
 
36
-    /**
37
-     * Hook in various upsells for the decaf version of EE.
38
-     */
39
-    public function decafUpsells()
40
-    {
41
-        if ($this->domain instanceof CaffeinatedInterface && ! $this->domain->isCaffeinated()) {
42
-            add_action('after_plugin_row', array($this, 'doPremiumUpsell'), 10);
43
-        }
44
-    }
36
+	/**
37
+	 * Hook in various upsells for the decaf version of EE.
38
+	 */
39
+	public function decafUpsells()
40
+	{
41
+		if ($this->domain instanceof CaffeinatedInterface && ! $this->domain->isCaffeinated()) {
42
+			add_action('after_plugin_row', array($this, 'doPremiumUpsell'), 10);
43
+		}
44
+	}
45 45
 
46 46
 
47
-    /**
48
-     * Callback for `after_plugin_row` to add upsell info
49
-     *
50
-     * @param string $plugin_file
51
-     * @throws DomainException
52
-     */
53
-    public function doPremiumUpsell($plugin_file)
54
-    {
55
-        if ($plugin_file === $this->domain->pluginBasename()) {
56
-            echo '
47
+	/**
48
+	 * Callback for `after_plugin_row` to add upsell info
49
+	 *
50
+	 * @param string $plugin_file
51
+	 * @throws DomainException
52
+	 */
53
+	public function doPremiumUpsell($plugin_file)
54
+	{
55
+		if ($plugin_file === $this->domain->pluginBasename()) {
56
+			echo '
57 57
     <tr class="ee-upsell-plugin-list-table active">
58 58
         <th scope="row" class="check-column"></th>
59 59
         <td class="column-primary">
60 60
             <div class="ee-upsell-col" style="padding:10px 0;">
61 61
                 <a href="https://eventespresso.com/purchase/?slug=ee4-license-personal&utm_source=wp_admin_plugins_screen&utm_medium=link&utm_campaign=plugins_screen_upgrade_link"">
62 62
                     <button class="button button-secondary" style="background:#008dcb; border:1px solid #008dcb; color:#fff; ">'
63
-                     . esc_html__('Upgrade for Support', 'event_espresso')
64
-                     . '</button>
63
+					 . esc_html__('Upgrade for Support', 'event_espresso')
64
+					 . '</button>
65 65
                 </a>
66 66
             </div>
67 67
         </td>
68 68
         <td class="column-description">
69 69
             <div class="ee-upsell-col plugin-description" style="font-size: .85rem; line-height: 1.2rem; padding:5px 0;">'
70
-                 . sprintf(
71
-                     esc_html__(
72
-                         'You\'re missing out on %1$sexpert support%2$s and %1$sone-click updates%2$s!%3$sDon\'t have an Event Espresso support license key? Support the project and buy one today!',
73
-                         'event_espresso'
74
-                     ),
75
-                     '<strong>',
76
-                     '</strong>',
77
-                     '<br />'
78
-                 ) .
79
-            '</div>
70
+				 . sprintf(
71
+					 esc_html__(
72
+						 'You\'re missing out on %1$sexpert support%2$s and %1$sone-click updates%2$s!%3$sDon\'t have an Event Espresso support license key? Support the project and buy one today!',
73
+						 'event_espresso'
74
+					 ),
75
+					 '<strong>',
76
+					 '</strong>',
77
+					 '<br />'
78
+				 ) .
79
+			'</div>
80 80
         </td>
81 81
     </tr>
82 82
 ';
83
-        }
84
-    }
83
+		}
84
+	}
85 85
 }
Please login to merge, or discard this patch.
core/services/dependencies/DependencyResolver.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
                 $this->resolveDependenciesForClass($param_class);
184 184
             }
185 185
             $param_class = $this->resolveAlias($param_class);
186
-            $dependencies[ $param_class ] = EE_Dependency_Map::load_from_cache;
186
+            $dependencies[$param_class] = EE_Dependency_Map::load_from_cache;
187 187
         }
188 188
         $this->dependencyMap()->registerDependencies($fqcn, $dependencies);
189 189
     }
Please login to merge, or discard this patch.
Indentation   +164 added lines, -164 removed lines patch added patch discarded remove patch
@@ -22,168 +22,168 @@
 block discarded – undo
22 22
  */
23 23
 class DependencyResolver implements DependencyResolverInterface
24 24
 {
25
-    /**
26
-     * @var Mirror $mirror
27
-     */
28
-    private $mirror;
29
-
30
-    /**
31
-     * @var ClassInterfaceCache $class_cache
32
-     */
33
-    protected $class_cache;
34
-
35
-    /**
36
-     * @var EE_Dependency_Map $dependency_map
37
-     */
38
-    private $dependency_map;
39
-
40
-    /**
41
-     * @var ClassAlias[] $aliases
42
-     */
43
-    protected $aliases = array();
44
-
45
-    /**
46
-     * @var array $namespace_roots
47
-     */
48
-    protected $namespace_roots = array();
49
-
50
-
51
-    /**
52
-     * RouteMatchSpecificationDependencyResolver constructor.
53
-     *
54
-     * @param Mirror              $mirror
55
-     * @param ClassInterfaceCache $class_cache
56
-     * @param EE_Dependency_Map   $dependency_map
57
-     */
58
-    public function __construct(
59
-        Mirror $mirror,
60
-        ClassInterfaceCache $class_cache,
61
-        EE_Dependency_Map $dependency_map
62
-    ) {
63
-        $this->mirror = $mirror;
64
-        $this->class_cache = $class_cache;
65
-        $this->dependency_map = $dependency_map;
66
-        $this->initialize();
67
-    }
68
-
69
-
70
-    /**
71
-     * Used to configure and/or setup any aliases or namespace roots required by the DependencyResolver
72
-     *
73
-     * @throws InvalidAliasException
74
-     * @since 4.9.71.p
75
-     */
76
-    public function initialize()
77
-    {
78
-        // nothing to do here for default resolver
79
-    }
80
-
81
-
82
-    /**
83
-     * @return Mirror
84
-     */
85
-    public function mirror()
86
-    {
87
-        return $this->mirror;
88
-    }
89
-
90
-    /**
91
-     * @return ClassInterfaceCache
92
-     */
93
-    public function classCache()
94
-    {
95
-        return $this->class_cache;
96
-    }
97
-
98
-    /**
99
-     * @return EE_Dependency_Map
100
-     */
101
-    public function dependencyMap()
102
-    {
103
-        return $this->dependency_map;
104
-    }
105
-
106
-    /**
107
-     * @param string $fqcn      the class name that should be used (concrete class to replace interface)
108
-     * @param string $alias     the class name that would be type hinted for (abstract parent or interface)
109
-     * @param string $for_class the class that has the dependency (is type hinting for the interface)
110
-     * @throws InvalidAliasException
111
-     */
112
-    public function addAlias($fqcn, $alias, $for_class = '')
113
-    {
114
-        $this->class_cache->addAlias($fqcn, $alias, $for_class);
115
-    }
116
-
117
-    /**
118
-     * @param string $param_fqcn Fully Qualified Class Name for dependency parameter
119
-     * @return string
120
-     */
121
-    public function resolveAlias($param_fqcn)
122
-    {
123
-        return $this->class_cache->getFqnForAlias($param_fqcn);
124
-    }
125
-
126
-    /**
127
-     * Primarily used to indicate the namespace root for composite objects
128
-     * so that dependencies requiring the same DependencyResolver can be acquired
129
-     * for example:
130
-     * Vendor\path\to\class\A, Vendor\path\to\class\B, and Vendor\path\to\class\C
131
-     * may all implement Vendor\path\to\Interface,
132
-     * but Vendor\path\to\class\C could be a composite object
133
-     * that requires Vendor\path\to\class\A and Vendor\path\to\class\B,
134
-     * and needs both of those dependencies resolved, which would therefore require
135
-     * the use of the same DependencyResolver.
136
-     *
137
-     * By specifying a namespace root of "Vendor\path\to\",
138
-     * then all classes that are descendants of that namespace
139
-     * will use DependencyResolver to acquire the classes they need
140
-     *
141
-     * @param string $namespace_root Partial namespace used for detecting other classes
142
-     *                               that should employ this same DependencyResolver
143
-     */
144
-    public function addNamespaceRoot($namespace_root)
145
-    {
146
-        $this->namespace_roots[] = $namespace_root;
147
-    }
148
-
149
-    /**
150
-     * Returns true if the parameter FQCN belongs to one of
151
-     * the namespaces that utilizes this DependencyResolver
152
-     *
153
-     * @param string $param_fqcn Fully Qualified Class Name for dependency parameter
154
-     * @return boolean
155
-     * @since 4.9.71.p
156
-     */
157
-    public function dependencyRecursionExists($param_fqcn)
158
-    {
159
-        foreach ($this->namespace_roots as $namespace_root) {
160
-            if (strpos($param_fqcn, $namespace_root) !== false) {
161
-                return true;
162
-            }
163
-        }
164
-        return false;
165
-    }
166
-
167
-
168
-    /**
169
-     * @param string $fqcn Fully Qualified Class Name
170
-     * @throws InvalidDataTypeException
171
-     * @throws ReflectionException
172
-     * @since 4.9.71.p
173
-     */
174
-    public function resolveDependenciesForClass($fqcn)
175
-    {
176
-        $dependencies = array();
177
-        $params = $this->mirror()->getParameters($fqcn);
178
-        foreach ($params as $index => $param) {
179
-            // is this a dependency for a specific class ?
180
-            $param_class = $this->mirror()->getParameterClassName($param, $fqcn, $index);
181
-            if ($this->dependencyRecursionExists($param_class)) {
182
-                $this->resolveDependenciesForClass($param_class);
183
-            }
184
-            $param_class = $this->resolveAlias($param_class);
185
-            $dependencies[ $param_class ] = EE_Dependency_Map::load_from_cache;
186
-        }
187
-        $this->dependencyMap()->registerDependencies($fqcn, $dependencies);
188
-    }
25
+	/**
26
+	 * @var Mirror $mirror
27
+	 */
28
+	private $mirror;
29
+
30
+	/**
31
+	 * @var ClassInterfaceCache $class_cache
32
+	 */
33
+	protected $class_cache;
34
+
35
+	/**
36
+	 * @var EE_Dependency_Map $dependency_map
37
+	 */
38
+	private $dependency_map;
39
+
40
+	/**
41
+	 * @var ClassAlias[] $aliases
42
+	 */
43
+	protected $aliases = array();
44
+
45
+	/**
46
+	 * @var array $namespace_roots
47
+	 */
48
+	protected $namespace_roots = array();
49
+
50
+
51
+	/**
52
+	 * RouteMatchSpecificationDependencyResolver constructor.
53
+	 *
54
+	 * @param Mirror              $mirror
55
+	 * @param ClassInterfaceCache $class_cache
56
+	 * @param EE_Dependency_Map   $dependency_map
57
+	 */
58
+	public function __construct(
59
+		Mirror $mirror,
60
+		ClassInterfaceCache $class_cache,
61
+		EE_Dependency_Map $dependency_map
62
+	) {
63
+		$this->mirror = $mirror;
64
+		$this->class_cache = $class_cache;
65
+		$this->dependency_map = $dependency_map;
66
+		$this->initialize();
67
+	}
68
+
69
+
70
+	/**
71
+	 * Used to configure and/or setup any aliases or namespace roots required by the DependencyResolver
72
+	 *
73
+	 * @throws InvalidAliasException
74
+	 * @since 4.9.71.p
75
+	 */
76
+	public function initialize()
77
+	{
78
+		// nothing to do here for default resolver
79
+	}
80
+
81
+
82
+	/**
83
+	 * @return Mirror
84
+	 */
85
+	public function mirror()
86
+	{
87
+		return $this->mirror;
88
+	}
89
+
90
+	/**
91
+	 * @return ClassInterfaceCache
92
+	 */
93
+	public function classCache()
94
+	{
95
+		return $this->class_cache;
96
+	}
97
+
98
+	/**
99
+	 * @return EE_Dependency_Map
100
+	 */
101
+	public function dependencyMap()
102
+	{
103
+		return $this->dependency_map;
104
+	}
105
+
106
+	/**
107
+	 * @param string $fqcn      the class name that should be used (concrete class to replace interface)
108
+	 * @param string $alias     the class name that would be type hinted for (abstract parent or interface)
109
+	 * @param string $for_class the class that has the dependency (is type hinting for the interface)
110
+	 * @throws InvalidAliasException
111
+	 */
112
+	public function addAlias($fqcn, $alias, $for_class = '')
113
+	{
114
+		$this->class_cache->addAlias($fqcn, $alias, $for_class);
115
+	}
116
+
117
+	/**
118
+	 * @param string $param_fqcn Fully Qualified Class Name for dependency parameter
119
+	 * @return string
120
+	 */
121
+	public function resolveAlias($param_fqcn)
122
+	{
123
+		return $this->class_cache->getFqnForAlias($param_fqcn);
124
+	}
125
+
126
+	/**
127
+	 * Primarily used to indicate the namespace root for composite objects
128
+	 * so that dependencies requiring the same DependencyResolver can be acquired
129
+	 * for example:
130
+	 * Vendor\path\to\class\A, Vendor\path\to\class\B, and Vendor\path\to\class\C
131
+	 * may all implement Vendor\path\to\Interface,
132
+	 * but Vendor\path\to\class\C could be a composite object
133
+	 * that requires Vendor\path\to\class\A and Vendor\path\to\class\B,
134
+	 * and needs both of those dependencies resolved, which would therefore require
135
+	 * the use of the same DependencyResolver.
136
+	 *
137
+	 * By specifying a namespace root of "Vendor\path\to\",
138
+	 * then all classes that are descendants of that namespace
139
+	 * will use DependencyResolver to acquire the classes they need
140
+	 *
141
+	 * @param string $namespace_root Partial namespace used for detecting other classes
142
+	 *                               that should employ this same DependencyResolver
143
+	 */
144
+	public function addNamespaceRoot($namespace_root)
145
+	{
146
+		$this->namespace_roots[] = $namespace_root;
147
+	}
148
+
149
+	/**
150
+	 * Returns true if the parameter FQCN belongs to one of
151
+	 * the namespaces that utilizes this DependencyResolver
152
+	 *
153
+	 * @param string $param_fqcn Fully Qualified Class Name for dependency parameter
154
+	 * @return boolean
155
+	 * @since 4.9.71.p
156
+	 */
157
+	public function dependencyRecursionExists($param_fqcn)
158
+	{
159
+		foreach ($this->namespace_roots as $namespace_root) {
160
+			if (strpos($param_fqcn, $namespace_root) !== false) {
161
+				return true;
162
+			}
163
+		}
164
+		return false;
165
+	}
166
+
167
+
168
+	/**
169
+	 * @param string $fqcn Fully Qualified Class Name
170
+	 * @throws InvalidDataTypeException
171
+	 * @throws ReflectionException
172
+	 * @since 4.9.71.p
173
+	 */
174
+	public function resolveDependenciesForClass($fqcn)
175
+	{
176
+		$dependencies = array();
177
+		$params = $this->mirror()->getParameters($fqcn);
178
+		foreach ($params as $index => $param) {
179
+			// is this a dependency for a specific class ?
180
+			$param_class = $this->mirror()->getParameterClassName($param, $fqcn, $index);
181
+			if ($this->dependencyRecursionExists($param_class)) {
182
+				$this->resolveDependenciesForClass($param_class);
183
+			}
184
+			$param_class = $this->resolveAlias($param_class);
185
+			$dependencies[ $param_class ] = EE_Dependency_Map::load_from_cache;
186
+		}
187
+		$this->dependencyMap()->registerDependencies($fqcn, $dependencies);
188
+	}
189 189
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/specifications/frontend/AnyFrontendRequest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
  */
15 15
 class AnyFrontendRequest extends RouteMatchSpecification
16 16
 {
17
-    public function isMatchingRoute()
18
-    {
19
-        return $this->request->isFrontend();
20
-    }
17
+	public function isMatchingRoute()
18
+	{
19
+		return $this->request->isFrontend();
20
+	}
21 21
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/specifications/MatchAllRouteSpecifications.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function isMatchingRoute()
24 24
     {
25 25
         foreach ($this->specifications as $specification) {
26
-            if (! $specification->isMatchingRoute()) {
26
+            if ( ! $specification->isMatchingRoute()) {
27 27
                 return false;
28 28
             }
29 29
         }
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -13,19 +13,19 @@
 block discarded – undo
13 13
  */
14 14
 class MatchAllRouteSpecifications extends MultiRouteSpecification
15 15
 {
16
-    /**
17
-     * returns true if current request matches specification
18
-     *
19
-     * @since 4.9.71.p
20
-     * @return boolean
21
-     */
22
-    public function isMatchingRoute()
23
-    {
24
-        foreach ($this->specifications as $specification) {
25
-            if (! $specification->isMatchingRoute()) {
26
-                return false;
27
-            }
28
-        }
29
-        return true;
30
-    }
16
+	/**
17
+	 * returns true if current request matches specification
18
+	 *
19
+	 * @since 4.9.71.p
20
+	 * @return boolean
21
+	 */
22
+	public function isMatchingRoute()
23
+	{
24
+		foreach ($this->specifications as $specification) {
25
+			if (! $specification->isMatchingRoute()) {
26
+				return false;
27
+			}
28
+		}
29
+		return true;
30
+	}
31 31
 }
Please login to merge, or discard this patch.
domain/entities/routing/specifications/DoesNotMatchRouteSpecification.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
  */
15 15
 class DoesNotMatchRouteSpecification extends RouteMatchSpecificationDecorator
16 16
 {
17
-    /**
18
-     * returns true if current request matches specification
19
-     *
20
-     * @since 4.9.71.p
21
-     * @return boolean
22
-     */
23
-    public function isMatchingRoute()
24
-    {
25
-        return ! $this->specification->isMatchingRoute();
26
-    }
17
+	/**
18
+	 * returns true if current request matches specification
19
+	 *
20
+	 * @since 4.9.71.p
21
+	 * @return boolean
22
+	 */
23
+	public function isMatchingRoute()
24
+	{
25
+		return ! $this->specification->isMatchingRoute();
26
+	}
27 27
 }
Please login to merge, or discard this patch.