Completed
Push — develop ( 6ed990...9a49ab )
by David
01:12
created
src/modules/food-kg/includes/admin/Full_Page_Delegate.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 class Full_Page_Delegate implements Page_Delegate {
6 6
 
7
-	public function render() {
8
-		include WL_FOOD_KG_DIR_PATH . '/includes/admin/partials/main_ingredient.php';
9
-	}
7
+    public function render() {
8
+        include WL_FOOD_KG_DIR_PATH . '/includes/admin/partials/main_ingredient.php';
9
+    }
10 10
 
11
-	public function admin_enqueue_scripts() {
12
-		wp_enqueue_style( 'thickbox' );
13
-		wp_enqueue_script( 'plugin-install' );
14
-	}
11
+    public function admin_enqueue_scripts() {
12
+        wp_enqueue_style( 'thickbox' );
13
+        wp_enqueue_script( 'plugin-install' );
14
+    }
15 15
 
16 16
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,12 +5,12 @@
 block discarded – undo
5 5
 class Full_Page_Delegate implements Page_Delegate {
6 6
 
7 7
 	public function render() {
8
-		include WL_FOOD_KG_DIR_PATH . '/includes/admin/partials/main_ingredient.php';
8
+		include WL_FOOD_KG_DIR_PATH.'/includes/admin/partials/main_ingredient.php';
9 9
 	}
10 10
 
11 11
 	public function admin_enqueue_scripts() {
12
-		wp_enqueue_style( 'thickbox' );
13
-		wp_enqueue_script( 'plugin-install' );
12
+		wp_enqueue_style('thickbox');
13
+		wp_enqueue_script('plugin-install');
14 14
 	}
15 15
 
16 16
 }
Please login to merge, or discard this patch.
src/modules/food-kg/includes/admin/Page.php 2 patches
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -4,55 +4,55 @@
 block discarded – undo
4 4
 
5 5
 class Page {
6 6
 
7
-	/**
8
-	 * @var Page_Delegate
9
-	 */
10
-	private $delegate;
11
-
12
-	/**
13
-	 * @param Page_Delegate $full_page_delegate
14
-	 * @param Page_Delegate $modal_page_delegate
15
-	 */
16
-	public function __construct( $full_page_delegate, $modal_page_delegate ) {
17
-		$this->delegate = isset( $_GET['modal_window'] ) ? $modal_page_delegate : $full_page_delegate; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
18
-	}
19
-
20
-	public function register_hooks() {
21
-		add_action( 'admin_menu', array( $this, 'admin_menu' ) );
22
-		add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
23
-		if ( isset( $_GET['modal_window'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
24
-			add_action( 'in_admin_header', array( $this, 'remove_notices' ), 99 );
25
-		}
26
-	}
27
-
28
-	/**
29
-	 * Remove notices from ingredients modal.
30
-	 */
31
-	public function remove_notices() {
32
-		remove_all_actions( 'admin_notices' );
33
-		remove_all_actions( 'all_admin_notices' );
34
-	}
35
-
36
-	public function admin_menu() {
37
-		add_submenu_page(
38
-			'wl_admin_menu',
39
-			__( 'Ingredients', 'wordlift' ),
40
-			__( 'Ingredients', 'wordlift' ),
41
-			'manage_options',
42
-			'wl_ingredients',
43
-			array( $this, 'render' )
44
-		);
45
-	}
46
-
47
-	public function render() {
48
-		$this->delegate->render();
49
-	}
50
-
51
-	public function admin_enqueue_scripts() {
52
-		// Check that we are on the right screen
53
-		if ( get_current_screen()->id === 'wordlift_page_wl_ingredients' ) {
54
-			$this->delegate->admin_enqueue_scripts();
55
-		}
56
-	}
7
+    /**
8
+     * @var Page_Delegate
9
+     */
10
+    private $delegate;
11
+
12
+    /**
13
+     * @param Page_Delegate $full_page_delegate
14
+     * @param Page_Delegate $modal_page_delegate
15
+     */
16
+    public function __construct( $full_page_delegate, $modal_page_delegate ) {
17
+        $this->delegate = isset( $_GET['modal_window'] ) ? $modal_page_delegate : $full_page_delegate; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
18
+    }
19
+
20
+    public function register_hooks() {
21
+        add_action( 'admin_menu', array( $this, 'admin_menu' ) );
22
+        add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
23
+        if ( isset( $_GET['modal_window'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
24
+            add_action( 'in_admin_header', array( $this, 'remove_notices' ), 99 );
25
+        }
26
+    }
27
+
28
+    /**
29
+     * Remove notices from ingredients modal.
30
+     */
31
+    public function remove_notices() {
32
+        remove_all_actions( 'admin_notices' );
33
+        remove_all_actions( 'all_admin_notices' );
34
+    }
35
+
36
+    public function admin_menu() {
37
+        add_submenu_page(
38
+            'wl_admin_menu',
39
+            __( 'Ingredients', 'wordlift' ),
40
+            __( 'Ingredients', 'wordlift' ),
41
+            'manage_options',
42
+            'wl_ingredients',
43
+            array( $this, 'render' )
44
+        );
45
+    }
46
+
47
+    public function render() {
48
+        $this->delegate->render();
49
+    }
50
+
51
+    public function admin_enqueue_scripts() {
52
+        // Check that we are on the right screen
53
+        if ( get_current_screen()->id === 'wordlift_page_wl_ingredients' ) {
54
+            $this->delegate->admin_enqueue_scripts();
55
+        }
56
+    }
57 57
 
58 58
 }
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@  discard block
 block discarded – undo
13 13
 	 * @param Page_Delegate $full_page_delegate
14 14
 	 * @param Page_Delegate $modal_page_delegate
15 15
 	 */
16
-	public function __construct( $full_page_delegate, $modal_page_delegate ) {
17
-		$this->delegate = isset( $_GET['modal_window'] ) ? $modal_page_delegate : $full_page_delegate; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
16
+	public function __construct($full_page_delegate, $modal_page_delegate) {
17
+		$this->delegate = isset($_GET['modal_window']) ? $modal_page_delegate : $full_page_delegate; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
18 18
 	}
19 19
 
20 20
 	public function register_hooks() {
21
-		add_action( 'admin_menu', array( $this, 'admin_menu' ) );
22
-		add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
23
-		if ( isset( $_GET['modal_window'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
24
-			add_action( 'in_admin_header', array( $this, 'remove_notices' ), 99 );
21
+		add_action('admin_menu', array($this, 'admin_menu'));
22
+		add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
23
+		if (isset($_GET['modal_window'])) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
24
+			add_action('in_admin_header', array($this, 'remove_notices'), 99);
25 25
 		}
26 26
 	}
27 27
 
@@ -29,18 +29,18 @@  discard block
 block discarded – undo
29 29
 	 * Remove notices from ingredients modal.
30 30
 	 */
31 31
 	public function remove_notices() {
32
-		remove_all_actions( 'admin_notices' );
33
-		remove_all_actions( 'all_admin_notices' );
32
+		remove_all_actions('admin_notices');
33
+		remove_all_actions('all_admin_notices');
34 34
 	}
35 35
 
36 36
 	public function admin_menu() {
37 37
 		add_submenu_page(
38 38
 			'wl_admin_menu',
39
-			__( 'Ingredients', 'wordlift' ),
40
-			__( 'Ingredients', 'wordlift' ),
39
+			__('Ingredients', 'wordlift'),
40
+			__('Ingredients', 'wordlift'),
41 41
 			'manage_options',
42 42
 			'wl_ingredients',
43
-			array( $this, 'render' )
43
+			array($this, 'render')
44 44
 		);
45 45
 	}
46 46
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 	public function admin_enqueue_scripts() {
52 52
 		// Check that we are on the right screen
53
-		if ( get_current_screen()->id === 'wordlift_page_wl_ingredients' ) {
53
+		if (get_current_screen()->id === 'wordlift_page_wl_ingredients') {
54 54
 			$this->delegate->admin_enqueue_scripts();
55 55
 		}
56 56
 	}
Please login to merge, or discard this patch.
src/modules/food-kg/includes/admin/partials/main_ingredient.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 	<hr class="wp-header-end">
12 12
 	<?php
13 13
 
14
-	// Prepare Table of elements
15
-	$main_ingredient_list_table = new Main_Ingredient_List_Table();
16
-	$main_ingredient_list_table->prepare_items();
17
-	$main_ingredient_list_table->display();
18
-	?>
14
+    // Prepare Table of elements
15
+    $main_ingredient_list_table = new Main_Ingredient_List_Table();
16
+    $main_ingredient_list_table->prepare_items();
17
+    $main_ingredient_list_table->display();
18
+    ?>
19 19
 </div>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 
7 7
 
8 8
 <div class="wrap">
9
-	<h1 class="wp-heading-inline"><?php esc_html_e( 'Main Ingredients', 'wordlift' ); ?></h1>
10
-	<a href="<?php echo esc_url( admin_url( 'admin-ajax.php?action=wl_download_ingredients_data&_wpnonce=' . wp_create_nonce( 'wl-dl-ingredients-data-nonce' ) ) ); ?>" class="page-title-action"><?php esc_html_e( 'Download Ingredients Data', 'wordlift' ); ?></a>
9
+	<h1 class="wp-heading-inline"><?php esc_html_e('Main Ingredients', 'wordlift'); ?></h1>
10
+	<a href="<?php echo esc_url(admin_url('admin-ajax.php?action=wl_download_ingredients_data&_wpnonce='.wp_create_nonce('wl-dl-ingredients-data-nonce'))); ?>" class="page-title-action"><?php esc_html_e('Download Ingredients Data', 'wordlift'); ?></a>
11 11
 	<hr class="wp-header-end">
12 12
 	<?php
13 13
 
Please login to merge, or discard this patch.
src/wordlift.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -32,24 +32,24 @@  discard block
 block discarded – undo
32 32
 use Wordlift\Post\Post_Adapter;
33 33
 
34 34
 // If this file is called directly, abort.
35
-if ( ! defined( 'WPINC' ) ) {
35
+if ( ! defined('WPINC')) {
36 36
 	die;
37 37
 }
38 38
 
39
-define( 'WORDLIFT_VERSION', '3.39.0-dev' );
40
-require_once __DIR__ . '/modules/common/load.php';
41
-require_once __DIR__ . '/modules/include-exclude/load.php';
39
+define('WORDLIFT_VERSION', '3.39.0-dev');
40
+require_once __DIR__.'/modules/common/load.php';
41
+require_once __DIR__.'/modules/include-exclude/load.php';
42 42
 
43 43
 /**
44 44
  * Filter to disable WLP on any request, defaults to true.
45 45
  *
46 46
  * @since 3.33.6
47 47
  */
48
-if ( ! apply_filters( 'wl_is_enabled', true ) ) {
48
+if ( ! apply_filters('wl_is_enabled', true)) {
49 49
 	return;
50 50
 }
51 51
 
52
-require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
52
+require_once plugin_dir_path(__FILE__).'vendor/autoload.php';
53 53
 
54 54
 /*
55 55
 	 * We introduce the WordLift autoloader, since we start using classes in namespaces, i.e. Wordlift\Http.
@@ -59,15 +59,15 @@  discard block
 block discarded – undo
59 59
 wordlift_plugin_autoload_register();
60 60
 
61 61
 // Include WordLift constants.
62
-require_once plugin_dir_path( __FILE__ ) . 'wordlift-constants.php';
62
+require_once plugin_dir_path(__FILE__).'wordlift-constants.php';
63 63
 
64 64
 // Load modules.
65
-require_once plugin_dir_path( __FILE__ ) . 'modules/core/wordlift-core.php';
65
+require_once plugin_dir_path(__FILE__).'modules/core/wordlift-core.php';
66 66
 
67
-require_once plugin_dir_path( __FILE__ ) . 'deprecations.php';
67
+require_once plugin_dir_path(__FILE__).'deprecations.php';
68 68
 
69 69
 // Load early to enable/disable features.
70
-require_once plugin_dir_path( __FILE__ ) . 'wordlift/features/index.php';
70
+require_once plugin_dir_path(__FILE__).'wordlift/features/index.php';
71 71
 
72 72
 /**
73 73
  * The code that runs during plugin activation.
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
  */
76 76
 function activate_wordlift() {
77 77
 
78
-	$log = Wordlift_Log_Service::get_logger( 'activate_wordlift' );
78
+	$log = Wordlift_Log_Service::get_logger('activate_wordlift');
79 79
 
80
-	$log->info( 'Activating WordLift...' );
80
+	$log->info('Activating WordLift...');
81 81
 
82
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordlift-activator.php';
82
+	require_once plugin_dir_path(__FILE__).'includes/class-wordlift-activator.php';
83 83
 	Wordlift_Activator::activate();
84 84
 
85 85
 	/**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
  */
107 107
 function deactivate_wordlift() {
108 108
 
109
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordlift-deactivator.php';
109
+	require_once plugin_dir_path(__FILE__).'includes/class-wordlift-deactivator.php';
110 110
 	Wordlift_Deactivator::deactivate();
111 111
 	Wordlift_Http_Api::deactivate();
112 112
 	Ttl_Cache_Cleaner::deactivate();
@@ -124,14 +124,14 @@  discard block
 block discarded – undo
124 124
 
125 125
 }
126 126
 
127
-register_activation_hook( __FILE__, 'activate_wordlift' );
128
-register_deactivation_hook( __FILE__, 'deactivate_wordlift' );
127
+register_activation_hook(__FILE__, 'activate_wordlift');
128
+register_deactivation_hook(__FILE__, 'deactivate_wordlift');
129 129
 
130 130
 /**
131 131
  * The core plugin class that is used to define internationalization,
132 132
  * admin-specific hooks, and public-facing site hooks.
133 133
  */
134
-require plugin_dir_path( __FILE__ ) . 'includes/class-wordlift.php';
134
+require plugin_dir_path(__FILE__).'includes/class-wordlift.php';
135 135
 
136 136
 /**
137 137
  * Begins execution of the plugin.
@@ -151,12 +151,12 @@  discard block
 block discarded – undo
151 151
 	 * @return bool
152 152
 	 * @since 3.27.6
153 153
 	 */
154
-	if ( apply_filters( 'wl_feature__enable__widgets', true ) ) {
155
-		add_action( 'widgets_init', 'wl_register_chord_widget' );
156
-		add_action( 'widgets_init', 'wl_register_geo_widget' );
157
-		add_action( 'widgets_init', 'wl_register_timeline_widget' );
154
+	if (apply_filters('wl_feature__enable__widgets', true)) {
155
+		add_action('widgets_init', 'wl_register_chord_widget');
156
+		add_action('widgets_init', 'wl_register_geo_widget');
157
+		add_action('widgets_init', 'wl_register_timeline_widget');
158 158
 	}
159
-	add_filter( 'widget_text', 'do_shortcode' );
159
+	add_filter('widget_text', 'do_shortcode');
160 160
 
161 161
 	/**
162 162
 	 * Filter: wl_feature__enable__analysis
@@ -166,10 +166,10 @@  discard block
 block discarded – undo
166 166
 	 * @return bool
167 167
 	 * @since 3.27.6
168 168
 	 */
169
-	if ( apply_filters( 'wl_feature__enable__analysis', true ) ) {
170
-		add_action( 'wp_ajax_wl_analyze', 'wl_ajax_analyze_action' );
169
+	if (apply_filters('wl_feature__enable__analysis', true)) {
170
+		add_action('wp_ajax_wl_analyze', 'wl_ajax_analyze_action');
171 171
 	} else {
172
-		add_action( 'wp_ajax_wl_analyze', 'wl_ajax_analyze_disabled_action' );
172
+		add_action('wp_ajax_wl_analyze', 'wl_ajax_analyze_disabled_action');
173 173
 	}
174 174
 
175 175
 	$plugin = new Wordlift();
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
 	add_action(
188 188
 		'plugins_loaded',
189
-		function () {
189
+		function() {
190 190
 			// All features from registry should be initialized here.
191 191
 			$features_registry = Features_Registry::get_instance();
192 192
 			$features_registry->initialize_all_features();
@@ -197,27 +197,27 @@  discard block
 block discarded – undo
197 197
 	add_action(
198 198
 		'plugins_loaded',
199 199
 		// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
200
-		function () use ( $plugin ) {
200
+		function() use ($plugin) {
201 201
 
202 202
 			new Wordlift_Products_Navigator_Shortcode_REST();
203 203
 
204 204
 			// Register the Dataset module, requires `$api_service`.
205
-			require_once plugin_dir_path( __FILE__ ) . 'wordlift/dataset/index.php';
206
-			require_once plugin_dir_path( __FILE__ ) . 'wordlift/shipping-data/index.php';
205
+			require_once plugin_dir_path(__FILE__).'wordlift/dataset/index.php';
206
+			require_once plugin_dir_path(__FILE__).'wordlift/shipping-data/index.php';
207 207
 
208 208
 			/*
209 209
 			* Require the Entity annotation cleanup module.
210 210
 			*
211 211
 			* @since 3.34.6
212 212
 			*/
213
-			require_once plugin_dir_path( __FILE__ ) . 'wordlift/cleanup/index.php';
213
+			require_once plugin_dir_path(__FILE__).'wordlift/cleanup/index.php';
214 214
 
215 215
 			/*
216 216
 			* Import LOD entities.
217 217
 			*
218 218
 			* @since 3.35.0
219 219
 			*/
220
-			require_once plugin_dir_path( __FILE__ ) . 'wordlift/lod-import/index.php';
220
+			require_once plugin_dir_path(__FILE__).'wordlift/lod-import/index.php';
221 221
 
222 222
 		}
223 223
 	);
@@ -235,23 +235,23 @@  discard block
 block discarded – undo
235 235
 function wordlift_plugin_autoload_register() {
236 236
 
237 237
 	spl_autoload_register(
238
-		function ( $class_name ) {
238
+		function($class_name) {
239 239
 
240 240
 			// Bail out if these are not our classes.
241
-			if ( 0 !== strpos( $class_name, 'Wordlift\\' ) ) {
241
+			if (0 !== strpos($class_name, 'Wordlift\\')) {
242 242
 				return false;
243 243
 			}
244 244
 
245
-			$class_name_lc = strtolower( str_replace( '_', '-', $class_name ) );
245
+			$class_name_lc = strtolower(str_replace('_', '-', $class_name));
246 246
 
247
-			preg_match( '|^(?:(.*)\\\\)?(.+?)$|', $class_name_lc, $matches );
247
+			preg_match('|^(?:(.*)\\\\)?(.+?)$|', $class_name_lc, $matches);
248 248
 
249
-			$path = str_replace( '\\', DIRECTORY_SEPARATOR, $matches[1] );
250
-			$file = 'class-' . $matches[2] . '.php';
249
+			$path = str_replace('\\', DIRECTORY_SEPARATOR, $matches[1]);
250
+			$file = 'class-'.$matches[2].'.php';
251 251
 
252
-			$full_path = plugin_dir_path( __FILE__ ) . $path . DIRECTORY_SEPARATOR . $file;
252
+			$full_path = plugin_dir_path(__FILE__).$path.DIRECTORY_SEPARATOR.$file;
253 253
 
254
-			if ( ! file_exists( $full_path ) ) {
254
+			if ( ! file_exists($full_path)) {
255 255
 				return false;
256 256
 			}
257 257
 
@@ -263,13 +263,13 @@  discard block
 block discarded – undo
263 263
 
264 264
 }
265 265
 
266
-function wl_block_categories( $categories ) {
266
+function wl_block_categories($categories) {
267 267
 	return array_merge(
268 268
 		$categories,
269 269
 		array(
270 270
 			array(
271 271
 				'slug'  => 'wordlift',
272
-				'title' => __( 'WordLift', 'wordlift' ),
272
+				'title' => __('WordLift', 'wordlift'),
273 273
 			),
274 274
 		)
275 275
 	);
@@ -279,22 +279,22 @@  discard block
 block discarded – undo
279 279
  * This function is created temporarily to handle the legacy library,
280 280
  * this has to be removed when removing the legacy fields from the ui.
281 281
  */
282
-function wl_enqueue_leaflet( $in_footer = false ) {
282
+function wl_enqueue_leaflet($in_footer = false) {
283 283
 	// Leaflet.
284
-	wp_enqueue_style( 'wl-leaflet', plugin_dir_url( __FILE__ ) . 'js/leaflet/leaflet.css', array(), '1.6.0' );
285
-	wp_enqueue_script( 'wl-leaflet', plugin_dir_url( __FILE__ ) . 'js/leaflet/leaflet.js', array(), '1.6.0', $in_footer );
284
+	wp_enqueue_style('wl-leaflet', plugin_dir_url(__FILE__).'js/leaflet/leaflet.css', array(), '1.6.0');
285
+	wp_enqueue_script('wl-leaflet', plugin_dir_url(__FILE__).'js/leaflet/leaflet.js', array(), '1.6.0', $in_footer);
286 286
 }
287 287
 
288
-add_filter( 'block_categories', 'wl_block_categories', 10 );
288
+add_filter('block_categories', 'wl_block_categories', 10);
289 289
 
290 290
 // Temporary fix for a typo in WooCommerce Extension.
291 291
 add_filter(
292 292
 	'wl_feature__enable__dataset',
293
-	function ( $value ) {
294
-		return apply_filters( 'wl_features__enable__dataset', $value );
293
+	function($value) {
294
+		return apply_filters('wl_features__enable__dataset', $value);
295 295
 	}
296 296
 );
297 297
 
298
-require_once __DIR__ . '/modules/food-kg/load.php';
299
-require_once __DIR__ . '/modules/acf4so/load.php';
300
-require_once __DIR__ . '/modules/pods/load.php';
298
+require_once __DIR__.'/modules/food-kg/load.php';
299
+require_once __DIR__.'/modules/acf4so/load.php';
300
+require_once __DIR__.'/modules/pods/load.php';
Please login to merge, or discard this patch.
src/modules/include-exclude/vendor/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = dirname($vendorDir);
7 7
 
8 8
 return array(
9
-    'Wordlift\\Modules\\Include_Exclude\\' => array($baseDir . '/includes'),
9
+    'Wordlift\\Modules\\Include_Exclude\\' => array($baseDir.'/includes'),
10 10
 );
Please login to merge, or discard this patch.
src/modules/include-exclude/vendor/composer/ClassLoader.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function getPrefixes()
115 115
     {
116
-        if (!empty($this->prefixesPsr0)) {
116
+        if ( ! empty($this->prefixesPsr0)) {
117 117
             return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
118 118
         }
119 119
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function add($prefix, $paths, $prepend = false)
185 185
     {
186
-        if (!$prefix) {
186
+        if ( ! $prefix) {
187 187
             if ($prepend) {
188 188
                 $this->fallbackDirsPsr0 = array_merge(
189 189
                     (array) $paths,
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         }
201 201
 
202 202
         $first = $prefix[0];
203
-        if (!isset($this->prefixesPsr0[$first][$prefix])) {
203
+        if ( ! isset($this->prefixesPsr0[$first][$prefix])) {
204 204
             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
205 205
 
206 206
             return;
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     public function addPsr4($prefix, $paths, $prepend = false)
234 234
     {
235
-        if (!$prefix) {
235
+        if ( ! $prefix) {
236 236
             // Register directories for the root namespace.
237 237
             if ($prepend) {
238 238
                 $this->fallbackDirsPsr4 = array_merge(
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
                     (array) $paths
246 246
                 );
247 247
             }
248
-        } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
248
+        } elseif ( ! isset($this->prefixDirsPsr4[$prefix])) {
249 249
             // Register directories for a new namespace.
250 250
             $length = strlen($prefix);
251 251
             if ('\\' !== $prefix[$length - 1]) {
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
      */
280 280
     public function set($prefix, $paths)
281 281
     {
282
-        if (!$prefix) {
282
+        if ( ! $prefix) {
283 283
             $this->fallbackDirsPsr0 = (array) $paths;
284 284
         } else {
285 285
             $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function setPsr4($prefix, $paths)
301 301
     {
302
-        if (!$prefix) {
302
+        if ( ! $prefix) {
303 303
             $this->fallbackDirsPsr4 = (array) $paths;
304 304
         } else {
305 305
             $length = strlen($prefix);
@@ -493,18 +493,18 @@  discard block
 block discarded – undo
493 493
     private function findFileWithExtension($class, $ext)
494 494
     {
495 495
         // PSR-4 lookup
496
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
496
+        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext;
497 497
 
498 498
         $first = $class[0];
499 499
         if (isset($this->prefixLengthsPsr4[$first])) {
500 500
             $subPath = $class;
501 501
             while (false !== $lastPos = strrpos($subPath, '\\')) {
502 502
                 $subPath = substr($subPath, 0, $lastPos);
503
-                $search = $subPath . '\\';
503
+                $search = $subPath.'\\';
504 504
                 if (isset($this->prefixDirsPsr4[$search])) {
505
-                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
505
+                    $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1);
506 506
                     foreach ($this->prefixDirsPsr4[$search] as $dir) {
507
-                        if (file_exists($file = $dir . $pathEnd)) {
507
+                        if (file_exists($file = $dir.$pathEnd)) {
508 508
                             return $file;
509 509
                         }
510 510
                     }
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
 
515 515
         // PSR-4 fallback dirs
516 516
         foreach ($this->fallbackDirsPsr4 as $dir) {
517
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
517
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) {
518 518
                 return $file;
519 519
             }
520 520
         }
@@ -526,14 +526,14 @@  discard block
 block discarded – undo
526 526
                 . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
527 527
         } else {
528 528
             // PEAR-like class name
529
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
529
+            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext;
530 530
         }
531 531
 
532 532
         if (isset($this->prefixesPsr0[$first])) {
533 533
             foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
534 534
                 if (0 === strpos($class, $prefix)) {
535 535
                     foreach ($dirs as $dir) {
536
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
536
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
537 537
                             return $file;
538 538
                         }
539 539
                     }
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 
544 544
         // PSR-0 fallback dirs
545 545
         foreach ($this->fallbackDirsPsr0 as $dir) {
546
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
546
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
547 547
                 return $file;
548 548
             }
549 549
         }
Please login to merge, or discard this patch.
src/modules/include-exclude/vendor/composer/platform_check.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,23 +4,23 @@
 block discarded – undo
4 4
 
5 5
 $issues = array();
6 6
 
7
-if (!(PHP_VERSION_ID >= 50600)) {
8
-    $issues[] = 'Your Composer dependencies require a PHP version ">= 5.6.0". You are running ' . PHP_VERSION . '.';
7
+if ( ! (PHP_VERSION_ID >= 50600)) {
8
+    $issues[] = 'Your Composer dependencies require a PHP version ">= 5.6.0". You are running '.PHP_VERSION.'.';
9 9
 }
10 10
 
11 11
 if ($issues) {
12
-    if (!headers_sent()) {
12
+    if ( ! headers_sent()) {
13 13
         header('HTTP/1.1 500 Internal Server Error');
14 14
     }
15
-    if (!ini_get('display_errors')) {
15
+    if ( ! ini_get('display_errors')) {
16 16
         if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
17
-            fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
18
-        } elseif (!headers_sent()) {
19
-            echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
17
+            fwrite(STDERR, 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.implode(PHP_EOL, $issues).PHP_EOL.PHP_EOL);
18
+        } elseif ( ! headers_sent()) {
19
+            echo 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)).PHP_EOL.PHP_EOL;
20 20
         }
21 21
     }
22 22
     trigger_error(
23
-        'Composer detected issues in your platform: ' . implode(' ', $issues),
23
+        'Composer detected issues in your platform: '.implode(' ', $issues),
24 24
         E_USER_ERROR
25 25
     );
26 26
 }
Please login to merge, or discard this patch.
src/modules/include-exclude/vendor/composer/autoload_classmap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = dirname($vendorDir);
7 7
 
8 8
 return array(
9
-    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
9
+    'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php',
10 10
 );
Please login to merge, or discard this patch.
src/modules/include-exclude/vendor/composer/InstalledVersions.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     public static function getVersionRanges($packageName)
138 138
     {
139 139
         foreach (self::getInstalled() as $installed) {
140
-            if (!isset($installed['versions'][$packageName])) {
140
+            if ( ! isset($installed['versions'][$packageName])) {
141 141
                 continue;
142 142
             }
143 143
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             return implode(' || ', $ranges);
159 159
         }
160 160
 
161
-        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
161
+        throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
162 162
     }
163 163
 
164 164
     /**
@@ -168,18 +168,18 @@  discard block
 block discarded – undo
168 168
     public static function getVersion($packageName)
169 169
     {
170 170
         foreach (self::getInstalled() as $installed) {
171
-            if (!isset($installed['versions'][$packageName])) {
171
+            if ( ! isset($installed['versions'][$packageName])) {
172 172
                 continue;
173 173
             }
174 174
 
175
-            if (!isset($installed['versions'][$packageName]['version'])) {
175
+            if ( ! isset($installed['versions'][$packageName]['version'])) {
176 176
                 return null;
177 177
             }
178 178
 
179 179
             return $installed['versions'][$packageName]['version'];
180 180
         }
181 181
 
182
-        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
182
+        throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
183 183
     }
184 184
 
185 185
     /**
@@ -189,18 +189,18 @@  discard block
 block discarded – undo
189 189
     public static function getPrettyVersion($packageName)
190 190
     {
191 191
         foreach (self::getInstalled() as $installed) {
192
-            if (!isset($installed['versions'][$packageName])) {
192
+            if ( ! isset($installed['versions'][$packageName])) {
193 193
                 continue;
194 194
             }
195 195
 
196
-            if (!isset($installed['versions'][$packageName]['pretty_version'])) {
196
+            if ( ! isset($installed['versions'][$packageName]['pretty_version'])) {
197 197
                 return null;
198 198
             }
199 199
 
200 200
             return $installed['versions'][$packageName]['pretty_version'];
201 201
         }
202 202
 
203
-        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
203
+        throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
204 204
     }
205 205
 
206 206
     /**
@@ -210,18 +210,18 @@  discard block
 block discarded – undo
210 210
     public static function getReference($packageName)
211 211
     {
212 212
         foreach (self::getInstalled() as $installed) {
213
-            if (!isset($installed['versions'][$packageName])) {
213
+            if ( ! isset($installed['versions'][$packageName])) {
214 214
                 continue;
215 215
             }
216 216
 
217
-            if (!isset($installed['versions'][$packageName]['reference'])) {
217
+            if ( ! isset($installed['versions'][$packageName]['reference'])) {
218 218
                 return null;
219 219
             }
220 220
 
221 221
             return $installed['versions'][$packageName]['reference'];
222 222
         }
223 223
 
224
-        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
224
+        throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
225 225
     }
226 226
 
227 227
     /**
@@ -231,14 +231,14 @@  discard block
 block discarded – undo
231 231
     public static function getInstallPath($packageName)
232 232
     {
233 233
         foreach (self::getInstalled() as $installed) {
234
-            if (!isset($installed['versions'][$packageName])) {
234
+            if ( ! isset($installed['versions'][$packageName])) {
235 235
                 continue;
236 236
             }
237 237
 
238 238
             return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
239 239
         }
240 240
 
241
-        throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
241
+        throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
242 242
     }
243 243
 
244 244
     /**
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
             // only require the installed.php file if this file is loaded from its dumped location,
268 268
             // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
269 269
             if (substr(__DIR__, -8, 1) !== 'C') {
270
-                self::$installed = include __DIR__ . '/installed.php';
270
+                self::$installed = include __DIR__.'/installed.php';
271 271
             } else {
272 272
                 self::$installed = array();
273 273
             }
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
             // only require the installed.php file if this file is loaded from its dumped location,
341 341
             // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
342 342
             if (substr(__DIR__, -8, 1) !== 'C') {
343
-                self::$installed = require __DIR__ . '/installed.php';
343
+                self::$installed = require __DIR__.'/installed.php';
344 344
             } else {
345 345
                 self::$installed = array();
346 346
             }
Please login to merge, or discard this patch.