Completed
Push — develop ( 192d27...cb660e )
by J.D.
03:12
created
src/classes/entity/restrictioni.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@
 block discarded – undo
21 21
 	 * @param string[]   $hierarchy The hierarchy of this entity, consisting of the
22 22
 	 *                              entity slug followed by the slugs leading to the
23 23
 	 *                              descendant in question, if not the entity itself.
24
+	 * @return void
24 25
 	 */
25 26
 	public function __construct( $entity_id, array $hierarchy );
26 27
 
Please login to merge, or discard this patch.
src/classes/hook/extension/hit/listeneri.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
 	 * @since 2.1.0
21 21
 	 *
22 22
 	 * @param WordPoints_Hook_Fire $fire The hook fire object.
23
+	 * @return void
23 24
 	 */
24 25
 	public function after_hit( WordPoints_Hook_Fire $fire );
25 26
 }
Please login to merge, or discard this patch.
src/classes/hook/extension/miss/listeneri.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
 	 * @since 2.1.0
21 21
 	 *
22 22
 	 * @param WordPoints_Hook_Fire $fire The fire that was a miss.
23
+	 * @return void
23 24
 	 */
24 25
 	public function after_miss( WordPoints_Hook_Fire $fire );
25 26
 }
Please login to merge, or discard this patch.
src/classes/hook/settingsi.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -38,6 +38,7 @@
 block discarded – undo
38 38
 	 *
39 39
 	 * @param WordPoints_Hook_ReactionI $reaction The reaction object.
40 40
 	 * @param array                     $settings The settings for a hook reaction.
41
+	 * @return void
41 42
 	 */
42 43
 	public function update_settings(
43 44
 		WordPoints_Hook_ReactionI $reaction,
Please login to merge, or discard this patch.
src/components/points/classes/logs/viewing/restrictioni.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -18,6 +18,7 @@
 block discarded – undo
18 18
 	 * @since 2.2.0
19 19
 	 *
20 20
 	 * @param object $log The object for the points log the restriction is for.
21
+	 * @return void
21 22
 	 */
22 23
 	public function __construct( $log );
23 24
 
Please login to merge, or discard this patch.
src/classes/shortcode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
 	 *
281 281
 	 * @since 1.8.0
282 282
 	 *
283
-	 * @return string|WP_Error|null An error message or object on failure.
283
+	 * @return string|null An error message or object on failure.
284 284
 	 */
285 285
 	protected function verify_atts() {
286 286
 
Please login to merge, or discard this patch.
src/includes/maintenance.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@
 block discarded – undo
20 20
 }
21 21
 
22 22
 // If we're not running a module check, let the maintenance message show.
23
-if ( ! isset( $_GET['wordpoints_module_check'], $_GET['check_module'] ) ) { // WPCS: CSRF OK.
23
+if ( ! isset( $_GET['wordpoints_module_check'], $_GET['check_module'] ) ) {
24
+// WPCS: CSRF OK.
24 25
 	return;
25 26
 }
26 27
 
Please login to merge, or discard this patch.
src/admin/classes/ajax/hooks.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -334,7 +334,8 @@  discard block
 block discarded – undo
334 334
 	 */
335 335
 	protected function get_reaction_store() {
336 336
 
337
-		if ( ! isset( $_POST['reaction_store'] ) ) { // WPCS: CSRF OK.
337
+		if ( ! isset( $_POST['reaction_store'] ) ) {
338
+// WPCS: CSRF OK.
338 339
 			$this->unexpected_error( 'reaction_store' );
339 340
 		}
340 341
 
@@ -361,7 +362,8 @@  discard block
 block discarded – undo
361 362
 	 */
362 363
 	protected function get_reaction() {
363 364
 
364
-		if ( ! isset( $_POST['id'] ) ) { // WPCS: CSRF OK.
365
+		if ( ! isset( $_POST['id'] ) ) {
366
+// WPCS: CSRF OK.
365 367
 			$this->unexpected_error( 'id' );
366 368
 		}
367 369
 
Please login to merge, or discard this patch.
src/admin/screens/modules-load.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,11 @@
 block discarded – undo
11 11
 
12 12
 if ( isset( $_POST['clear-recent-list'] ) ) {
13 13
 	$action = 'clear-recent-list';
14
-} elseif ( isset( $_REQUEST['action'] ) && -1 !== (int) $_REQUEST['action'] ) { // WPCS: CSRF OK.
14
+} elseif ( isset( $_REQUEST['action'] ) && -1 !== (int) $_REQUEST['action'] ) {
15
+// WPCS: CSRF OK.
15 16
 	$action = sanitize_key( $_REQUEST['action'] );
16
-} elseif ( isset( $_REQUEST['action2'] ) && -1 !== (int) $_REQUEST['action2'] ) { // WPCS: CSRF OK.
17
+} elseif ( isset( $_REQUEST['action2'] ) && -1 !== (int) $_REQUEST['action2'] ) {
18
+// WPCS: CSRF OK.
17 19
 	$action = sanitize_key( $_REQUEST['action2'] );
18 20
 } else {
19 21
 	$action = '';
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 		if ( ! is_network_admin() ) {
77 77
 
78 78
 			$recent = wordpoints_get_array_option( 'wordpoints_recently_activated_modules' );
79
-			unset( $recent[ $module ] );
79
+			unset( $recent[$module] );
80 80
 			update_option( 'wordpoints_recently_activated_modules', $recent );
81 81
 		}
82 82
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
 			foreach ( $modules as $i => $module ) {
102 102
 				if ( is_wordpoints_module_active_for_network( $module ) ) {
103
-					unset( $modules[ $i ] );
103
+					unset( $modules[$i] );
104 104
 				}
105 105
 			}
106 106
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
 			foreach ( $modules as $i => $module ) {
110 110
 				if ( is_wordpoints_module_active( $module ) || is_network_only_wordpoints_module( $module ) ) {
111
-					unset( $modules[ $i ] );
111
+					unset( $modules[$i] );
112 112
 				}
113 113
 			}
114 114
 		}
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 			$recent = wordpoints_get_array_option( 'wordpoints_recently_activated_modules' );
131 131
 
132 132
 			foreach ( $modules as $module ) {
133
-				unset( $recent[ $module ] );
133
+				unset( $recent[$module] );
134 134
 			}
135 135
 
136 136
 			update_option( 'wordpoints_recently_activated_modules', $recent );
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 			$deactivated = array();
245 245
 
246 246
 			foreach ( $modules as $module ) {
247
-				$deactivated[ $module ] = time();
247
+				$deactivated[$module] = time();
248 248
 			}
249 249
 
250 250
 			update_option( 'wordpoints_recently_activated_modules', $deactivated + wordpoints_get_array_option( 'wordpoints_recently_activated_modules' ) );
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 				true !== wordpoints_validate_module( $module )
279 279
 				|| is_wordpoints_module_active( $module )
280 280
 			) {
281
-				unset( $modules[ $key ] );
281
+				unset( $modules[$key] );
282 282
 			}
283 283
 		}
284 284
 
@@ -316,10 +316,10 @@  discard block
 block discarded – undo
316 316
 
317 317
 						if ( ! empty( $data ) ) {
318 318
 
319
-							$module_info[ $module ] = $data;
320
-							$module_info[ $module ]['is_uninstallable'] = is_uninstallable_wordpoints_module( $module );
319
+							$module_info[$module] = $data;
320
+							$module_info[$module]['is_uninstallable'] = is_uninstallable_wordpoints_module( $module );
321 321
 
322
-							if ( ! $module_info[ $module ]['network'] ) {
322
+							if ( ! $module_info[$module]['network'] ) {
323 323
 								$have_non_network_modules = true;
324 324
 							}
325 325
 						}
@@ -338,10 +338,10 @@  discard block
 block discarded – undo
338 338
 
339 339
 						foreach ( $folder_modules as $module_file => $data ) {
340 340
 
341
-							$module_info[ $module_file ] = $data;
342
-							$module_info[ $module_file ]['is_uninstallable'] = is_uninstallable_wordpoints_module( $module );
341
+							$module_info[$module_file] = $data;
342
+							$module_info[$module_file]['is_uninstallable'] = is_uninstallable_wordpoints_module( $module );
343 343
 
344
-							if ( ! $module_info[ $module_file ]['network'] ) {
344
+							if ( ! $module_info[$module_file]['network'] ) {
345 345
 								$have_non_network_modules = true;
346 346
 							}
347 347
 						}
Please login to merge, or discard this patch.