Completed
Branch develop (9aa69a)
by J.D.
03:55
created
src/classes/uninstaller/core/components.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,24 +27,24 @@
 block discarded – undo
27 27
 		// Uninstall the components.
28 28
 		foreach ( $components->get() as $component => $data ) {
29 29
 
30
-			if ( isset( $data['installable'] ) ) {
30
+			if ( isset( $data[ 'installable' ] ) ) {
31 31
 
32 32
 				WordPoints_Class_Autoloader::register_dir(
33 33
 					WORDPOINTS_DIR . "components/{$component}/classes"
34 34
 				);
35 35
 
36
-				$installable = $data['installable'];
36
+				$installable = $data[ 'installable' ];
37 37
 
38 38
 				$installer = new WordPoints_Uninstaller( new $installable() );
39 39
 				$installer->run();
40 40
 
41
-			} elseif ( isset( $data['un_installer'] ) ) {
41
+			} elseif ( isset( $data[ 'un_installer' ] ) ) {
42 42
 
43 43
 				WordPoints_Installables::get_installer(
44 44
 					'component'
45 45
 					, $component
46 46
 					, 'uninstall' // Required, but not used.
47
-					, $data['un_installer']
47
+					, $data[ 'un_installer' ]
48 48
 				)
49 49
 					->uninstall();
50 50
 			}
Please login to merge, or discard this patch.
src/classes/uninstaller/factory/options.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,16 +84,16 @@
 block discarded – undo
84 84
 			}
85 85
 
86 86
 			if ( 'network' === $context ) {
87
-				$routines[] = new WordPoints_Uninstaller_Options_Wildcards_Network( $option );
87
+				$routines[ ] = new WordPoints_Uninstaller_Options_Wildcards_Network( $option );
88 88
 			} else {
89
-				$routines[] = new WordPoints_Uninstaller_Options_Wildcards( $option );
89
+				$routines[ ] = new WordPoints_Uninstaller_Options_Wildcards( $option );
90 90
 			}
91 91
 
92 92
 			unset( $options[ $index ] );
93 93
 		}
94 94
 
95 95
 		if ( ! empty( $options ) ) {
96
-			$routines[] = new WordPoints_Uninstaller_Callback(
96
+			$routines[ ] = new WordPoints_Uninstaller_Callback(
97 97
 				'network' === $context ? 'delete_site_option' : 'delete_option'
98 98
 				, $options
99 99
 			);
Please login to merge, or discard this patch.
src/classes/uninstaller/factory/widgets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 		$options = array();
36 36
 
37 37
 		foreach ( $widgets as $widget ) {
38
-			$options[] = 'widget_' . $widget;
38
+			$options[ ] = 'widget_' . $widget;
39 39
 		}
40 40
 
41 41
 		$this->routines = array(
Please login to merge, or discard this patch.
src/classes/uninstaller/factory/metadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 				continue;
114 114
 			}
115 115
 
116
-			$routines[] = new WordPoints_Uninstaller_Metadata_Wildcards(
116
+			$routines[ ] = new WordPoints_Uninstaller_Metadata_Wildcards(
117 117
 				$this->type
118 118
 				, $key
119 119
 				, $this->prefix_for_site && 'site' === $context
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 		}
124 124
 
125 125
 		if ( ! empty( $keys ) ) {
126
-			$routines[] = new WordPoints_Uninstaller_Metadata(
126
+			$routines[ ] = new WordPoints_Uninstaller_Metadata(
127 127
 				$this->type
128 128
 				, $keys
129 129
 				, $this->prefix_for_site && 'site' === $context
Please login to merge, or discard this patch.
src/classes/uninstaller/factory/admin/screens/with/list/tables.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
 			$args = array_merge( $defaults, $args );
110 110
 
111
-			$parent = $args['parent'];
111
+			$parent = $args[ 'parent' ];
112 112
 
113 113
 			// The extensions screen is the top-level screen on each site when
114 114
 			// network installed.
@@ -124,19 +124,19 @@  discard block
 block discarded – undo
124 124
 
125 125
 			// Each user can hide specific columns of the table.
126 126
 			if ( 'network' === $context ) {
127
-				$meta_keys[] = "manage{$parent}_page_{$screen_id}-networkcolumnshidden";
127
+				$meta_keys[ ] = "manage{$parent}_page_{$screen_id}-networkcolumnshidden";
128 128
 			} else {
129
-				$meta_keys[] = "manage{$parent}_page_{$screen_id}columnshidden";
129
+				$meta_keys[ ] = "manage{$parent}_page_{$screen_id}columnshidden";
130 130
 			}
131 131
 
132 132
 			// Loop through each of the other options provided by this list table.
133
-			foreach ( $args['options'] as $option ) {
133
+			foreach ( $args[ 'options' ] as $option ) {
134 134
 
135 135
 				// Each user gets to set the options to their liking.
136 136
 				if ( 'network' === $context ) {
137
-					$meta_keys[] = "{$parent}_page_{$screen_id}_network_{$option}";
137
+					$meta_keys[ ] = "{$parent}_page_{$screen_id}_network_{$option}";
138 138
 				} else {
139
-					$meta_keys[] = "{$parent}_page_{$screen_id}_{$option}";
139
+					$meta_keys[ ] = "{$parent}_page_{$screen_id}_{$option}";
140 140
 				}
141 141
 			}
142 142
 		}
Please login to merge, or discard this patch.
src/classes/uninstaller/factory/admin/screens/with/meta/boxes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,18 +110,18 @@
 block discarded – undo
110 110
 		foreach ( $this->screens[ $context ] as $screen_id => $args ) {
111 111
 
112 112
 			$args            = array_merge( $defaults, $args );
113
-			$args['options'] = array_merge( $options, $args['options'] );
113
+			$args[ 'options' ] = array_merge( $options, $args[ 'options' ] );
114 114
 
115 115
 			// Each user gets to set the options to their liking.
116
-			foreach ( $args['options'] as $option ) {
116
+			foreach ( $args[ 'options' ] as $option ) {
117 117
 
118
-				$meta_key = "{$option}_{$args['parent']}_page_{$screen_id}";
118
+				$meta_key = "{$option}_{$args[ 'parent' ]}_page_{$screen_id}";
119 119
 
120 120
 				if ( 'network' === $context ) {
121 121
 					$meta_key .= '-network';
122 122
 				}
123 123
 
124
-				$meta_keys[] = $meta_key;
124
+				$meta_keys[ ] = $meta_key;
125 125
 			}
126 126
 		}
127 127
 
Please login to merge, or discard this patch.
src/classes/uninstaller/factory/db/tables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 		$routines = array();
72 72
 
73 73
 		if ( ! empty( $this->db_tables[ $context ] ) ) {
74
-			$routines[] = new WordPoints_Uninstaller_DB_Tables(
74
+			$routines[ ] = new WordPoints_Uninstaller_DB_Tables(
75 75
 				$this->db_tables[ $context ]
76 76
 				, 'site' === $context ? 'site' : 'base'
77 77
 			);
Please login to merge, or discard this patch.
src/classes/uninstaller/factory/transients.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 		$routines = array();
72 72
 
73 73
 		if ( isset( $this->transients[ $context ] ) ) {
74
-			$routines[] = new WordPoints_Uninstaller_Callback(
74
+			$routines[ ] = new WordPoints_Uninstaller_Callback(
75 75
 				'network' === $context ? 'delete_site_transient' : 'delete_transient'
76 76
 				, $this->transients[ $context ]
77 77
 			);
Please login to merge, or discard this patch.
src/classes/uninstaller/factory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,11 +86,11 @@
 block discarded – undo
86 86
 				$class = $data;
87 87
 				$args  = array();
88 88
 			} else {
89
-				$class = $data['class'];
90
-				$args  = $data['args'];
89
+				$class = $data[ 'class' ];
90
+				$args  = $data[ 'args' ];
91 91
 			}
92 92
 
93
-			$routines[] = wordpoints_construct_class_with_args( $class, $args );
93
+			$routines[ ] = wordpoints_construct_class_with_args( $class, $args );
94 94
 		}
95 95
 
96 96
 		return $routines;
Please login to merge, or discard this patch.