Completed
Pull Request — develop (#1602)
by David
01:08
created
src/modules/food-kg/includes/vendor/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,6 +7,6 @@
 block discarded – undo
7 7
     exit(1);
8 8
 }
9 9
 
10
-require_once __DIR__ . '/composer/autoload_real.php';
10
+require_once __DIR__.'/composer/autoload_real.php';
11 11
 
12 12
 return ComposerAutoloaderInitbaaf547b24d2757395578581da934187::getLoader();
Please login to merge, or discard this patch.
src/modules/food-kg/includes/Ingredients_Taxonomy_Recipe_Lift_Strategy.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -14,32 +14,32 @@  discard block
 block discarded – undo
14 14
 	 */
15 15
 	private $notices;
16 16
 
17
-	public function __construct( Ingredients_Client $ingredients_client, Notices $notices ) {
17
+	public function __construct(Ingredients_Client $ingredients_client, Notices $notices) {
18 18
 		$this->ingredients_client = $ingredients_client;
19 19
 		$this->notices            = $notices;
20 20
 	}
21 21
 
22 22
 	public function run() {
23
-		$this->notices->queue( 'info', __( 'WordLift detected WP Recipe Maker and, it is lifting the ingredients...', 'wordlift' ) );
23
+		$this->notices->queue('info', __('WordLift detected WP Recipe Maker and, it is lifting the ingredients...', 'wordlift'));
24 24
 
25 25
 		/**
26 26
 		 * @var string[] $terms
27 27
 		 */
28
-		$terms       = get_terms(
28
+		$terms = get_terms(
29 29
 			array(
30 30
 				'taxonomy'   => 'wprm_ingredient',
31 31
 				'fields'     => 'names',
32 32
 				'hide_empty' => false,
33 33
 			)
34 34
 		);
35
-		$ingredients = $this->ingredients_client->ingredients( $terms );
35
+		$ingredients = $this->ingredients_client->ingredients($terms);
36 36
 
37
-		foreach ( $ingredients as $key => $value ) {
38
-			$term = get_term_by( 'name', $key, 'wprm_ingredient' );
39
-			if ( ! isset( $term ) ) {
37
+		foreach ($ingredients as $key => $value) {
38
+			$term = get_term_by('name', $key, 'wprm_ingredient');
39
+			if ( ! isset($term)) {
40 40
 				continue;
41 41
 			}
42
-			update_term_meta( $term->term_id, '_wl_jsonld', wp_slash( $value ) );
42
+			update_term_meta($term->term_id, '_wl_jsonld', wp_slash($value));
43 43
 
44 44
 			/**
45 45
 			 * @@todo update notification with progress
@@ -47,15 +47,15 @@  discard block
 block discarded – undo
47 47
 		}
48 48
 
49 49
 		// Clean up caches.
50
-		do_action( 'wl_ttl_cache_cleaner__flush' );
50
+		do_action('wl_ttl_cache_cleaner__flush');
51 51
 
52 52
 		/**
53 53
 		 * @@todo add notification that procedure is complete, with information about the number of processed items vs
54 54
 		 *   total items
55 55
 		 */
56
-		$count_terms        = count( $terms );
57
-		$count_lifted_terms = count( $ingredients );
56
+		$count_terms        = count($terms);
57
+		$count_lifted_terms = count($ingredients);
58 58
 		/* translators: 1: The number of lifted ingredients, 2: The total number of ingredients. */
59
-		$this->notices->queue( 'info', sprintf( __( 'WordLift detected WP Recipe Maker and, it lifted %1$d of %2$d ingredient(s).', 'wordlift' ), $count_lifted_terms, $count_terms ) );
59
+		$this->notices->queue('info', sprintf(__('WordLift detected WP Recipe Maker and, it lifted %1$d of %2$d ingredient(s).', 'wordlift'), $count_lifted_terms, $count_terms));
60 60
 	}
61 61
 }
Please login to merge, or discard this patch.
src/modules/food-kg/includes/admin/Ingredients_Full_Page_Delegate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 class Ingredients_Full_Page_Delegate implements Page_Delegate {
6 6
 
7 7
 	public function render() {
8
-		include WL_FOOD_KG_DIR_PATH . '/includes/admin/partials/ingredients.php';
8
+		include WL_FOOD_KG_DIR_PATH.'/includes/admin/partials/ingredients.php';
9 9
 	}
10 10
 
11 11
 	public function admin_enqueue_scripts() {
Please login to merge, or discard this patch.
src/modules/food-kg/includes/admin/Ingredients_List_Table.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace Wordlift\Modules\Food_Kg\Admin;
4 4
 
5
-if ( ! class_exists( 'WP_List_Table' ) ) {
6
-	require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
5
+if ( ! class_exists('WP_List_Table')) {
6
+	require_once ABSPATH.'wp-admin/includes/class-wp-list-table.php';
7 7
 }
8 8
 
9 9
 use WP_List_Table;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 		 * 3 other arrays. One for all columns, one for hidden columns, and one
31 31
 		 * for sortable columns.
32 32
 		 */
33
-		$this->_column_headers = array( $columns, $hidden, $sortable );
33
+		$this->_column_headers = array($columns, $hidden, $sortable);
34 34
 
35 35
 		$this->items = $wpdb->get_results(
36 36
 			$wpdb->prepare(
@@ -48,36 +48,36 @@  discard block
 block discarded – undo
48 48
 	}
49 49
 
50 50
 	public function no_items() {
51
-		esc_html_e( 'No ingredients found.', 'wordlift' );
51
+		esc_html_e('No ingredients found.', 'wordlift');
52 52
 	}
53 53
 
54 54
 	public function get_columns() {
55 55
 		return array(
56
-			'id'      => __( 'ID', 'wordlift' ),
57
-			'name'    => __( 'Name', 'wordlift' ),
56
+			'id'      => __('ID', 'wordlift'),
57
+			'name'    => __('Name', 'wordlift'),
58 58
 			'actions' => '',
59 59
 		);
60 60
 	}
61 61
 
62
-	public function column_id( $item ) {
62
+	public function column_id($item) {
63 63
 		return $item->term_id;
64 64
 	}
65 65
 
66
-	public function column_name( $item ) {
66
+	public function column_name($item) {
67 67
 		return $item->name;
68 68
 	}
69 69
 
70
-	public function column_actions( $item ) {
70
+	public function column_actions($item) {
71 71
 
72 72
 		$url = admin_url(
73
-			sprintf( 'admin.php?page=wl_ingredients&modal_window=true&term_id=%d&TB_iframe=true', $item->term_id )
73
+			sprintf('admin.php?page=wl_ingredients&modal_window=true&term_id=%d&TB_iframe=true', $item->term_id)
74 74
 		);
75 75
 
76 76
 		return sprintf(
77 77
 			'<a href="%s" class="button alignright thickbox open-plugin-details-modal" data-title="%s" type="button">%s</a>',
78 78
 			$url,
79
-			esc_attr( $item->name ),
80
-			esc_html__( 'JSON-LD', 'wordlift' )
79
+			esc_attr($item->name),
80
+			esc_html__('JSON-LD', 'wordlift')
81 81
 		);
82 82
 	}
83 83
 
Please login to merge, or discard this patch.
src/modules/food-kg/includes/admin/Page.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -16,18 +16,18 @@  discard block
 block discarded – undo
16 16
 	 * @param Page_Delegate $full_page_delegate
17 17
 	 * @param Page_Delegate $modal_page_delegate
18 18
 	 */
19
-	public function __construct( $full_page_delegate, $modal_page_delegate, $menu_slug, $page_title, $menu_title ) {
20
-		$this->delegate   = isset( $_GET['modal_window'] ) ? $modal_page_delegate : $full_page_delegate; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
19
+	public function __construct($full_page_delegate, $modal_page_delegate, $menu_slug, $page_title, $menu_title) {
20
+		$this->delegate   = isset($_GET['modal_window']) ? $modal_page_delegate : $full_page_delegate; //phpcs:ignore WordPress.Security.NonceVerification.Recommended
21 21
 		$this->menu_slug  = $menu_slug;
22 22
 		$this->page_title = $page_title;
23 23
 		$this->menu_title = $menu_title;
24 24
 	}
25 25
 
26 26
 	public function register_hooks() {
27
-		add_action( 'admin_menu', array( $this, 'admin_menu' ) );
28
-		add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
29
-		if ( isset( $_GET['modal_window'] ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
30
-			add_action( 'in_admin_header', array( $this, 'remove_notices' ), 99 );
27
+		add_action('admin_menu', array($this, 'admin_menu'));
28
+		add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
29
+		if (isset($_GET['modal_window'])) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
30
+			add_action('in_admin_header', array($this, 'remove_notices'), 99);
31 31
 		}
32 32
 	}
33 33
 
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
 	 * Remove notices from ingredients modal.
36 36
 	 */
37 37
 	public function remove_notices() {
38
-		remove_all_actions( 'admin_notices' );
39
-		remove_all_actions( 'all_admin_notices' );
38
+		remove_all_actions('admin_notices');
39
+		remove_all_actions('all_admin_notices');
40 40
 	}
41 41
 
42 42
 	public function admin_menu() {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 			$this->menu_title,
47 47
 			'manage_options',
48 48
 			$this->menu_slug,
49
-			array( $this, 'render' )
49
+			array($this, 'render')
50 50
 		);
51 51
 	}
52 52
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
 	public function admin_enqueue_scripts() {
58 58
 		// Check that we are on the right screen
59
-		if ( get_current_screen()->id === 'wordlift_page_wl_ingredients' ) {
59
+		if (get_current_screen()->id === 'wordlift_page_wl_ingredients') {
60 60
 			$this->delegate->admin_enqueue_scripts();
61 61
 		}
62 62
 	}
Please login to merge, or discard this patch.
src/modules/food-kg/includes/Jsonld.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 class Jsonld {
9 9
 
10 10
 	public function register_hooks() {
11
-		add_action( 'wprm_recipe_metadata', array( $this, '__recipe_metadata' ), 10, 2 );
11
+		add_action('wprm_recipe_metadata', array($this, '__recipe_metadata'), 10, 2);
12 12
 	}
13 13
 
14 14
 	/**
@@ -17,19 +17,19 @@  discard block
 block discarded – undo
17 17
 	 *
18 18
 	 * @return array
19 19
 	 */
20
-	public function __recipe_metadata( $metadata, $recipe ) {
20
+	public function __recipe_metadata($metadata, $recipe) {
21 21
 
22
-		$ingredients = get_the_terms( $recipe->id(), 'wprm_ingredient' );
23
-		$jsonlds     = array_filter( array_map( array( $this, '__term_id_to_jsonld' ), $ingredients ) );
22
+		$ingredients = get_the_terms($recipe->id(), 'wprm_ingredient');
23
+		$jsonlds     = array_filter(array_map(array($this, '__term_id_to_jsonld'), $ingredients));
24 24
 
25
-		if ( empty( $jsonlds ) ) {
25
+		if (empty($jsonlds)) {
26 26
 			return $metadata;
27 27
 		}
28 28
 
29 29
 		// We're embedding the full json-ld here because WL doesn't output its own markup, so it makes no sense
30 30
 		// to hook to wl_after_json_ld.
31
-		$metadata['mentions'] = isset( $metadata['mentions'] ) ? $metadata['mentions'] : array();
32
-		$metadata['mentions'] = array_merge( $metadata['mentions'], $jsonlds );
31
+		$metadata['mentions'] = isset($metadata['mentions']) ? $metadata['mentions'] : array();
32
+		$metadata['mentions'] = array_merge($metadata['mentions'], $jsonlds);
33 33
 
34 34
 		return $metadata;
35 35
 	}
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 	 *
40 40
 	 * @return array void
41 41
 	 */
42
-	private function __term_id_to_jsonld( $ingredient ) {
43
-		return json_decode( get_term_meta( $ingredient->term_id, '_wl_jsonld', true ), true );
42
+	private function __term_id_to_jsonld($ingredient) {
43
+		return json_decode(get_term_meta($ingredient->term_id, '_wl_jsonld', true), true);
44 44
 	}
45 45
 
46 46
 }
Please login to merge, or discard this patch.
src/modules/food-kg/includes/vendor/composer/autoload_static.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -6,38 +6,38 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitbaaf547b24d2757395578581da934187
8 8
 {
9
-    public static $classMap = array (
10
-        'ComposerAutoloaderInitbaaf547b24d2757395578581da934187' => __DIR__ . '/..' . '/composer/autoload_real.php',
11
-        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
12
-        'Wordlift\\Modules\\Food_Kg\\Admin\\Download_Ingredients_Data' => __DIR__ . '/../..' . '/admin/Download_Ingredients_Data.php',
13
-        'Wordlift\\Modules\\Food_Kg\\Admin\\Full_Page_Delegate' => __DIR__ . '/../..' . '/admin/Full_Page_Delegate.php',
14
-        'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_Full_Page_Delegate' => __DIR__ . '/../..' . '/admin/Ingredients_Full_Page_Delegate.php',
15
-        'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_List_Table' => __DIR__ . '/../..' . '/admin/Ingredients_List_Table.php',
16
-        'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_Modal_Page_Delegate' => __DIR__ . '/../..' . '/admin/Ingredients_Modal_Page_Delegate.php',
17
-        'Wordlift\\Modules\\Food_Kg\\Admin\\Main_Ingredient_List_Table' => __DIR__ . '/../..' . '/admin/Main_Ingredient_List_Table.php',
18
-        'Wordlift\\Modules\\Food_Kg\\Admin\\Main_Ingredient_Modal_Page_Delegate' => __DIR__ . '/../..' . '/admin/Main_Ingredient_Modal_Page_Delegate.php',
19
-        'Wordlift\\Modules\\Food_Kg\\Admin\\Meta_Box' => __DIR__ . '/../..' . '/admin/Meta_Box.php',
20
-        'Wordlift\\Modules\\Food_Kg\\Admin\\Page' => __DIR__ . '/../..' . '/admin/Page.php',
21
-        'Wordlift\\Modules\\Food_Kg\\Admin\\Page_Delegate' => __DIR__ . '/../..' . '/admin/Page_Delegate.php',
22
-        'Wordlift\\Modules\\Food_Kg\\Ingredients' => __DIR__ . '/../..' . '/Ingredients.php',
23
-        'Wordlift\\Modules\\Food_Kg\\Ingredients_API' => __DIR__ . '/../..' . '/Ingredients_API.php',
24
-        'Wordlift\\Modules\\Food_Kg\\Ingredients_Client' => __DIR__ . '/../..' . '/Ingredients_Client.php',
25
-        'Wordlift\\Modules\\Food_Kg\\Ingredients_Taxonomy_Recipe_Lift_Strategy' => __DIR__ . '/../..' . '/Ingredients_Taxonomy_Recipe_Lift_Strategy.php',
26
-        'Wordlift\\Modules\\Food_Kg\\Jsonld' => __DIR__ . '/../..' . '/Jsonld.php',
27
-        'Wordlift\\Modules\\Food_Kg\\Main_Ingredient_Jsonld' => __DIR__ . '/../..' . '/Main_Ingredient_Jsonld.php',
28
-        'Wordlift\\Modules\\Food_Kg\\Main_Ingredient_Recipe_Lift_Strategy' => __DIR__ . '/../..' . '/Main_Ingredient_Recipe_Lift_Strategy.php',
29
-        'Wordlift\\Modules\\Food_Kg\\Module' => __DIR__ . '/../..' . '/Module.php',
30
-        'Wordlift\\Modules\\Food_Kg\\Notices' => __DIR__ . '/../..' . '/Notices.php',
31
-        'Wordlift\\Modules\\Food_Kg\\Preconditions' => __DIR__ . '/../..' . '/Preconditions.php',
32
-        'Wordlift\\Modules\\Food_Kg\\Recipe_Lift_Strategy' => __DIR__ . '/../..' . '/Recipe_Lift_Strategy.php',
33
-        'Wordlift\\Modules\\Food_Kg\\Services\\Ingredients' => __DIR__ . '/../..' . '/services/Ingredients.php',
34
-        'Wordlift_Modules_Food_Kg_Composer\\Autoload\\ClassLoader' => __DIR__ . '/..' . '/composer/ClassLoader.php',
35
-        'Wordlift_Modules_Food_Kg_Composer\\Autoload\\ComposerStaticInitbaaf547b24d2757395578581da934187' => __DIR__ . '/..' . '/composer/autoload_static.php',
9
+    public static $classMap = array(
10
+        'ComposerAutoloaderInitbaaf547b24d2757395578581da934187' => __DIR__.'/..'.'/composer/autoload_real.php',
11
+        'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php',
12
+        'Wordlift\\Modules\\Food_Kg\\Admin\\Download_Ingredients_Data' => __DIR__.'/../..'.'/admin/Download_Ingredients_Data.php',
13
+        'Wordlift\\Modules\\Food_Kg\\Admin\\Full_Page_Delegate' => __DIR__.'/../..'.'/admin/Full_Page_Delegate.php',
14
+        'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_Full_Page_Delegate' => __DIR__.'/../..'.'/admin/Ingredients_Full_Page_Delegate.php',
15
+        'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_List_Table' => __DIR__.'/../..'.'/admin/Ingredients_List_Table.php',
16
+        'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_Modal_Page_Delegate' => __DIR__.'/../..'.'/admin/Ingredients_Modal_Page_Delegate.php',
17
+        'Wordlift\\Modules\\Food_Kg\\Admin\\Main_Ingredient_List_Table' => __DIR__.'/../..'.'/admin/Main_Ingredient_List_Table.php',
18
+        'Wordlift\\Modules\\Food_Kg\\Admin\\Main_Ingredient_Modal_Page_Delegate' => __DIR__.'/../..'.'/admin/Main_Ingredient_Modal_Page_Delegate.php',
19
+        'Wordlift\\Modules\\Food_Kg\\Admin\\Meta_Box' => __DIR__.'/../..'.'/admin/Meta_Box.php',
20
+        'Wordlift\\Modules\\Food_Kg\\Admin\\Page' => __DIR__.'/../..'.'/admin/Page.php',
21
+        'Wordlift\\Modules\\Food_Kg\\Admin\\Page_Delegate' => __DIR__.'/../..'.'/admin/Page_Delegate.php',
22
+        'Wordlift\\Modules\\Food_Kg\\Ingredients' => __DIR__.'/../..'.'/Ingredients.php',
23
+        'Wordlift\\Modules\\Food_Kg\\Ingredients_API' => __DIR__.'/../..'.'/Ingredients_API.php',
24
+        'Wordlift\\Modules\\Food_Kg\\Ingredients_Client' => __DIR__.'/../..'.'/Ingredients_Client.php',
25
+        'Wordlift\\Modules\\Food_Kg\\Ingredients_Taxonomy_Recipe_Lift_Strategy' => __DIR__.'/../..'.'/Ingredients_Taxonomy_Recipe_Lift_Strategy.php',
26
+        'Wordlift\\Modules\\Food_Kg\\Jsonld' => __DIR__.'/../..'.'/Jsonld.php',
27
+        'Wordlift\\Modules\\Food_Kg\\Main_Ingredient_Jsonld' => __DIR__.'/../..'.'/Main_Ingredient_Jsonld.php',
28
+        'Wordlift\\Modules\\Food_Kg\\Main_Ingredient_Recipe_Lift_Strategy' => __DIR__.'/../..'.'/Main_Ingredient_Recipe_Lift_Strategy.php',
29
+        'Wordlift\\Modules\\Food_Kg\\Module' => __DIR__.'/../..'.'/Module.php',
30
+        'Wordlift\\Modules\\Food_Kg\\Notices' => __DIR__.'/../..'.'/Notices.php',
31
+        'Wordlift\\Modules\\Food_Kg\\Preconditions' => __DIR__.'/../..'.'/Preconditions.php',
32
+        'Wordlift\\Modules\\Food_Kg\\Recipe_Lift_Strategy' => __DIR__.'/../..'.'/Recipe_Lift_Strategy.php',
33
+        'Wordlift\\Modules\\Food_Kg\\Services\\Ingredients' => __DIR__.'/../..'.'/services/Ingredients.php',
34
+        'Wordlift_Modules_Food_Kg_Composer\\Autoload\\ClassLoader' => __DIR__.'/..'.'/composer/ClassLoader.php',
35
+        'Wordlift_Modules_Food_Kg_Composer\\Autoload\\ComposerStaticInitbaaf547b24d2757395578581da934187' => __DIR__.'/..'.'/composer/autoload_static.php',
36 36
     );
37 37
 
38 38
     public static function getInitializer(ClassLoader $loader)
39 39
     {
40
-        return \Closure::bind(function () use ($loader) {
40
+        return \Closure::bind(function() use ($loader) {
41 41
             $loader->classMap = ComposerStaticInitbaaf547b24d2757395578581da934187::$classMap;
42 42
 
43 43
         }, null, ClassLoader::class);
Please login to merge, or discard this patch.
src/modules/food-kg/includes/vendor/composer/autoload_classmap.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -6,30 +6,30 @@
 block discarded – undo
6 6
 $baseDir = dirname($vendorDir);
7 7
 
8 8
 return array(
9
-    'ComposerAutoloaderInitbaaf547b24d2757395578581da934187' => $vendorDir . '/composer/autoload_real.php',
10
-    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
11
-    'Wordlift\\Modules\\Food_Kg\\Admin\\Download_Ingredients_Data' => $baseDir . '/admin/Download_Ingredients_Data.php',
12
-    'Wordlift\\Modules\\Food_Kg\\Admin\\Full_Page_Delegate' => $baseDir . '/admin/Full_Page_Delegate.php',
13
-    'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_Full_Page_Delegate' => $baseDir . '/admin/Ingredients_Full_Page_Delegate.php',
14
-    'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_List_Table' => $baseDir . '/admin/Ingredients_List_Table.php',
15
-    'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_Modal_Page_Delegate' => $baseDir . '/admin/Ingredients_Modal_Page_Delegate.php',
16
-    'Wordlift\\Modules\\Food_Kg\\Admin\\Main_Ingredient_List_Table' => $baseDir . '/admin/Main_Ingredient_List_Table.php',
17
-    'Wordlift\\Modules\\Food_Kg\\Admin\\Main_Ingredient_Modal_Page_Delegate' => $baseDir . '/admin/Main_Ingredient_Modal_Page_Delegate.php',
18
-    'Wordlift\\Modules\\Food_Kg\\Admin\\Meta_Box' => $baseDir . '/admin/Meta_Box.php',
19
-    'Wordlift\\Modules\\Food_Kg\\Admin\\Page' => $baseDir . '/admin/Page.php',
20
-    'Wordlift\\Modules\\Food_Kg\\Admin\\Page_Delegate' => $baseDir . '/admin/Page_Delegate.php',
21
-    'Wordlift\\Modules\\Food_Kg\\Ingredients' => $baseDir . '/Ingredients.php',
22
-    'Wordlift\\Modules\\Food_Kg\\Ingredients_API' => $baseDir . '/Ingredients_API.php',
23
-    'Wordlift\\Modules\\Food_Kg\\Ingredients_Client' => $baseDir . '/Ingredients_Client.php',
24
-    'Wordlift\\Modules\\Food_Kg\\Ingredients_Taxonomy_Recipe_Lift_Strategy' => $baseDir . '/Ingredients_Taxonomy_Recipe_Lift_Strategy.php',
25
-    'Wordlift\\Modules\\Food_Kg\\Jsonld' => $baseDir . '/Jsonld.php',
26
-    'Wordlift\\Modules\\Food_Kg\\Main_Ingredient_Jsonld' => $baseDir . '/Main_Ingredient_Jsonld.php',
27
-    'Wordlift\\Modules\\Food_Kg\\Main_Ingredient_Recipe_Lift_Strategy' => $baseDir . '/Main_Ingredient_Recipe_Lift_Strategy.php',
28
-    'Wordlift\\Modules\\Food_Kg\\Module' => $baseDir . '/Module.php',
29
-    'Wordlift\\Modules\\Food_Kg\\Notices' => $baseDir . '/Notices.php',
30
-    'Wordlift\\Modules\\Food_Kg\\Preconditions' => $baseDir . '/Preconditions.php',
31
-    'Wordlift\\Modules\\Food_Kg\\Recipe_Lift_Strategy' => $baseDir . '/Recipe_Lift_Strategy.php',
32
-    'Wordlift\\Modules\\Food_Kg\\Services\\Ingredients' => $baseDir . '/services/Ingredients.php',
33
-    'Wordlift_Modules_Food_Kg_Composer\\Autoload\\ClassLoader' => $vendorDir . '/composer/ClassLoader.php',
34
-    'Wordlift_Modules_Food_Kg_Composer\\Autoload\\ComposerStaticInitbaaf547b24d2757395578581da934187' => $vendorDir . '/composer/autoload_static.php',
9
+    'ComposerAutoloaderInitbaaf547b24d2757395578581da934187' => $vendorDir.'/composer/autoload_real.php',
10
+    'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php',
11
+    'Wordlift\\Modules\\Food_Kg\\Admin\\Download_Ingredients_Data' => $baseDir.'/admin/Download_Ingredients_Data.php',
12
+    'Wordlift\\Modules\\Food_Kg\\Admin\\Full_Page_Delegate' => $baseDir.'/admin/Full_Page_Delegate.php',
13
+    'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_Full_Page_Delegate' => $baseDir.'/admin/Ingredients_Full_Page_Delegate.php',
14
+    'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_List_Table' => $baseDir.'/admin/Ingredients_List_Table.php',
15
+    'Wordlift\\Modules\\Food_Kg\\Admin\\Ingredients_Modal_Page_Delegate' => $baseDir.'/admin/Ingredients_Modal_Page_Delegate.php',
16
+    'Wordlift\\Modules\\Food_Kg\\Admin\\Main_Ingredient_List_Table' => $baseDir.'/admin/Main_Ingredient_List_Table.php',
17
+    'Wordlift\\Modules\\Food_Kg\\Admin\\Main_Ingredient_Modal_Page_Delegate' => $baseDir.'/admin/Main_Ingredient_Modal_Page_Delegate.php',
18
+    'Wordlift\\Modules\\Food_Kg\\Admin\\Meta_Box' => $baseDir.'/admin/Meta_Box.php',
19
+    'Wordlift\\Modules\\Food_Kg\\Admin\\Page' => $baseDir.'/admin/Page.php',
20
+    'Wordlift\\Modules\\Food_Kg\\Admin\\Page_Delegate' => $baseDir.'/admin/Page_Delegate.php',
21
+    'Wordlift\\Modules\\Food_Kg\\Ingredients' => $baseDir.'/Ingredients.php',
22
+    'Wordlift\\Modules\\Food_Kg\\Ingredients_API' => $baseDir.'/Ingredients_API.php',
23
+    'Wordlift\\Modules\\Food_Kg\\Ingredients_Client' => $baseDir.'/Ingredients_Client.php',
24
+    'Wordlift\\Modules\\Food_Kg\\Ingredients_Taxonomy_Recipe_Lift_Strategy' => $baseDir.'/Ingredients_Taxonomy_Recipe_Lift_Strategy.php',
25
+    'Wordlift\\Modules\\Food_Kg\\Jsonld' => $baseDir.'/Jsonld.php',
26
+    'Wordlift\\Modules\\Food_Kg\\Main_Ingredient_Jsonld' => $baseDir.'/Main_Ingredient_Jsonld.php',
27
+    'Wordlift\\Modules\\Food_Kg\\Main_Ingredient_Recipe_Lift_Strategy' => $baseDir.'/Main_Ingredient_Recipe_Lift_Strategy.php',
28
+    'Wordlift\\Modules\\Food_Kg\\Module' => $baseDir.'/Module.php',
29
+    'Wordlift\\Modules\\Food_Kg\\Notices' => $baseDir.'/Notices.php',
30
+    'Wordlift\\Modules\\Food_Kg\\Preconditions' => $baseDir.'/Preconditions.php',
31
+    'Wordlift\\Modules\\Food_Kg\\Recipe_Lift_Strategy' => $baseDir.'/Recipe_Lift_Strategy.php',
32
+    'Wordlift\\Modules\\Food_Kg\\Services\\Ingredients' => $baseDir.'/services/Ingredients.php',
33
+    'Wordlift_Modules_Food_Kg_Composer\\Autoload\\ClassLoader' => $vendorDir.'/composer/ClassLoader.php',
34
+    'Wordlift_Modules_Food_Kg_Composer\\Autoload\\ComposerStaticInitbaaf547b24d2757395578581da934187' => $vendorDir.'/composer/autoload_static.php',
35 35
 );
Please login to merge, or discard this patch.
src/wordlift/task/background/class-background-task-factory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
 	 * @return void
26 26
 	 * @throws Exception in case of invalid arguments.
27 27
 	 */
28
-	public static function create( $task, $route, $page_id, $page_title ) {
29
-		Assertions::is_a( $task, 'Wordlift\Task\Task' );
30
-		Assertions::starts_with( $route, '/', __( 'The route must start with a slash.', 'wordlift' ) );
28
+	public static function create($task, $route, $page_id, $page_title) {
29
+		Assertions::is_a($task, 'Wordlift\Task\Task');
30
+		Assertions::starts_with($route, '/', __('The route must start with a slash.', 'wordlift'));
31 31
 
32
-		$background_task       = Background_Task::create( $task );
33
-		$background_task_route = Background_Task_Route::create( $background_task, $route );
34
-		Background_Task_Page::create( $page_title, $page_id, $background_task_route );
32
+		$background_task       = Background_Task::create($task);
33
+		$background_task_route = Background_Task_Route::create($background_task, $route);
34
+		Background_Task_Page::create($page_title, $page_id, $background_task_route);
35 35
 	}
36 36
 
37 37
 }
Please login to merge, or discard this patch.