Completed
Pull Request — master (#35)
by Sébastien
02:30
created
wp-update-php/wp-update-php.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * WordPress Update PHP Class
4
- *
5
- * @package   WP_Update_Php
6
- * @author    Coen Jacobs, Sébastien Dumont
7
- * @license   GPL-2.0+
8
- */
3
+	 * WordPress Update PHP Class
4
+	 *
5
+	 * @package   WP_Update_Php
6
+	 * @author    Coen Jacobs, Sébastien Dumont
7
+	 * @license   GPL-2.0+
8
+	 */
9 9
 
10 10
 class WP_Update_Php {
11 11
 	/**
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,25 +46,25 @@  discard block
 block discarded – undo
46 46
 	 * @param  array $requirements Minimum and Recommended version of PHP.
47 47
 	 */
48 48
 	public function __construct($plugin = array(), $requirements = array()) {
49
-		if ( is_array($plugin) && !empty($plugin['name']) ) {
49
+		if (is_array($plugin) && ! empty($plugin['name'])) {
50 50
 			$this->plugin_name = $plugin['name'];
51 51
 		} else {
52 52
 			$this->plugin_name = '';
53 53
 		}
54 54
 
55
-		if ( is_array($plugin) && !empty($plugin['textdomain']) ) {
55
+		if (is_array($plugin) && ! empty($plugin['textdomain'])) {
56 56
 			$this->textdomain = $plugin['textdomain'];
57 57
 		} else {
58 58
 			$this->textdomain = 'wpupdatephp';
59 59
 		}
60 60
 
61
-		if ( is_array($requirements) && !empty($requirements['recommended_version']) ) {
61
+		if (is_array($requirements) && ! empty($requirements['recommended_version'])) {
62 62
 			$this->minimum_version = $requirements['minimum_version'];
63 63
 		} else {
64 64
 			$this->minimum_version = '5.3.0';
65 65
 		}
66 66
 
67
-		if ( is_array($requirements) && !empty($requirements['recommended_version']) ) {
67
+		if (is_array($requirements) && ! empty($requirements['recommended_version'])) {
68 68
 			$this->recommended_version = $requirements['recommended_version'];
69 69
 		} else {
70 70
 			$this->recommended_version = null;
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 * @param  callable $callback Callable that displays admin notice.
127 127
 	 */
128 128
 	private function load_version_notice($callback) {
129
-		if ( is_admin() && ! defined('DOING_AJAX')) {
129
+		if (is_admin() && ! defined('DOING_AJAX')) {
130 130
 			add_action('admin_notices', $callback);
131 131
 			add_action('network_admin_notices', $callback);
132 132
 		}
Please login to merge, or discard this patch.