Completed
Push — master ( 4e57eb...947d26 )
by J.D.
02:55
created
src/includes/classes/hook/arg/current/site.php 1 patch
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 get_value() {
26 26
 
27
-		if ( wordpoints_is_network_context() ) {
27
+		if (wordpoints_is_network_context()) {
28 28
 			return false;
29 29
 		}
30 30
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 * @since 1.0.0
36 36
 	 */
37 37
 	public function get_title() {
38
-		return __( 'Site', 'wordpoints' );
38
+		return __('Site', 'wordpoints');
39 39
 	}
40 40
 }
41 41
 
Please login to merge, or discard this patch.
src/includes/classes/hooks.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
 	protected function init() {
48 48
 
49 49
 		$sub_apps = $this->sub_apps;
50
-		$sub_apps->register( 'router', 'WordPoints_Hook_Router' );
51
-		$sub_apps->register( 'actions', 'WordPoints_Hook_Actions' );
52
-		$sub_apps->register( 'events', 'WordPoints_Hook_Events' );
53
-		$sub_apps->register( 'firers', 'WordPoints_Class_Registry_Persistent' );
54
-		$sub_apps->register( 'reactors', 'WordPoints_Class_Registry_Persistent' );
55
-		$sub_apps->register( 'reaction_groups', 'WordPoints_Class_Registry_Children' );
56
-		$sub_apps->register( 'extensions', 'WordPoints_Class_Registry_Persistent' );
57
-		$sub_apps->register( 'conditions', 'WordPoints_Class_Registry_Children' );
50
+		$sub_apps->register('router', 'WordPoints_Hook_Router');
51
+		$sub_apps->register('actions', 'WordPoints_Hook_Actions');
52
+		$sub_apps->register('events', 'WordPoints_Hook_Events');
53
+		$sub_apps->register('firers', 'WordPoints_Class_Registry_Persistent');
54
+		$sub_apps->register('reactors', 'WordPoints_Class_Registry_Persistent');
55
+		$sub_apps->register('reaction_groups', 'WordPoints_Class_Registry_Children');
56
+		$sub_apps->register('extensions', 'WordPoints_Class_Registry_Persistent');
57
+		$sub_apps->register('conditions', 'WordPoints_Class_Registry_Children');
58 58
 
59 59
 		parent::init();
60 60
 	}
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
 	 */
78 78
 	public function get_current_mode() {
79 79
 
80
-		if ( ! isset( $this->current_mode ) ) {
81
-			$this->current_mode = ( wordpoints_is_network_context() ? 'network' : 'standard' );
80
+		if ( ! isset($this->current_mode)) {
81
+			$this->current_mode = (wordpoints_is_network_context() ? 'network' : 'standard');
82 82
 		}
83 83
 
84 84
 		return $this->current_mode;
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 *
97 97
 	 * @param string $mode The slug of the mode to set as the current mode.
98 98
 	 */
99
-	public function set_current_mode( $mode ) {
99
+	public function set_current_mode($mode) {
100 100
 		$this->current_mode = $mode;
101 101
 	}
102 102
 }
Please login to merge, or discard this patch.
src/includes/actions.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -7,24 +7,24 @@
 block discarded – undo
7 7
  * @since 1.0.0
8 8
  */
9 9
 
10
-add_action( 'wordpoints_init_app-apps', 'wordpoints_apps_init' );
11
-add_action( 'wordpoints_init_app-entities', 'wordpoints_entities_app_init' );
10
+add_action('wordpoints_init_app-apps', 'wordpoints_apps_init');
11
+add_action('wordpoints_init_app-entities', 'wordpoints_entities_app_init');
12 12
 
13
-add_action( 'wordpoints_init_app_registry-apps-entities', 'wordpoints_entities_init' );
14
-add_action( 'wordpoints_init_app_registry-entities-contexts', 'wordpoints_entity_contexts_init' );
13
+add_action('wordpoints_init_app_registry-apps-entities', 'wordpoints_entities_init');
14
+add_action('wordpoints_init_app_registry-entities-contexts', 'wordpoints_entity_contexts_init');
15 15
 
16
-add_action( 'wordpoints_init_app_registry-apps-data_types', 'wordpoints_data_types_init' );
16
+add_action('wordpoints_init_app_registry-apps-data_types', 'wordpoints_data_types_init');
17 17
 
18
-add_action( 'wordpoints_init_app_registry-hooks-firers', 'wordpoints_hook_firers_init' );
19
-add_action( 'wordpoints_init_app_registry-hooks-events', 'wordpoints_hook_events_init' );
20
-add_action( 'wordpoints_init_app_registry-hooks-actions', 'wordpoints_hook_actions_init' );
21
-add_action( 'wordpoints_init_app_registry-hooks-reactors', 'wordpoints_hook_reactors_init' );
22
-add_action( 'wordpoints_init_app_registry-hooks-reaction_groups', 'wordpoints_hook_reaction_groups_init' );
23
-add_action( 'wordpoints_init_app_registry-hooks-extensions', 'wordpoints_hook_extension_init' );
24
-add_action( 'wordpoints_init_app_registry-hooks-conditions', 'wordpoints_hook_conditions_init' );
18
+add_action('wordpoints_init_app_registry-hooks-firers', 'wordpoints_hook_firers_init');
19
+add_action('wordpoints_init_app_registry-hooks-events', 'wordpoints_hook_events_init');
20
+add_action('wordpoints_init_app_registry-hooks-actions', 'wordpoints_hook_actions_init');
21
+add_action('wordpoints_init_app_registry-hooks-reactors', 'wordpoints_hook_reactors_init');
22
+add_action('wordpoints_init_app_registry-hooks-reaction_groups', 'wordpoints_hook_reaction_groups_init');
23
+add_action('wordpoints_init_app_registry-hooks-extensions', 'wordpoints_hook_extension_init');
24
+add_action('wordpoints_init_app_registry-hooks-conditions', 'wordpoints_hook_conditions_init');
25 25
 
26
-add_action( 'wordpoints_modules_loaded', 'wordpoints_init_hooks' );
26
+add_action('wordpoints_modules_loaded', 'wordpoints_init_hooks');
27 27
 
28
-add_filter( 'wordpoints_user_can_view_points_log', 'wordpoints_hooks_user_can_view_points_log' );
28
+add_filter('wordpoints_user_can_view_points_log', 'wordpoints_hooks_user_can_view_points_log');
29 29
 
30 30
 // EOF
Please login to merge, or discard this patch.
src/includes/classes/hook/extension.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -65,15 +65,15 @@  discard block
 block discarded – undo
65 65
 		WordPoints_Hook_Event_Args $event_args
66 66
 	) {
67 67
 
68
-		if ( ! isset( $settings[ $this->slug ] ) ) {
68
+		if ( ! isset($settings[$this->slug])) {
69 69
 			return $settings;
70 70
 		}
71 71
 
72 72
 		$this->validator = $validator;
73 73
 		$this->event_args = $event_args;
74 74
 
75
-		$this->validator->push_field( $this->slug );
76
-		$settings[ $this->slug ] = $this->{"validate_{$this->slug}"}( $settings[ $this->slug ] );
75
+		$this->validator->push_field($this->slug);
76
+		$settings[$this->slug] = $this->{"validate_{$this->slug}"}($settings[$this->slug]);
77 77
 		$this->validator->pop_field();
78 78
 
79 79
 		return $settings;
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
 	/**
83 83
 	 * @since 1.0.0
84 84
 	 */
85
-	public function update_settings( WordPoints_Hook_ReactionI $reaction, array $settings ) {
85
+	public function update_settings(WordPoints_Hook_ReactionI $reaction, array $settings) {
86 86
 
87
-		if ( isset( $settings[ $this->slug ] ) ) {
88
-			$reaction->update_meta( $this->slug, $settings[ $this->slug ] );
87
+		if (isset($settings[$this->slug])) {
88
+			$reaction->update_meta($this->slug, $settings[$this->slug]);
89 89
 		} else {
90
-			$reaction->delete_meta( $this->slug );
90
+			$reaction->delete_meta($this->slug);
91 91
 		}
92 92
 	}
93 93
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 *
101 101
 	 * @return bool Whether the target should be hit by this hook firing.
102 102
 	 */
103
-	abstract public function should_hit( WordPoints_Hook_Fire $fire );
103
+	abstract public function should_hit(WordPoints_Hook_Fire $fire);
104 104
 
105 105
 	/**
106 106
 	 * After a reaction has hit the target.
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	 *
110 110
 	 * @param WordPoints_Hook_Fire $fire The hook fire object.
111 111
 	 */
112
-	public function after_hit( WordPoints_Hook_Fire $fire ) {}
112
+	public function after_hit(WordPoints_Hook_Fire $fire) {}
113 113
 
114 114
 	/**
115 115
 	 * Called after a reverse action is called.
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 *
119 119
 	 * @param WordPoints_Hook_Fire $fire The reverse fire object.
120 120
 	 */
121
-	public function after_reverse( WordPoints_Hook_Fire $fire ) {}
121
+	public function after_reverse(WordPoints_Hook_Fire $fire) {}
122 122
 
123 123
 	/**
124 124
 	 * Get the data the scripts need for the UI.
Please login to merge, or discard this patch.
src/includes/classes/hook/extension/conditions.php 1 patch
Spacing   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
 
43 43
 		$conditions_data = array();
44 44
 
45
-		foreach ( $this->conditions->get_all() as $data_type => $conditions ) {
46
-			foreach ( $conditions as $slug => $condition ) {
45
+		foreach ($this->conditions->get_all() as $data_type => $conditions) {
46
+			foreach ($conditions as $slug => $condition) {
47 47
 
48
-				if ( ! ( $condition instanceof WordPoints_Hook_Condition ) ) {
48
+				if ( ! ($condition instanceof WordPoints_Hook_Condition)) {
49 49
 					continue;
50 50
 				}
51 51
 
52
-				$conditions_data[ $data_type ][ $slug ] = array(
52
+				$conditions_data[$data_type][$slug] = array(
53 53
 					'slug'      => $slug,
54 54
 					'data_type' => $data_type,
55 55
 					'title'     => $condition->get_title(),
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 			}
59 59
 		}
60 60
 
61
-		return array( 'conditions' => $conditions_data );
61
+		return array('conditions' => $conditions_data);
62 62
 	}
63 63
 
64 64
 	/**
@@ -70,31 +70,31 @@  discard block
 block discarded – undo
70 70
 	 *
71 71
 	 * @return array The validated settings.
72 72
 	 */
73
-	protected function validate_conditions( $args ) {
73
+	protected function validate_conditions($args) {
74 74
 
75
-		if ( ! is_array( $args ) ) {
75
+		if ( ! is_array($args)) {
76 76
 
77 77
 			$this->validator->add_error(
78
-				__( 'Conditions do not match expected format.', 'wordpoints' )
78
+				__('Conditions do not match expected format.', 'wordpoints')
79 79
 			);
80 80
 
81 81
 			return array();
82 82
 		}
83 83
 
84
-		foreach ( $args as $arg_slug => $sub_args ) {
84
+		foreach ($args as $arg_slug => $sub_args) {
85 85
 
86
-			if ( '_conditions' === $arg_slug ) {
86
+			if ('_conditions' === $arg_slug) {
87 87
 
88
-				$this->validator->push_field( $arg_slug );
88
+				$this->validator->push_field($arg_slug);
89 89
 
90
-				foreach ( $sub_args as $index => $settings ) {
90
+				foreach ($sub_args as $index => $settings) {
91 91
 
92
-					$this->validator->push_field( $index );
92
+					$this->validator->push_field($index);
93 93
 
94
-					$condition = $this->validate_condition( $settings );
94
+					$condition = $this->validate_condition($settings);
95 95
 
96
-					if ( $condition ) {
97
-						$sub_args[ $index ] = $condition;
96
+					if ($condition) {
97
+						$sub_args[$index] = $condition;
98 98
 					}
99 99
 
100 100
 					$this->validator->pop_field();
@@ -104,18 +104,18 @@  discard block
 block discarded – undo
104 104
 
105 105
 			} else {
106 106
 
107
-				if ( ! $this->event_args->descend( $arg_slug ) ) {
107
+				if ( ! $this->event_args->descend($arg_slug)) {
108 108
 					continue;
109 109
 				}
110 110
 
111
-				$sub_args = $this->validate_conditions( $sub_args );
111
+				$sub_args = $this->validate_conditions($sub_args);
112 112
 
113
-				$args[ $arg_slug ] = $sub_args;
113
+				$args[$arg_slug] = $sub_args;
114 114
 
115 115
 				$this->event_args->ascend();
116 116
 			}
117 117
 
118
-			$args[ $arg_slug ] = $sub_args;
118
+			$args[$arg_slug] = $sub_args;
119 119
 		}
120 120
 
121 121
 		return $args;
@@ -131,32 +131,32 @@  discard block
 block discarded – undo
131 131
 	 * @return array|false The validated conditions settings, or false if unable to
132 132
 	 *                     validate.
133 133
 	 */
134
-	protected function validate_condition( $settings ) {
134
+	protected function validate_condition($settings) {
135 135
 
136
-		if ( ! isset( $settings['type'] ) ) {
137
-			$this->validator->add_error( __( 'Condition type is missing.', 'wordpoints' ) );
136
+		if ( ! isset($settings['type'])) {
137
+			$this->validator->add_error(__('Condition type is missing.', 'wordpoints'));
138 138
 			return false;
139 139
 		}
140 140
 
141 141
 		$arg = $this->event_args->get_current();
142 142
 
143
-		$data_type = $this->get_data_type( $arg );
143
+		$data_type = $this->get_data_type($arg);
144 144
 
145
-		if ( ! $data_type ) {
145
+		if ( ! $data_type) {
146 146
 			$this->validator->add_error(
147
-				__( 'This type of condition does not work for the selected attribute.', 'wordpoints' )
147
+				__('This type of condition does not work for the selected attribute.', 'wordpoints')
148 148
 			);
149 149
 
150 150
 			return false;
151 151
 		}
152 152
 
153
-		$condition = wordpoints_hooks()->conditions->get( $data_type, $settings['type'] );
153
+		$condition = wordpoints_hooks()->conditions->get($data_type, $settings['type']);
154 154
 
155
-		if ( ! $condition ) {
155
+		if ( ! $condition) {
156 156
 
157 157
 			$this->validator->add_error(
158 158
 				sprintf(
159
-					__( 'Unknown condition type “%s”.', 'wordpoints' )
159
+					__('Unknown condition type “%s”.', 'wordpoints')
160 160
 					, $settings['type']
161 161
 				)
162 162
 				, 'type'
@@ -165,17 +165,17 @@  discard block
 block discarded – undo
165 165
 			return false;
166 166
 		}
167 167
 
168
-		if ( ! isset( $settings['settings'] ) ) {
169
-			$this->validator->add_error( __( 'Condition settings are missing.', 'wordpoints' ) );
168
+		if ( ! isset($settings['settings'])) {
169
+			$this->validator->add_error(__('Condition settings are missing.', 'wordpoints'));
170 170
 			return false;
171 171
 		}
172 172
 
173
-		$this->validator->push_field( 'settings' );
173
+		$this->validator->push_field('settings');
174 174
 
175 175
 		// The condition may call this object's validate_settings() method to
176 176
 		// validate some sub-conditions. When that happens, these properties will be
177 177
 		// reset, so we need to back up their values and then restore them below.
178
-		$backup = array( $this->validator, $this->event_args );
178
+		$backup = array($this->validator, $this->event_args);
179 179
 
180 180
 		$settings['settings'] = $condition->validate_settings(
181 181
 			$arg
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 			, $this->validator
184 184
 		);
185 185
 
186
-		list( $this->validator, $this->event_args ) = $backup;
186
+		list($this->validator, $this->event_args) = $backup;
187 187
 
188 188
 		$this->validator->pop_field();
189 189
 
@@ -193,11 +193,11 @@  discard block
 block discarded – undo
193 193
 	/**
194 194
 	 * @since 1.0.0
195 195
 	 */
196
-	public function should_hit( WordPoints_Hook_Fire $fire ) {
196
+	public function should_hit(WordPoints_Hook_Fire $fire) {
197 197
 
198
-		$conditions = $fire->reaction->get_meta( 'conditions' );
198
+		$conditions = $fire->reaction->get_meta('conditions');
199 199
 
200
-		if ( $conditions && ! $this->conditions_are_met( $conditions, $fire->event_args ) ) {
200
+		if ($conditions && ! $this->conditions_are_met($conditions, $fire->event_args)) {
201 201
 			return false;
202 202
 		}
203 203
 
@@ -219,35 +219,35 @@  discard block
 block discarded – undo
219 219
 		WordPoints_Hook_Event_Args $event_args
220 220
 	) {
221 221
 
222
-		foreach ( $conditions as $arg_slug => $sub_args ) {
222
+		foreach ($conditions as $arg_slug => $sub_args) {
223 223
 
224
-			$event_args->descend( $arg_slug );
224
+			$event_args->descend($arg_slug);
225 225
 
226
-			if ( isset( $sub_args['_conditions'] ) ) {
226
+			if (isset($sub_args['_conditions'])) {
227 227
 
228
-				foreach ( $sub_args['_conditions'] as $settings ) {
228
+				foreach ($sub_args['_conditions'] as $settings) {
229 229
 
230 230
 					$condition = $this->conditions->get(
231
-						$this->get_data_type( $event_args->get_current() )
231
+						$this->get_data_type($event_args->get_current())
232 232
 						, $settings['type']
233 233
 					);
234 234
 
235
-					$is_met = $condition->is_met( $settings['settings'], $event_args );
235
+					$is_met = $condition->is_met($settings['settings'], $event_args);
236 236
 
237
-					if ( ! $is_met ) {
237
+					if ( ! $is_met) {
238 238
 						$event_args->ascend();
239 239
 						return false;
240 240
 					}
241 241
 				}
242 242
 
243
-				unset( $sub_args['_conditions'] );
243
+				unset($sub_args['_conditions']);
244 244
 			}
245 245
 
246
-			$are_met = $this->conditions_are_met( $sub_args, $event_args );
246
+			$are_met = $this->conditions_are_met($sub_args, $event_args);
247 247
 
248 248
 			$event_args->ascend();
249 249
 
250
-			if ( ! $are_met ) {
250
+			if ( ! $are_met) {
251 251
 				return false;
252 252
 			}
253 253
 		}
@@ -264,13 +264,13 @@  discard block
 block discarded – undo
264 264
 	 *
265 265
 	 * @return string|false The data type, or false.
266 266
 	 */
267
-	protected function get_data_type( $arg ) {
267
+	protected function get_data_type($arg) {
268 268
 
269
-		if ( $arg instanceof WordPoints_Entity_Attr ) {
269
+		if ($arg instanceof WordPoints_Entity_Attr) {
270 270
 			$data_type = $arg->get_data_type();
271
-		} elseif ( $arg instanceof WordPoints_Entity_Array ) {
271
+		} elseif ($arg instanceof WordPoints_Entity_Array) {
272 272
 			$data_type = 'entity_array';
273
-		} elseif ( $arg instanceof WordPoints_Entity ) {
273
+		} elseif ($arg instanceof WordPoints_Entity) {
274 274
 			$data_type = 'entity';
275 275
 		} else {
276 276
 			$data_type = false;
Please login to merge, or discard this patch.
src/includes/classes/hook/firer.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	/**
27 27
 	 * @since 1.0.0
28 28
 	 */
29
-	public function __construct( $slug ) {
29
+	public function __construct($slug) {
30 30
 		$this->slug = $slug;
31 31
 	}
32 32
 
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
40 40
 	/**
41 41
 	 * @since 1.0.0
42 42
 	 */
43
-	public function do_event( $event_slug, WordPoints_Hook_Event_Args $event_args ) {
43
+	public function do_event($event_slug, WordPoints_Hook_Event_Args $event_args) {
44 44
 
45 45
 		$hooks = wordpoints_hooks();
46 46
 
47 47
 		/** @var WordPoints_Hook_Reactor $reactor */
48
-		foreach ( $hooks->reactors->get_all() as $reactor ) {
48
+		foreach ($hooks->reactors->get_all() as $reactor) {
49 49
 
50
-			foreach ( $reactor->get_all_reactions_to_event( $event_slug ) as $reaction ) {
50
+			foreach ($reactor->get_all_reactions_to_event($event_slug) as $reaction) {
51 51
 
52 52
 				$validator = new WordPoints_Hook_Reaction_Validator(
53 53
 					$reaction
@@ -57,29 +57,29 @@  discard block
 block discarded – undo
57 57
 
58 58
 				$validator->validate();
59 59
 
60
-				if ( $validator->had_errors() ) {
60
+				if ($validator->had_errors()) {
61 61
 					continue;
62 62
 				}
63 63
 
64
-				unset( $validator );
64
+				unset($validator);
65 65
 
66
-				$fire = new WordPoints_Hook_Fire( $this, $event_args, $reaction );
66
+				$fire = new WordPoints_Hook_Fire($this, $event_args, $reaction);
67 67
 
68 68
 				/** @var WordPoints_Hook_Extension[] $extensions */
69 69
 				$extensions = $hooks->extensions->get_all();
70 70
 
71
-				foreach ( $extensions as $extension ) {
72
-					if ( ! $extension->should_hit( $fire ) ) {
71
+				foreach ($extensions as $extension) {
72
+					if ( ! $extension->should_hit($fire)) {
73 73
 						continue 2;
74 74
 					}
75 75
 				}
76 76
 
77 77
 				$fire->hit();
78 78
 
79
-				$reactor->hit( $fire );
79
+				$reactor->hit($fire);
80 80
 
81
-				foreach ( $extensions as $extension ) {
82
-					$extension->after_hit( $fire );
81
+				foreach ($extensions as $extension) {
82
+					$extension->after_hit($fire);
83 83
 				}
84 84
 			}
85 85
 		}
Please login to merge, or discard this patch.
src/includes/classes/hook/reactor.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
 	/**
54 54
 	 * @since 1.0.0
55 55
 	 */
56
-	public function __get( $var ) {
56
+	public function __get($var) {
57 57
 
58
-		if ( 'reactions' !== $var ) {
58
+		if ('reactions' !== $var) {
59 59
 			return null;
60 60
 		}
61 61
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 			wordpoints_hooks()->get_current_mode()
64 64
 		);
65 65
 
66
-		if ( ! $reaction_group ) {
66
+		if ( ! $reaction_group) {
67 67
 			return null;
68 68
 		}
69 69
 
@@ -79,20 +79,20 @@  discard block
 block discarded – undo
79 79
 	 *
80 80
 	 * @return WordPoints_Hook_Reaction_StorageI|false The reaction storage object.
81 81
 	 */
82
-	public function get_reaction_group( $slug ) {
82
+	public function get_reaction_group($slug) {
83 83
 
84 84
 		$reaction_group = wordpoints_hooks()->reaction_groups->get(
85 85
 			$this->slug
86 86
 			, $slug
87
-			, array( $this )
87
+			, array($this)
88 88
 		);
89 89
 
90
-		if ( ! $reaction_group instanceof WordPoints_Hook_Reaction_StorageI ) {
90
+		if ( ! $reaction_group instanceof WordPoints_Hook_Reaction_StorageI) {
91 91
 			return false;
92 92
 		}
93 93
 
94 94
 		// Allowing access to groups out-of-context would lead to strange behavior.
95
-		if ( false === $reaction_group->get_context_id() ) {
95
+		if (false === $reaction_group->get_context_id()) {
96 96
 			return false;
97 97
 		}
98 98
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 *
167 167
 	 * @return WordPoints_Hook_ReactionI[] All of the reaction objects.
168 168
 	 */
169
-	public function get_all_reactions_to_event( $event_slug ) {
169
+	public function get_all_reactions_to_event($event_slug) {
170 170
 
171 171
 		$reactions = array();
172 172
 
@@ -174,17 +174,17 @@  discard block
 block discarded – undo
174 174
 			$this->slug
175 175
 		);
176 176
 
177
-		foreach ( $slugs as $slug ) {
177
+		foreach ($slugs as $slug) {
178 178
 
179
-			$storage = $this->get_reaction_group( $slug );
179
+			$storage = $this->get_reaction_group($slug);
180 180
 
181
-			if ( ! $storage ) {
181
+			if ( ! $storage) {
182 182
 				continue;
183 183
 			}
184 184
 
185 185
 			$reactions = array_merge(
186 186
 				$reactions
187
-				, $storage->get_reactions_to_event( $event_slug )
187
+				, $storage->get_reactions_to_event($event_slug)
188 188
 			);
189 189
 		}
190 190
 
@@ -213,15 +213,15 @@  discard block
 block discarded – undo
213 213
 			$this->slug
214 214
 		);
215 215
 
216
-		foreach ( $slugs as $slug ) {
216
+		foreach ($slugs as $slug) {
217 217
 
218
-			$storage = $this->get_reaction_group( $slug );
218
+			$storage = $this->get_reaction_group($slug);
219 219
 
220
-			if ( ! $storage ) {
220
+			if ( ! $storage) {
221 221
 				continue;
222 222
 			}
223 223
 
224
-			$reactions = array_merge( $reactions, $storage->get_reactions() );
224
+			$reactions = array_merge($reactions, $storage->get_reactions());
225 225
 		}
226 226
 
227 227
 		return $reactions;
@@ -237,21 +237,21 @@  discard block
 block discarded – undo
237 237
 	) {
238 238
 
239 239
 		if (
240
-			empty( $settings['target'] )
241
-			|| ! is_array( $settings['target'] )
240
+			empty($settings['target'])
241
+			|| ! is_array($settings['target'])
242 242
 		) {
243 243
 
244
-			$validator->add_error( __( 'Invalid target.', 'wordpoints' ), 'target' );
244
+			$validator->add_error(__('Invalid target.', 'wordpoints'), 'target');
245 245
 
246 246
 		} else {
247 247
 
248
-			$target = $event_args->get_from_hierarchy( $settings['target'] );
248
+			$target = $event_args->get_from_hierarchy($settings['target']);
249 249
 
250 250
 			if (
251 251
 				! $target instanceof WordPoints_Entity
252
-				|| ! in_array( $target->get_slug(), (array) $this->arg_types )
252
+				|| ! in_array($target->get_slug(), (array) $this->arg_types)
253 253
 			) {
254
-				$validator->add_error( __( 'Invalid target.', 'wordpoints' ), 'target' );
254
+				$validator->add_error(__('Invalid target.', 'wordpoints'), 'target');
255 255
 			}
256 256
 		}
257 257
 
@@ -261,8 +261,8 @@  discard block
 block discarded – undo
261 261
 	/**
262 262
 	 * @since 1.0.0
263 263
 	 */
264
-	public function update_settings( WordPoints_Hook_ReactionI $reaction, array $settings ) {
265
-		$reaction->update_meta( 'target', $settings['target'] );
264
+	public function update_settings(WordPoints_Hook_ReactionI $reaction, array $settings) {
265
+		$reaction->update_meta('target', $settings['target']);
266 266
 	}
267 267
 
268 268
 	/**
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	 *
273 273
 	 * @param WordPoints_Hook_Fire $fire The hook fire object.
274 274
 	 */
275
-	abstract public function hit( WordPoints_Hook_Fire $fire );
275
+	abstract public function hit(WordPoints_Hook_Fire $fire);
276 276
 
277 277
 	/**
278 278
 	 * Reverses all hits matching this event and args.
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 	 *
282 282
 	 * @param WordPoints_Hook_Fire $fire The reverse fire object.
283 283
 	 */
284
-	abstract public function reverse_hit( WordPoints_Hook_Fire $fire );
284
+	abstract public function reverse_hit(WordPoints_Hook_Fire $fire);
285 285
 }
286 286
 
287 287
 // EOF
Please login to merge, or discard this patch.
src/includes/classes/hook/reactor/points.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
 	 */
54 54
 	public function get_settings_fields() {
55 55
 
56
-		$this->settings_fields['points']['label'] = _x( 'Points', 'form label', 'wordpoints' );
57
-		$this->settings_fields['log_text']['label'] = _x( 'Log Text', 'form label', 'wordpoints' );
58
-		$this->settings_fields['description']['label'] = _x( 'Description', 'form label', 'wordpoints' );
56
+		$this->settings_fields['points']['label'] = _x('Points', 'form label', 'wordpoints');
57
+		$this->settings_fields['log_text']['label'] = _x('Log Text', 'form label', 'wordpoints');
58
+		$this->settings_fields['description']['label'] = _x('Description', 'form label', 'wordpoints');
59 59
 
60 60
 		return parent::get_settings_fields();
61 61
 	}
@@ -69,23 +69,23 @@  discard block
 block discarded – undo
69 69
 		WordPoints_Hook_Event_Args $event_args
70 70
 	) {
71 71
 
72
-		if ( ! isset( $settings['points'] ) || false === wordpoints_int( $settings['points'] ) ) {
73
-			$validator->add_error( __( 'Points must be an integer.', 'wordpoints' ), 'points' );
72
+		if ( ! isset($settings['points']) || false === wordpoints_int($settings['points'])) {
73
+			$validator->add_error(__('Points must be an integer.', 'wordpoints'), 'points');
74 74
 		}
75 75
 
76
-		if ( ! isset( $settings['points_type'] ) || ! wordpoints_is_points_type( $settings['points_type'] ) ) {
77
-			$validator->add_error( __( 'Invalid points type.', 'wordpoints' ), 'points_type' );
76
+		if ( ! isset($settings['points_type']) || ! wordpoints_is_points_type($settings['points_type'])) {
77
+			$validator->add_error(__('Invalid points type.', 'wordpoints'), 'points_type');
78 78
 		}
79 79
 
80
-		if ( ! isset( $settings['description'] ) ) {
81
-			$validator->add_error( __( 'Description is required.', 'wordpoints' ), 'description' );
80
+		if ( ! isset($settings['description'])) {
81
+			$validator->add_error(__('Description is required.', 'wordpoints'), 'description');
82 82
 		}
83 83
 
84
-		if ( ! isset( $settings['log_text'] ) ) {
85
-			$validator->add_error( __( 'Log Text is required.', 'wordpoints' ), 'log_text' );
84
+		if ( ! isset($settings['log_text'])) {
85
+			$validator->add_error(__('Log Text is required.', 'wordpoints'), 'log_text');
86 86
 		}
87 87
 
88
-		return parent::validate_settings( $settings, $validator, $event_args );
88
+		return parent::validate_settings($settings, $validator, $event_args);
89 89
 	}
90 90
 
91 91
 	/**
@@ -96,49 +96,49 @@  discard block
 block discarded – undo
96 96
 		array $settings
97 97
 	) {
98 98
 
99
-		parent::update_settings( $reaction, $settings );
99
+		parent::update_settings($reaction, $settings);
100 100
 
101
-		$reaction->update_meta( 'points', $settings['points'] );
102
-		$reaction->update_meta( 'points_type', $settings['points_type'] );
103
-		$reaction->update_meta( 'description', $settings['description'] );
104
-		$reaction->update_meta( 'log_text', $settings['log_text'] );
101
+		$reaction->update_meta('points', $settings['points']);
102
+		$reaction->update_meta('points_type', $settings['points_type']);
103
+		$reaction->update_meta('description', $settings['description']);
104
+		$reaction->update_meta('log_text', $settings['log_text']);
105 105
 	}
106 106
 
107 107
 	/**
108 108
 	 * @since 1.0.0
109 109
 	 */
110
-	public function hit( WordPoints_Hook_Fire $fire ) {
110
+	public function hit(WordPoints_Hook_Fire $fire) {
111 111
 
112 112
 		$reaction = $fire->reaction;
113 113
 
114 114
 		$target = $fire->event_args->get_from_hierarchy(
115
-			$reaction->get_meta( 'target' )
115
+			$reaction->get_meta('target')
116 116
 		);
117 117
 
118
-		if ( ! $target instanceof WordPoints_Entity ) {
118
+		if ( ! $target instanceof WordPoints_Entity) {
119 119
 			return;
120 120
 		}
121 121
 
122 122
 		$meta = array();
123 123
 
124
-		foreach ( $fire->event_args->get_entities() as $entity ) {
125
-			$meta[ $entity->get_slug() ] = $entity->get_the_id();
124
+		foreach ($fire->event_args->get_entities() as $entity) {
125
+			$meta[$entity->get_slug()] = $entity->get_the_id();
126 126
 		}
127 127
 
128 128
 		wordpoints_alter_points(
129 129
 			$target->get_the_id()
130
-			, $reaction->get_meta( 'points' )
131
-			, $reaction->get_meta( 'points_type' )
130
+			, $reaction->get_meta('points')
131
+			, $reaction->get_meta('points_type')
132 132
 			, $reaction->get_event_slug()
133 133
 			, $meta
134
-			, $reaction->get_meta( 'log_text' )
134
+			, $reaction->get_meta('log_text')
135 135
 		);
136 136
 	}
137 137
 
138 138
 	/**
139 139
 	 * @since 1.0.0
140 140
 	 */
141
-	public function reverse_hit( WordPoints_Hook_Fire $fire ) {
141
+	public function reverse_hit(WordPoints_Hook_Fire $fire) {
142 142
 
143 143
 		$meta_queries = array(
144 144
 			array(
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 			),
150 150
 		);
151 151
 
152
-		foreach ( $fire->event_args->get_entities() as $slug => $entity ) {
152
+		foreach ($fire->event_args->get_entities() as $slug => $entity) {
153 153
 
154 154
 			$meta_queries[] = array(
155 155
 				'key'   => $slug,
@@ -166,35 +166,35 @@  discard block
 block discarded – undo
166 166
 
167 167
 		$logs = $query->get();
168 168
 
169
-		if ( ! $logs ) {
169
+		if ( ! $logs) {
170 170
 			return;
171 171
 		}
172 172
 
173 173
 		global $wpdb;
174 174
 
175
-		add_filter( 'wordpoints_points_log', '__return_false' );
175
+		add_filter('wordpoints_points_log', '__return_false');
176 176
 
177
-		foreach ( $logs as $log ) {
177
+		foreach ($logs as $log) {
178 178
 
179 179
 			wordpoints_alter_points(
180 180
 				$log->user_id
181 181
 				, -$log->points
182 182
 				, $log->points_type
183 183
 				, "reverse-{$log->log_type}"
184
-				, array( 'original_log_id' => $log->id )
184
+				, array('original_log_id' => $log->id)
185 185
 			);
186 186
 
187
-			wordpoints_points_log_delete_all_metadata( $log->id );
187
+			wordpoints_points_log_delete_all_metadata($log->id);
188 188
 
189 189
 			// Now delete the log.
190 190
 			$wpdb->delete(
191 191
 				$wpdb->wordpoints_points_logs
192
-				, array( 'id' => $log->id )
192
+				, array('id' => $log->id)
193 193
 				, '%d'
194 194
 			); // WPCS: cache OK, cleaned by wordpoints_alter_points().
195 195
 		}
196 196
 
197
-		remove_filter( 'wordpoints_points_log', '__return_false' );
197
+		remove_filter('wordpoints_points_log', '__return_false');
198 198
 	}
199 199
 }
200 200
 
Please login to merge, or discard this patch.
src/includes/classes/index.php 1 patch
Spacing   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -10,108 +10,108 @@
 block discarded – undo
10 10
  */
11 11
 
12 12
 // auto-generated {
13
-require_once( dirname( __FILE__ ) . 'app.php' );
14
-require_once( dirname( __FILE__ ) . 'app/registry.php' );
15
-require_once( dirname( __FILE__ ) . 'class/autoloader.php' );
16
-require_once( dirname( __FILE__ ) . 'class/registry.php' );
17
-require_once( dirname( __FILE__ ) . 'class/registry/children.php' );
18
-require_once( dirname( __FILE__ ) . 'class/registry/childreni.php' );
19
-require_once( dirname( __FILE__ ) . 'class/registry/persistent.php' );
20
-require_once( dirname( __FILE__ ) . 'class/registryi.php' );
21
-require_once( dirname( __FILE__ ) . 'data/type.php' );
22
-require_once( dirname( __FILE__ ) . 'data/type/integer.php' );
23
-require_once( dirname( __FILE__ ) . 'data/type/text.php' );
24
-require_once( dirname( __FILE__ ) . 'data/typei.php' );
25
-require_once( dirname( __FILE__ ) . 'entity.php' );
26
-require_once( dirname( __FILE__ ) . 'entity/array.php' );
27
-require_once( dirname( __FILE__ ) . 'entity/attr.php' );
28
-require_once( dirname( __FILE__ ) . 'entity/childi.php' );
29
-require_once( dirname( __FILE__ ) . 'entity/comment.php' );
30
-require_once( dirname( __FILE__ ) . 'entity/comment/author.php' );
31
-require_once( dirname( __FILE__ ) . 'entity/comment/post.php' );
32
-require_once( dirname( __FILE__ ) . 'entity/context.php' );
33
-require_once( dirname( __FILE__ ) . 'entity/context/network.php' );
34
-require_once( dirname( __FILE__ ) . 'entity/context/site.php' );
35
-require_once( dirname( __FILE__ ) . 'entity/enumerablei.php' );
36
-require_once( dirname( __FILE__ ) . 'entity/hierarchy.php' );
37
-require_once( dirname( __FILE__ ) . 'entity/hierarchyi.php' );
38
-require_once( dirname( __FILE__ ) . 'entity/parenti.php' );
39
-require_once( dirname( __FILE__ ) . 'entity/post.php' );
40
-require_once( dirname( __FILE__ ) . 'entity/post/author.php' );
41
-require_once( dirname( __FILE__ ) . 'entity/post/content.php' );
42
-require_once( dirname( __FILE__ ) . 'entity/post/terms.php' );
43
-require_once( dirname( __FILE__ ) . 'entity/post/type.php' );
44
-require_once( dirname( __FILE__ ) . 'entity/post/type/name.php' );
45
-require_once( dirname( __FILE__ ) . 'entity/post/type/relationship.php' );
46
-require_once( dirname( __FILE__ ) . 'entity/relationship.php' );
47
-require_once( dirname( __FILE__ ) . 'entity/relationship/dynamic.php' );
48
-require_once( dirname( __FILE__ ) . 'entity/restricted/visibilityi.php' );
49
-require_once( dirname( __FILE__ ) . 'entity/site.php' );
50
-require_once( dirname( __FILE__ ) . 'entity/term.php' );
51
-require_once( dirname( __FILE__ ) . 'entity/term/id.php' );
52
-require_once( dirname( __FILE__ ) . 'entity/user.php' );
53
-require_once( dirname( __FILE__ ) . 'entity/user/role.php' );
54
-require_once( dirname( __FILE__ ) . 'entity/user/role/name.php' );
55
-require_once( dirname( __FILE__ ) . 'entity/user/roles.php' );
56
-require_once( dirname( __FILE__ ) . 'entityish.php' );
57
-require_once( dirname( __FILE__ ) . 'entityishi.php' );
58
-require_once( dirname( __FILE__ ) . 'hierarchy.php' );
59
-require_once( dirname( __FILE__ ) . 'hook/action.php' );
60
-require_once( dirname( __FILE__ ) . 'hook/action/comment/new.php' );
61
-require_once( dirname( __FILE__ ) . 'hook/action/post/publish.php' );
62
-require_once( dirname( __FILE__ ) . 'hook/actioni.php' );
63
-require_once( dirname( __FILE__ ) . 'hook/actions.php' );
64
-require_once( dirname( __FILE__ ) . 'hook/arg.php' );
65
-require_once( dirname( __FILE__ ) . 'hook/arg/current/post.php' );
66
-require_once( dirname( __FILE__ ) . 'hook/arg/current/site.php' );
67
-require_once( dirname( __FILE__ ) . 'hook/arg/current/user.php' );
68
-require_once( dirname( __FILE__ ) . 'hook/arg/dynamic.php' );
69
-require_once( dirname( __FILE__ ) . 'hook/condition.php' );
70
-require_once( dirname( __FILE__ ) . 'hook/condition/entity/array/contains.php' );
71
-require_once( dirname( __FILE__ ) . 'hook/condition/equals.php' );
72
-require_once( dirname( __FILE__ ) . 'hook/condition/string/contains.php' );
73
-require_once( dirname( __FILE__ ) . 'hook/conditioni.php' );
74
-require_once( dirname( __FILE__ ) . 'hook/event.php' );
75
-require_once( dirname( __FILE__ ) . 'hook/event/args.php' );
76
-require_once( dirname( __FILE__ ) . 'hook/event/comment/leave.php' );
77
-require_once( dirname( __FILE__ ) . 'hook/event/dynamic.php' );
78
-require_once( dirname( __FILE__ ) . 'hook/event/media/upload.php' );
79
-require_once( dirname( __FILE__ ) . 'hook/event/post/publish.php' );
80
-require_once( dirname( __FILE__ ) . 'hook/event/user/register.php' );
81
-require_once( dirname( __FILE__ ) . 'hook/event/user/visit.php' );
82
-require_once( dirname( __FILE__ ) . 'hook/eventi.php' );
83
-require_once( dirname( __FILE__ ) . 'hook/events.php' );
84
-require_once( dirname( __FILE__ ) . 'hook/extension.php' );
85
-require_once( dirname( __FILE__ ) . 'hook/extension/conditions.php' );
86
-require_once( dirname( __FILE__ ) . 'hook/extension/periods.php' );
87
-require_once( dirname( __FILE__ ) . 'hook/fire.php' );
88
-require_once( dirname( __FILE__ ) . 'hook/firer.php' );
89
-require_once( dirname( __FILE__ ) . 'hook/firer/reverse.php' );
90
-require_once( dirname( __FILE__ ) . 'hook/fireri.php' );
91
-require_once( dirname( __FILE__ ) . 'hook/hit/logger.php' );
92
-require_once( dirname( __FILE__ ) . 'hook/reaction.php' );
93
-require_once( dirname( __FILE__ ) . 'hook/reaction/options.php' );
94
-require_once( dirname( __FILE__ ) . 'hook/reaction/storage.php' );
95
-require_once( dirname( __FILE__ ) . 'hook/reaction/storage/options.php' );
96
-require_once( dirname( __FILE__ ) . 'hook/reaction/storage/options/network.php' );
97
-require_once( dirname( __FILE__ ) . 'hook/reaction/storagei.php' );
98
-require_once( dirname( __FILE__ ) . 'hook/reaction/validator.php' );
99
-require_once( dirname( __FILE__ ) . 'hook/reactioni.php' );
100
-require_once( dirname( __FILE__ ) . 'hook/reactor.php' );
101
-require_once( dirname( __FILE__ ) . 'hook/reactor/points.php' );
102
-require_once( dirname( __FILE__ ) . 'hook/retroactive/conditions.php' );
103
-require_once( dirname( __FILE__ ) . 'hook/retroactive/query.php' );
104
-require_once( dirname( __FILE__ ) . 'hook/retroactive/query/modifieri.php' );
105
-require_once( dirname( __FILE__ ) . 'hook/retroactive/queryable.php' );
106
-require_once( dirname( __FILE__ ) . 'hook/retroactive/queryi.php' );
107
-require_once( dirname( __FILE__ ) . 'hook/router.php' );
108
-require_once( dirname( __FILE__ ) . 'hook/settings.php' );
109
-require_once( dirname( __FILE__ ) . 'hook/settingsi.php' );
110
-require_once( dirname( __FILE__ ) . 'hook/validator/exception.php' );
111
-require_once( dirname( __FILE__ ) . 'hooks.php' );
112
-require_once( dirname( __FILE__ ) . 'query/builder/db/mysql.php' );
113
-require_once( dirname( __FILE__ ) . 'spec.php' );
114
-require_once( dirname( __FILE__ ) . 'specedi.php' );
13
+require_once(dirname(__FILE__).'app.php');
14
+require_once(dirname(__FILE__).'app/registry.php');
15
+require_once(dirname(__FILE__).'class/autoloader.php');
16
+require_once(dirname(__FILE__).'class/registry.php');
17
+require_once(dirname(__FILE__).'class/registry/children.php');
18
+require_once(dirname(__FILE__).'class/registry/childreni.php');
19
+require_once(dirname(__FILE__).'class/registry/persistent.php');
20
+require_once(dirname(__FILE__).'class/registryi.php');
21
+require_once(dirname(__FILE__).'data/type.php');
22
+require_once(dirname(__FILE__).'data/type/integer.php');
23
+require_once(dirname(__FILE__).'data/type/text.php');
24
+require_once(dirname(__FILE__).'data/typei.php');
25
+require_once(dirname(__FILE__).'entity.php');
26
+require_once(dirname(__FILE__).'entity/array.php');
27
+require_once(dirname(__FILE__).'entity/attr.php');
28
+require_once(dirname(__FILE__).'entity/childi.php');
29
+require_once(dirname(__FILE__).'entity/comment.php');
30
+require_once(dirname(__FILE__).'entity/comment/author.php');
31
+require_once(dirname(__FILE__).'entity/comment/post.php');
32
+require_once(dirname(__FILE__).'entity/context.php');
33
+require_once(dirname(__FILE__).'entity/context/network.php');
34
+require_once(dirname(__FILE__).'entity/context/site.php');
35
+require_once(dirname(__FILE__).'entity/enumerablei.php');
36
+require_once(dirname(__FILE__).'entity/hierarchy.php');
37
+require_once(dirname(__FILE__).'entity/hierarchyi.php');
38
+require_once(dirname(__FILE__).'entity/parenti.php');
39
+require_once(dirname(__FILE__).'entity/post.php');
40
+require_once(dirname(__FILE__).'entity/post/author.php');
41
+require_once(dirname(__FILE__).'entity/post/content.php');
42
+require_once(dirname(__FILE__).'entity/post/terms.php');
43
+require_once(dirname(__FILE__).'entity/post/type.php');
44
+require_once(dirname(__FILE__).'entity/post/type/name.php');
45
+require_once(dirname(__FILE__).'entity/post/type/relationship.php');
46
+require_once(dirname(__FILE__).'entity/relationship.php');
47
+require_once(dirname(__FILE__).'entity/relationship/dynamic.php');
48
+require_once(dirname(__FILE__).'entity/restricted/visibilityi.php');
49
+require_once(dirname(__FILE__).'entity/site.php');
50
+require_once(dirname(__FILE__).'entity/term.php');
51
+require_once(dirname(__FILE__).'entity/term/id.php');
52
+require_once(dirname(__FILE__).'entity/user.php');
53
+require_once(dirname(__FILE__).'entity/user/role.php');
54
+require_once(dirname(__FILE__).'entity/user/role/name.php');
55
+require_once(dirname(__FILE__).'entity/user/roles.php');
56
+require_once(dirname(__FILE__).'entityish.php');
57
+require_once(dirname(__FILE__).'entityishi.php');
58
+require_once(dirname(__FILE__).'hierarchy.php');
59
+require_once(dirname(__FILE__).'hook/action.php');
60
+require_once(dirname(__FILE__).'hook/action/comment/new.php');
61
+require_once(dirname(__FILE__).'hook/action/post/publish.php');
62
+require_once(dirname(__FILE__).'hook/actioni.php');
63
+require_once(dirname(__FILE__).'hook/actions.php');
64
+require_once(dirname(__FILE__).'hook/arg.php');
65
+require_once(dirname(__FILE__).'hook/arg/current/post.php');
66
+require_once(dirname(__FILE__).'hook/arg/current/site.php');
67
+require_once(dirname(__FILE__).'hook/arg/current/user.php');
68
+require_once(dirname(__FILE__).'hook/arg/dynamic.php');
69
+require_once(dirname(__FILE__).'hook/condition.php');
70
+require_once(dirname(__FILE__).'hook/condition/entity/array/contains.php');
71
+require_once(dirname(__FILE__).'hook/condition/equals.php');
72
+require_once(dirname(__FILE__).'hook/condition/string/contains.php');
73
+require_once(dirname(__FILE__).'hook/conditioni.php');
74
+require_once(dirname(__FILE__).'hook/event.php');
75
+require_once(dirname(__FILE__).'hook/event/args.php');
76
+require_once(dirname(__FILE__).'hook/event/comment/leave.php');
77
+require_once(dirname(__FILE__).'hook/event/dynamic.php');
78
+require_once(dirname(__FILE__).'hook/event/media/upload.php');
79
+require_once(dirname(__FILE__).'hook/event/post/publish.php');
80
+require_once(dirname(__FILE__).'hook/event/user/register.php');
81
+require_once(dirname(__FILE__).'hook/event/user/visit.php');
82
+require_once(dirname(__FILE__).'hook/eventi.php');
83
+require_once(dirname(__FILE__).'hook/events.php');
84
+require_once(dirname(__FILE__).'hook/extension.php');
85
+require_once(dirname(__FILE__).'hook/extension/conditions.php');
86
+require_once(dirname(__FILE__).'hook/extension/periods.php');
87
+require_once(dirname(__FILE__).'hook/fire.php');
88
+require_once(dirname(__FILE__).'hook/firer.php');
89
+require_once(dirname(__FILE__).'hook/firer/reverse.php');
90
+require_once(dirname(__FILE__).'hook/fireri.php');
91
+require_once(dirname(__FILE__).'hook/hit/logger.php');
92
+require_once(dirname(__FILE__).'hook/reaction.php');
93
+require_once(dirname(__FILE__).'hook/reaction/options.php');
94
+require_once(dirname(__FILE__).'hook/reaction/storage.php');
95
+require_once(dirname(__FILE__).'hook/reaction/storage/options.php');
96
+require_once(dirname(__FILE__).'hook/reaction/storage/options/network.php');
97
+require_once(dirname(__FILE__).'hook/reaction/storagei.php');
98
+require_once(dirname(__FILE__).'hook/reaction/validator.php');
99
+require_once(dirname(__FILE__).'hook/reactioni.php');
100
+require_once(dirname(__FILE__).'hook/reactor.php');
101
+require_once(dirname(__FILE__).'hook/reactor/points.php');
102
+require_once(dirname(__FILE__).'hook/retroactive/conditions.php');
103
+require_once(dirname(__FILE__).'hook/retroactive/query.php');
104
+require_once(dirname(__FILE__).'hook/retroactive/query/modifieri.php');
105
+require_once(dirname(__FILE__).'hook/retroactive/queryable.php');
106
+require_once(dirname(__FILE__).'hook/retroactive/queryi.php');
107
+require_once(dirname(__FILE__).'hook/router.php');
108
+require_once(dirname(__FILE__).'hook/settings.php');
109
+require_once(dirname(__FILE__).'hook/settingsi.php');
110
+require_once(dirname(__FILE__).'hook/validator/exception.php');
111
+require_once(dirname(__FILE__).'hooks.php');
112
+require_once(dirname(__FILE__).'query/builder/db/mysql.php');
113
+require_once(dirname(__FILE__).'spec.php');
114
+require_once(dirname(__FILE__).'specedi.php');
115 115
 // }
116 116
 
117 117
 // EOF
Please login to merge, or discard this patch.