Completed
Branch master (e9e0b4)
by J.D.
03:54
created
src/classes/hook/actions.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 */
29 29
 	public function __construct() {
30 30
 
31
-		$this->router = wordpoints_hooks()->get_sub_app( 'router' );
31
+		$this->router = wordpoints_hooks()->get_sub_app('router');
32 32
 	}
33 33
 
34 34
 	/**
@@ -40,23 +40,23 @@  discard block
 block discarded – undo
40 40
 	 *
41 41
 	 * @return object|false The action object, or false if not found.
42 42
 	 */
43
-	public function get( $slug, array $action_args = array(), array $args = array() ) {
43
+	public function get($slug, array $action_args = array(), array $args = array()) {
44 44
 
45
-		if ( ! isset( $this->classes[ $slug ] ) ) {
45
+		if ( ! isset($this->classes[$slug])) {
46 46
 			return false;
47 47
 		}
48 48
 
49
-		return new $this->classes[ $slug ]( $slug, $action_args, $args );
49
+		return new $this->classes[$slug]($slug, $action_args, $args);
50 50
 	}
51 51
 
52 52
 	/**
53 53
 	 * @since 2.1.0
54 54
 	 */
55
-	public function register( $slug, $class, array $args = array() ) {
55
+	public function register($slug, $class, array $args = array()) {
56 56
 
57
-		parent::register( $slug, $class, $args );
57
+		parent::register($slug, $class, $args);
58 58
 
59
-		$this->router->add_action( $slug, $args );
59
+		$this->router->add_action($slug, $args);
60 60
 
61 61
 		return true;
62 62
 	}
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
 	/**
65 65
 	 * @since 2.1.0
66 66
 	 */
67
-	public function deregister( $slug ) {
67
+	public function deregister($slug) {
68 68
 
69
-		parent::deregister( $slug );
69
+		parent::deregister($slug);
70 70
 
71
-		$this->router->remove_action( $slug );
71
+		$this->router->remove_action($slug);
72 72
 	}
73 73
 }
74 74
 
Please login to merge, or discard this patch.
src/classes/hook/condition/string/contains.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	 * @since 2.1.0
19 19
 	 */
20 20
 	public function get_title() {
21
-		return __( 'Contains', 'wordpoints' );
21
+		return __('Contains', 'wordpoints');
22 22
 	}
23 23
 
24 24
 	/**
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		return array(
29 29
 			'value' => array(
30 30
 				'type'     => 'text',
31
-				'label'    => __( 'Word or phrase (case sensitive)', 'wordpoints' ),
31
+				'label'    => __('Word or phrase (case sensitive)', 'wordpoints'),
32 32
 				'required' => true,
33 33
 			),
34 34
 		);
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	/**
38 38
 	 * @since 2.1.0
39 39
 	 */
40
-	public function is_met( array $settings, WordPoints_Hook_Event_Args $args ) {
40
+	public function is_met(array $settings, WordPoints_Hook_Event_Args $args) {
41 41
 
42 42
 		return false !== strpos(
43 43
 			$args->get_current()->get_the_value()
Please login to merge, or discard this patch.
src/classes/hook/condition/entity/array/contains.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	 */
48 48
 	public function __construct() {
49 49
 
50
-		$this->conditions_extension = wordpoints_hooks()->get_sub_app( 'extensions' )->get(
50
+		$this->conditions_extension = wordpoints_hooks()->get_sub_app('extensions')->get(
51 51
 			'conditions'
52 52
 		);
53 53
 	}
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	 * @since 2.1.0
57 57
 	 */
58 58
 	public function get_title() {
59
-		return __( 'Contains', 'wordpoints' );
59
+		return __('Contains', 'wordpoints');
60 60
 	}
61 61
 
62 62
 	/**
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 		return array(
67 67
 			'min' => array(
68 68
 				'slug'    => 'min',
69
-				'label'   => __( 'Minimum number of items', 'wordpoints' ),
69
+				'label'   => __('Minimum number of items', 'wordpoints'),
70 70
 				'type'    => 'number',
71 71
 				'default' => 1,
72 72
 			),
73 73
 			'max' => array(
74 74
 				'slug'  => 'max',
75
-				'label' => __( 'Maximum number of items', 'wordpoints' ),
75
+				'label' => __('Maximum number of items', 'wordpoints'),
76 76
 				'type'  => 'number',
77 77
 			),
78 78
 		);
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
 
93 93
 		$this->validate_count();
94 94
 
95
-		if ( isset( $settings['conditions'] ) ) {
96
-			$this->validate_conditions( $arg );
95
+		if (isset($settings['conditions'])) {
96
+			$this->validate_conditions($arg);
97 97
 		}
98 98
 
99 99
 		return $this->settings;
@@ -107,31 +107,31 @@  discard block
 block discarded – undo
107 107
 	protected function validate_count() {
108 108
 
109 109
 		if (
110
-			! empty( $this->settings['max'] )
111
-			&& ! wordpoints_posint( $this->settings['max'] )
110
+			! empty($this->settings['max'])
111
+			&& ! wordpoints_posint($this->settings['max'])
112 112
 		) {
113 113
 			$this->validator->add_error(
114
-				__( 'The maximum must be a positive integer.', 'wordpoints' )
114
+				__('The maximum must be a positive integer.', 'wordpoints')
115 115
 				, 'max'
116 116
 			);
117 117
 		}
118 118
 
119
-		if ( ! empty( $this->settings['min'] ) ) {
119
+		if ( ! empty($this->settings['min'])) {
120 120
 
121
-			if ( ! wordpoints_posint( $this->settings['min'] ) ) {
121
+			if ( ! wordpoints_posint($this->settings['min'])) {
122 122
 
123 123
 				$this->validator->add_error(
124
-					__( 'The minimum must be a positive integer.', 'wordpoints' )
124
+					__('The minimum must be a positive integer.', 'wordpoints')
125 125
 					, 'min'
126 126
 				);
127 127
 
128 128
 			} elseif (
129
-				! empty( $this->settings['max'] )
129
+				! empty($this->settings['max'])
130 130
 				&& $this->settings['max'] < $this->settings['min']
131 131
 			) {
132 132
 
133 133
 				$this->validator->add_error(
134
-					__( 'The minimum must be less than the maximum.', 'wordpoints' )
134
+					__('The minimum must be less than the maximum.', 'wordpoints')
135 135
 					, 'min'
136 136
 				);
137 137
 			}
@@ -145,24 +145,24 @@  discard block
 block discarded – undo
145 145
 	 *
146 146
 	 * @param WordPoints_EntityishI $current_arg The current arg.
147 147
 	 */
148
-	protected function validate_conditions( $current_arg ) {
148
+	protected function validate_conditions($current_arg) {
149 149
 
150
-		$args = new WordPoints_Hook_Event_Args( array() );
150
+		$args = new WordPoints_Hook_Event_Args(array());
151 151
 
152
-		if ( $current_arg instanceof WordPoints_Entity_Array ) {
152
+		if ($current_arg instanceof WordPoints_Entity_Array) {
153 153
 
154 154
 			$entity = wordpoints_entities()->get(
155 155
 				$current_arg->get_entity_slug()
156 156
 			);
157 157
 
158
-			if ( $entity instanceof WordPoints_Entity ) {
159
-				$args->add_entity( $entity );
158
+			if ($entity instanceof WordPoints_Entity) {
159
+				$args->add_entity($entity);
160 160
 			}
161 161
 		}
162 162
 
163
-		$args->set_validator( $this->validator );
163
+		$args->set_validator($this->validator);
164 164
 
165
-		$this->validator->push_field( 'conditions' );
165
+		$this->validator->push_field('conditions');
166 166
 
167 167
 		$this->settings['conditions'] = $this->conditions_extension->validate_conditions(
168 168
 			$this->settings['conditions']
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 	/**
176 176
 	 * @since 2.1.0
177 177
 	 */
178
-	public function is_met( array $settings, WordPoints_Hook_Event_Args $args ) {
178
+	public function is_met(array $settings, WordPoints_Hook_Event_Args $args) {
179 179
 
180 180
 		$this->settings = $settings;
181 181
 
@@ -183,16 +183,16 @@  discard block
 block discarded – undo
183 183
 
184 184
 		$entities = array();
185 185
 
186
-		if ( $arg instanceof WordPoints_Entity_Array ) {
186
+		if ($arg instanceof WordPoints_Entity_Array) {
187 187
 
188 188
 			$entities = $arg->get_the_entities();
189 189
 
190
-			if ( isset( $this->settings['conditions'] ) ) {
191
-				$entities = $this->filter_entities( $entities );
190
+			if (isset($this->settings['conditions'])) {
191
+				$entities = $this->filter_entities($entities);
192 192
 			}
193 193
 		}
194 194
 
195
-		return $this->check_count( count( $entities ) );
195
+		return $this->check_count(count($entities));
196 196
 	}
197 197
 
198 198
 	/**
@@ -204,20 +204,20 @@  discard block
 block discarded – undo
204 204
 	 *
205 205
 	 * @return WordPoints_Entity[] The entities that matched the sub-conditions.
206 206
 	 */
207
-	protected function filter_entities( $entities ) {
207
+	protected function filter_entities($entities) {
208 208
 
209
-		foreach ( $entities as $index => $entity ) {
209
+		foreach ($entities as $index => $entity) {
210 210
 
211
-			$event_args = new WordPoints_Hook_Event_Args( array() );
212
-			$event_args->add_entity( $entity );
211
+			$event_args = new WordPoints_Hook_Event_Args(array());
212
+			$event_args->add_entity($entity);
213 213
 
214 214
 			$matches = $this->conditions_extension->conditions_are_met(
215 215
 				$this->settings['conditions']
216 216
 				, $event_args
217 217
 			);
218 218
 
219
-			if ( ! $matches ) {
220
-				unset( $entities[ $index ] );
219
+			if ( ! $matches) {
220
+				unset($entities[$index]);
221 221
 			}
222 222
 		}
223 223
 
@@ -233,13 +233,13 @@  discard block
 block discarded – undo
233 233
 	 *
234 234
 	 * @return bool Whether the count met the requirements.
235 235
 	 */
236
-	protected function check_count( $count ) {
236
+	protected function check_count($count) {
237 237
 
238
-		if ( isset( $this->settings['max'] ) && $count > $this->settings['max'] ) {
238
+		if (isset($this->settings['max']) && $count > $this->settings['max']) {
239 239
 			return false;
240 240
 		}
241 241
 
242
-		if ( isset( $this->settings['min'] ) && $count < $this->settings['min'] ) {
242
+		if (isset($this->settings['min']) && $count < $this->settings['min']) {
243 243
 			return false;
244 244
 		}
245 245
 
Please login to merge, or discard this patch.
src/classes/hook/condition/equals.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	 * @since 2.1.0
19 19
 	 */
20 20
 	public function get_title() {
21
-		return __( 'Equals', 'wordpoints' );
21
+		return __('Equals', 'wordpoints');
22 22
 	}
23 23
 
24 24
 	/**
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 		return array(
30 30
 			'value' => array(
31 31
 				'type' => 'text',
32
-				'label' => _x( 'Value', 'equals hook condition label', 'wordpoints' ),
32
+				'label' => _x('Value', 'equals hook condition label', 'wordpoints'),
33 33
 			),
34 34
 		);
35 35
 	}
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	/**
38 38
 	 * @since 2.1.0
39 39
 	 */
40
-	public function is_met( array $settings, WordPoints_Hook_Event_Args $args ) {
40
+	public function is_met(array $settings, WordPoints_Hook_Event_Args $args) {
41 41
 
42 42
 		return $settings['value'] === $args->get_current()->get_the_value();
43 43
 	}
Please login to merge, or discard this patch.
src/classes/hook/reactor.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -111,21 +111,21 @@  discard block
 block discarded – undo
111 111
 	) {
112 112
 
113 113
 		if (
114
-			empty( $settings['target'] )
115
-			|| ! is_array( $settings['target'] )
114
+			empty($settings['target'])
115
+			|| ! is_array($settings['target'])
116 116
 		) {
117 117
 
118
-			$validator->add_error( __( 'Invalid target.', 'wordpoints' ), 'target' );
118
+			$validator->add_error(__('Invalid target.', 'wordpoints'), 'target');
119 119
 
120 120
 		} else {
121 121
 
122
-			$target = $event_args->get_from_hierarchy( $settings['target'] );
122
+			$target = $event_args->get_from_hierarchy($settings['target']);
123 123
 
124 124
 			if (
125 125
 				! $target instanceof WordPoints_Entity
126
-				|| ! in_array( $target->get_slug(), (array) $this->arg_types )
126
+				|| ! in_array($target->get_slug(), (array) $this->arg_types)
127 127
 			) {
128
-				$validator->add_error( __( 'Invalid target.', 'wordpoints' ), 'target' );
128
+				$validator->add_error(__('Invalid target.', 'wordpoints'), 'target');
129 129
 			}
130 130
 		}
131 131
 
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
 	/**
136 136
 	 * @since 2.1.0
137 137
 	 */
138
-	public function update_settings( WordPoints_Hook_ReactionI $reaction, array $settings ) {
139
-		$reaction->update_meta( 'target', $settings['target'] );
138
+	public function update_settings(WordPoints_Hook_ReactionI $reaction, array $settings) {
139
+		$reaction->update_meta('target', $settings['target']);
140 140
 	}
141 141
 }
142 142
 
Please login to merge, or discard this patch.
src/classes/hook/fire.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
 	 */
89 89
 	public function hit() {
90 90
 
91
-		if ( ! $this->hit_id ) {
91
+		if ( ! $this->hit_id) {
92 92
 
93 93
 			$this->hit_id = $this->log_hit();
94 94
 
95
-			if ( ! $this->hit_id ) {
95
+			if ( ! $this->hit_id) {
96 96
 				return false;
97 97
 			}
98 98
 		}
@@ -128,11 +128,11 @@  discard block
 block discarded – undo
128 128
 					$this->reaction->get_context_id()
129 129
 				),
130 130
 				'reaction_id' => $this->reaction->get_id(),
131
-				'date' => current_time( 'mysql', true ),
131
+				'date' => current_time('mysql', true),
132 132
 			)
133 133
 		);
134 134
 
135
-		if ( ! $inserted ) {
135
+		if ( ! $inserted) {
136 136
 			return false;
137 137
 		}
138 138
 
Please login to merge, or discard this patch.
src/classes/hook/condition.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -23,33 +23,33 @@  discard block
 block discarded – undo
23 23
 		WordPoints_Hook_Reaction_Validator $validator
24 24
 	) {
25 25
 
26
-		if ( ! isset( $settings['value'] ) || '' === $settings['value'] ) {
26
+		if ( ! isset($settings['value']) || '' === $settings['value']) {
27 27
 
28 28
 			$settings_fields = $this->get_settings_fields();
29 29
 
30 30
 			$validator->add_error(
31 31
 				sprintf(
32
-					__( '%s is required.', 'wordpoints' )
32
+					__('%s is required.', 'wordpoints')
33 33
 					, $settings_fields['value']['label']
34 34
 				)
35 35
 				, 'value'
36 36
 			);
37 37
 
38
-		} elseif ( $arg instanceof WordPoints_Entity_Attr ) {
38
+		} elseif ($arg instanceof WordPoints_Entity_Attr) {
39 39
 
40
-			$data_types = wordpoints_apps()->get_sub_app( 'data_types' );
40
+			$data_types = wordpoints_apps()->get_sub_app('data_types');
41 41
 
42
-			$data_type = $data_types->get( $arg->get_data_type() );
42
+			$data_type = $data_types->get($arg->get_data_type());
43 43
 
44 44
 			// If this data type isn't recognized, that's probably OK. Validation is
45 45
 			// just to help the user know that they've made a mistake anyway.
46
-			if ( ! ( $data_type instanceof WordPoints_Data_TypeI ) ) {
46
+			if ( ! ($data_type instanceof WordPoints_Data_TypeI)) {
47 47
 				return $settings;
48 48
 			}
49 49
 
50
-			$validated_value = $data_type->validate_value( $settings['value'] );
50
+			$validated_value = $data_type->validate_value($settings['value']);
51 51
 
52
-			if ( is_wp_error( $validated_value ) ) {
52
+			if (is_wp_error($validated_value)) {
53 53
 
54 54
 				$settings_fields = $this->get_settings_fields();
55 55
 
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 
67 67
 			$settings['value'] = $validated_value;
68 68
 
69
-		} elseif ( $arg instanceof WordPoints_Entity ) {
69
+		} elseif ($arg instanceof WordPoints_Entity) {
70 70
 
71
-			if ( ! $arg->exists( $settings['value'] ) ) {
71
+			if ( ! $arg->exists($settings['value'])) {
72 72
 				$validator->add_error(
73 73
 					sprintf(
74 74
 						// translators: 1. item type, 2. item ID/slug.
75
-						__( '%1$s &#8220;%2$s&#8221; not found.', 'wordpoints' )
75
+						__('%1$s &#8220;%2$s&#8221; not found.', 'wordpoints')
76 76
 						, $arg->get_title()
77 77
 						, $settings['value']
78 78
 					)
Please login to merge, or discard this patch.
src/classes/hook/hit/query.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -18,16 +18,16 @@  discard block
 block discarded – undo
18 18
 	 * @since 2.1.0
19 19
 	 */
20 20
 	protected $columns = array(
21
-		'id' => array( 'format' => '%d', 'unsigned' => true ),
22
-		'action_type' => array( 'format' => '%s' ),
23
-		'signature_arg_guids' => array( 'format' => '%s' ),
24
-		'event' => array( 'format' => '%s' ),
25
-		'reactor' => array( 'format' => '%s' ),
26
-		'reaction_mode' => array( 'format' => '%s' ),
27
-		'reaction_store' => array( 'format' => '%s' ),
28
-		'reaction_context_id' => array( 'format' => '%s' ),
29
-		'reaction_id' => array( 'format' => '%d', 'unsigned' => true ),
30
-		'date' => array( 'format' => '%s', 'is_date' => true ),
21
+		'id' => array('format' => '%d', 'unsigned' => true),
22
+		'action_type' => array('format' => '%s'),
23
+		'signature_arg_guids' => array('format' => '%s'),
24
+		'event' => array('format' => '%s'),
25
+		'reactor' => array('format' => '%s'),
26
+		'reaction_mode' => array('format' => '%s'),
27
+		'reaction_store' => array('format' => '%s'),
28
+		'reaction_context_id' => array('format' => '%s'),
29
+		'reaction_id' => array('format' => '%d', 'unsigned' => true),
30
+		'date' => array('format' => '%s', 'is_date' => true),
31 31
 	);
32 32
 
33 33
 	/**
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 	 *        @type array        $meta_query                   See WP_Meta_Query.
126 126
 	 * }
127 127
 	 */
128
-	public function __construct( $args = array() ) {
128
+	public function __construct($args = array()) {
129 129
 
130 130
 		global $wpdb;
131 131
 
@@ -133,64 +133,64 @@  discard block
 block discarded – undo
133 133
 
134 134
 		$this->defaults['order_by'] = 'date';
135 135
 
136
-		foreach ( $this->deprecated_args as $arg => $replacement ) {
137
-			if ( isset( $args[ $arg ] ) ) {
136
+		foreach ($this->deprecated_args as $arg => $replacement) {
137
+			if (isset($args[$arg])) {
138 138
 
139 139
 				_deprecated_argument(
140 140
 					__METHOD__
141 141
 					, '2.3.0'
142
-					, esc_html( "{$arg} is deprecated, use {$replacement} instead" )
142
+					, esc_html("{$arg} is deprecated, use {$replacement} instead")
143 143
 				);
144 144
 
145
-				$args[ $replacement ] = $args[ $arg ];
145
+				$args[$replacement] = $args[$arg];
146 146
 
147
-				unset( $args[ $arg ] );
147
+				unset($args[$arg]);
148 148
 			}
149 149
 		}
150 150
 
151
-		parent::__construct( $args );
151
+		parent::__construct($args);
152 152
 	}
153 153
 
154 154
 	/**
155 155
 	 * @since 2.3.0
156 156
 	 */
157
-	public function get_arg( $arg ) {
157
+	public function get_arg($arg) {
158 158
 
159
-		if ( isset( $this->deprecated_args[ $arg ] ) ) {
159
+		if (isset($this->deprecated_args[$arg])) {
160 160
 
161 161
 			_deprecated_argument(
162 162
 				__METHOD__
163 163
 				, '2.3.0'
164
-				, esc_html( "{$arg} is deprecated, use {$this->deprecated_args[ $arg ]} instead" )
164
+				, esc_html("{$arg} is deprecated, use {$this->deprecated_args[$arg]} instead")
165 165
 			);
166 166
 
167
-			$arg = $this->deprecated_args[ $arg ];
167
+			$arg = $this->deprecated_args[$arg];
168 168
 		}
169 169
 
170
-		return parent::get_arg( $arg );
170
+		return parent::get_arg($arg);
171 171
 	}
172 172
 
173 173
 	/**
174 174
 	 * @since 2.3.0
175 175
 	 */
176
-	public function set_args( array $args ) {
176
+	public function set_args(array $args) {
177 177
 
178
-		foreach ( $this->deprecated_args as $arg => $replacement ) {
179
-			if ( isset( $args[ $arg ] ) ) {
178
+		foreach ($this->deprecated_args as $arg => $replacement) {
179
+			if (isset($args[$arg])) {
180 180
 
181 181
 				_deprecated_argument(
182 182
 					__METHOD__
183 183
 					, '2.3.0'
184
-					, esc_html( "{$arg} is deprecated, use {$replacement} instead" )
184
+					, esc_html("{$arg} is deprecated, use {$replacement} instead")
185 185
 				);
186 186
 
187
-				$args[ $replacement ] = $args[ $arg ];
187
+				$args[$replacement] = $args[$arg];
188 188
 
189
-				unset( $args[ $arg ] );
189
+				unset($args[$arg]);
190 190
 			}
191 191
 		}
192 192
 
193
-		return parent::set_args( $args );
193
+		return parent::set_args($args);
194 194
 	}
195 195
 }
196 196
 
Please login to merge, or discard this patch.
src/classes/hook/reaction/storei.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 *
60 60
 	 * @return bool Whether the reaction exists.
61 61
 	 */
62
-	public function reaction_exists( $id );
62
+	public function reaction_exists($id);
63 63
 
64 64
 	/**
65 65
 	 * Get an reaction object.
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 *
71 71
 	 * @return WordPoints_Hook_ReactionI|false The reaction, or false if nonexistent.
72 72
 	 */
73
-	public function get_reaction( $id );
73
+	public function get_reaction($id);
74 74
 
75 75
 	/**
76 76
 	 * Create an reaction.
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	 *         The reaction object if created successfully. False or a validator
84 84
 	 *         instance if not.
85 85
 	 */
86
-	public function create_reaction( array $settings );
86
+	public function create_reaction(array $settings);
87 87
 
88 88
 	/**
89 89
 	 * Update an reaction.
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	 *         The reaction object if updated successfully. False or a validator
98 98
 	 *         instance if not.
99 99
 	 */
100
-	public function update_reaction( $id, array $settings );
100
+	public function update_reaction($id, array $settings);
101 101
 
102 102
 	/**
103 103
 	 * Delete an reaction.
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	 *
109 109
 	 * @return bool Whether the reaction was deleted successfully.
110 110
 	 */
111
-	public function delete_reaction( $id );
111
+	public function delete_reaction($id);
112 112
 
113 113
 	/**
114 114
 	 * Get all hook reactions for the reactor.
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	 *
132 132
 	 * @return WordPoints_Hook_ReactionI[]
133 133
 	 */
134
-	public function get_reactions_to_event( $event_slug );
134
+	public function get_reactions_to_event($event_slug);
135 135
 }
136 136
 
137 137
 // EOF
Please login to merge, or discard this patch.