Completed
Pull Request — develop (#1581)
by David
01:16
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/vendor/composer/autoload_real.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     public static function loadClassLoader($class)
10 10
     {
11 11
         if ('Wordlift_Modules_Food_Kg_Composer\Autoload\ClassLoader' === $class) {
12
-            require __DIR__ . '/ClassLoader.php';
12
+            require __DIR__.'/ClassLoader.php';
13 13
         }
14 14
     }
15 15
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         self::$loader = $loader = new \Wordlift_Modules_Food_Kg_Composer\Autoload\ClassLoader(\dirname(__DIR__));
27 27
         spl_autoload_unregister(array('ComposerAutoloaderInitbaaf547b24d2757395578581da934187', 'loadClassLoader'));
28 28
 
29
-        require __DIR__ . '/autoload_static.php';
29
+        require __DIR__.'/autoload_static.php';
30 30
         call_user_func(\Wordlift_Modules_Food_Kg_Composer\Autoload\ComposerStaticInitbaaf547b24d2757395578581da934187::getInitializer($loader));
31 31
 
32 32
         $loader->setClassMapAuthoritative(true);
Please login to merge, or discard this patch.
src/modules/food-kg/includes/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/food-kg/includes/admin/partials/main_ingredient.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 	</div>
11 11
 	<?php
12 12
 
13
-	// Prepare Table of elements
14
-	$main_ingredient_list_table = new Main_Ingredient_List_Table();
15
-	$main_ingredient_list_table->prepare_items();
16
-	$main_ingredient_list_table->display();
17
-	?>
13
+    // Prepare Table of elements
14
+    $main_ingredient_list_table = new Main_Ingredient_List_Table();
15
+    $main_ingredient_list_table->prepare_items();
16
+    $main_ingredient_list_table->display();
17
+    ?>
18 18
 </div>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 ?>
6 6
 <div class="wrap">
7 7
 	<div class="wl-ingredients">
8
-		<h1><?php esc_html_e( 'Main Ingredients', 'wordlift' ); ?></h1>
9
-		<a href="<?php echo esc_url( admin_url( 'admin-ajax.php?action=wl_download_ingredients_data' ) ); ?>" class="wl-ingredients__btn-copy-table"><?php esc_html_e( 'Download Ingredients Data', 'wordlift' ); ?></a>
8
+		<h1><?php esc_html_e('Main Ingredients', 'wordlift'); ?></h1>
9
+		<a href="<?php echo esc_url(admin_url('admin-ajax.php?action=wl_download_ingredients_data')); ?>" class="wl-ingredients__btn-copy-table"><?php esc_html_e('Download Ingredients Data', 'wordlift'); ?></a>
10 10
 	</div>
11 11
 	<?php
12 12
 
Please login to merge, or discard this patch.
src/wordlift-constants.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -6,43 +6,43 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 // Set the temporary files folder.
9
-defined( 'WL_TEMP_DIR' ) || define( 'WL_TEMP_DIR', wl_temp_dir() );
9
+defined('WL_TEMP_DIR') || define('WL_TEMP_DIR', wl_temp_dir());
10 10
 
11 11
 // Define the meta name used to store the entity URL.
12
-define( 'WL_ENTITY_URL_META_NAME', 'entity_url' );
12
+define('WL_ENTITY_URL_META_NAME', 'entity_url');
13 13
 
14 14
 // WordLift Directory URL.
15
-defined( 'WL_DIR_URL' ) || define( 'WL_DIR_URL', plugin_dir_url( __FILE__ ) );
15
+defined('WL_DIR_URL') || define('WL_DIR_URL', plugin_dir_url(__FILE__));
16 16
 
17 17
 // Use the WordLift API URL set on the command line.
18
-if ( ! defined( 'WORDLIFT_API_URL' ) && false !== getenv( 'WORDLIFT_API_URL' ) ) {
19
-	define( 'WORDLIFT_API_URL', getenv( 'WORDLIFT_API_URL' ) );
18
+if ( ! defined('WORDLIFT_API_URL') && false !== getenv('WORDLIFT_API_URL')) {
19
+	define('WORDLIFT_API_URL', getenv('WORDLIFT_API_URL'));
20 20
 }
21 21
 
22 22
 // 3.13.0, we use by default WLS 1.11 which provides us with the new, faster
23 23
 // chunked analysis.
24
-define( 'WL_CONFIG_WORDLIFT_API_URL_DEFAULT_VALUE', defined( 'WORDLIFT_API_URL' ) ? WORDLIFT_API_URL . '/' : 'https://api.wordlift.io/' );
24
+define('WL_CONFIG_WORDLIFT_API_URL_DEFAULT_VALUE', defined('WORDLIFT_API_URL') ? WORDLIFT_API_URL . '/' : 'https://api.wordlift.io/');
25 25
 
26 26
 // @since 3.29.0 we do not use https://developers.google.com/structured-data/testing-tool/?url=
27
-define( 'WL_CONFIG_TEST_GOOGLE_RICH_SNIPPETS_URL', 'https://search.google.com/test/rich-results?url=' );
27
+define('WL_CONFIG_TEST_GOOGLE_RICH_SNIPPETS_URL', 'https://search.google.com/test/rich-results?url=');
28 28
 
29 29
 // If is set to true, there will be additional button in 'Download Your Data' page
30 30
 // that will allow users to download their data in JSON-LD format.
31
-defined( 'WL_CONFIG_DOWNLOAD_GA_CONTENT_DATA' ) || define( 'WL_CONFIG_DOWNLOAD_GA_CONTENT_DATA', false );
31
+defined('WL_CONFIG_DOWNLOAD_GA_CONTENT_DATA') || define('WL_CONFIG_DOWNLOAD_GA_CONTENT_DATA', false);
32 32
 
33 33
 /*
34 34
  * Define the default scope for autocomplete requests.
35 35
  *
36 36
  * @see https://github.com/insideout10/wordlift-plugin/issues/839
37 37
  */
38
-defined( 'WL_AUTOCOMPLETE_SCOPE' ) || define( 'WL_AUTOCOMPLETE_SCOPE', 'cloud' );
38
+defined('WL_AUTOCOMPLETE_SCOPE') || define('WL_AUTOCOMPLETE_SCOPE', 'cloud');
39 39
 
40 40
 /*
41 41
  * Enable/disable the `all entity types` feature. Initially we keep the feature disabled to enture proper Q/A.
42 42
  *
43 43
  * @see https://github.com/insideout10/wordlift-plugin/issues/835
44 44
  */
45
-defined( 'WL_ALL_ENTITY_TYPES' ) || define( 'WL_ALL_ENTITY_TYPES', false );
45
+defined('WL_ALL_ENTITY_TYPES') || define('WL_ALL_ENTITY_TYPES', false);
46 46
 
47 47
 /**
48 48
  * Get a site unique directory under the system or WordPress temporary directory.
@@ -56,14 +56,14 @@  discard block
 block discarded – undo
56 56
  */
57 57
 function wl_temp_dir() {
58 58
 	$tempdir         = get_temp_dir();
59
-	$unique          = md5( site_url() . get_current_blog_id() );
60
-	$unique_temp_dir = $tempdir . 'wl_' . $unique; // $tempdir should have a trailing slash.
59
+	$unique          = md5(site_url().get_current_blog_id());
60
+	$unique_temp_dir = $tempdir.'wl_'.$unique; // $tempdir should have a trailing slash.
61 61
 
62 62
 	// If directory do not exist, create it.
63
-	if ( ! file_exists( $unique_temp_dir ) ) {
63
+	if ( ! file_exists($unique_temp_dir)) {
64 64
 		// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
65
-		@mkdir( $unique_temp_dir );
65
+		@mkdir($unique_temp_dir);
66 66
 	}
67 67
 
68
-	return $unique_temp_dir . '/';
68
+	return $unique_temp_dir.'/';
69 69
 }
Please login to merge, or discard this patch.
src/modules/food-kg/scoper.inc.php 2 patches
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -16,97 +16,97 @@
 block discarded – undo
16 16
 $wp_constants = json_decode( file_get_contents( 'vendor/sniccowp/php-scoper-wordpress-excludes/generated/exclude-wordpress-constants.json' ), true );
17 17
 
18 18
 return array(
19
-	// The prefix configuration. If a non null value is be used, a random prefix
20
-	// will be generated instead.
21
-	//
22
-	// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#prefix
23
-	'prefix'             => 'Wordlift\Modules\Common',
19
+    // The prefix configuration. If a non null value is be used, a random prefix
20
+    // will be generated instead.
21
+    //
22
+    // For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#prefix
23
+    'prefix'             => 'Wordlift\Modules\Common',
24 24
 
25
-	// By default when running php-scoper add-prefix, it will prefix all relevant code found in the current working
26
-	// directory. You can however define which files should be scoped by defining a collection of Finders in the
27
-	// following configuration key.
28
-	//
29
-	// This configuration entry is completely ignored when using Box.
30
-	//
31
-	// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#finders-and-paths
32
-	'finders'            => array(
33
-		Finder::create()
34
-			  ->files()
35
-			  ->ignoreVCS( true )
36
-			  ->notName( '/LICENSE|.*\\.md|.*\\.dist|Makefile|composer\\.json|composer\\.lock/' )
37
-			->exclude(
38
-				array(
39
-					'doc',
40
-					'test',
41
-					'test_old',
42
-					'tests',
43
-					'Tests',
44
-					'vendor-bin',
45
-				)
46
-			)
47
-			->in(
48
-				array(
49
-					'vendor/cweagans/composer-patches',
50
-					'vendor/mcaskill/composer-exclude-files',
51
-					'vendor/psr/container',
52
-					'vendor/symfony/config',
53
-					'vendor/symfony/dependency-injection',
54
-					'vendor/symfony/filesystem',
55
-					'vendor/symfony/polyfill-ctype',
56
-					'vendor/symfony/polyfill-php73',
57
-					'vendor/symfony/polyfill-php80',
58
-					'vendor/symfony/yaml',
59
-				)
60
-			),
25
+    // By default when running php-scoper add-prefix, it will prefix all relevant code found in the current working
26
+    // directory. You can however define which files should be scoped by defining a collection of Finders in the
27
+    // following configuration key.
28
+    //
29
+    // This configuration entry is completely ignored when using Box.
30
+    //
31
+    // For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#finders-and-paths
32
+    'finders'            => array(
33
+        Finder::create()
34
+                ->files()
35
+                ->ignoreVCS( true )
36
+                ->notName( '/LICENSE|.*\\.md|.*\\.dist|Makefile|composer\\.json|composer\\.lock/' )
37
+            ->exclude(
38
+                array(
39
+                    'doc',
40
+                    'test',
41
+                    'test_old',
42
+                    'tests',
43
+                    'Tests',
44
+                    'vendor-bin',
45
+                )
46
+            )
47
+            ->in(
48
+                array(
49
+                    'vendor/cweagans/composer-patches',
50
+                    'vendor/mcaskill/composer-exclude-files',
51
+                    'vendor/psr/container',
52
+                    'vendor/symfony/config',
53
+                    'vendor/symfony/dependency-injection',
54
+                    'vendor/symfony/filesystem',
55
+                    'vendor/symfony/polyfill-ctype',
56
+                    'vendor/symfony/polyfill-php73',
57
+                    'vendor/symfony/polyfill-php80',
58
+                    'vendor/symfony/yaml',
59
+                )
60
+            ),
61 61
 
62
-		// Symfony mbstring polyfill.
63
-		Finder::create()
64
-			  ->files()
65
-			  ->ignoreVCS( true )
66
-			  ->ignoreDotFiles( true )
67
-			  ->name( '/\.*.php8?/' )
68
-			  ->in( 'vendor/symfony/polyfill-mbstring/Resources' )
69
-			->append(
70
-				array(
71
-					'vendor/symfony/polyfill-mbstring/Mbstring.php',
72
-					'vendor/symfony/polyfill-mbstring/composer.json',
73
-				)
74
-			),
62
+        // Symfony mbstring polyfill.
63
+        Finder::create()
64
+                ->files()
65
+                ->ignoreVCS( true )
66
+                ->ignoreDotFiles( true )
67
+                ->name( '/\.*.php8?/' )
68
+                ->in( 'vendor/symfony/polyfill-mbstring/Resources' )
69
+            ->append(
70
+                array(
71
+                    'vendor/symfony/polyfill-mbstring/Mbstring.php',
72
+                    'vendor/symfony/polyfill-mbstring/composer.json',
73
+                )
74
+            ),
75 75
 
76
-		Finder::create()->append(
77
-			array(
78
-				'composer.json',
79
-			)
80
-		),
81
-	),
76
+        Finder::create()->append(
77
+            array(
78
+                'composer.json',
79
+            )
80
+        ),
81
+    ),
82 82
 
83
-	// List of excluded files, i.e. files for which the content will be left untouched.
84
-	// Paths are relative to the configuration file unless if they are already absolute
85
-	//
86
-	// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#patchers
87
-	'exclude-files'      => array(),
83
+    // List of excluded files, i.e. files for which the content will be left untouched.
84
+    // Paths are relative to the configuration file unless if they are already absolute
85
+    //
86
+    // For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#patchers
87
+    'exclude-files'      => array(),
88 88
 
89
-	// When scoping PHP files, there will be scenarios where some of the code being scoped indirectly references the
90
-	// original namespace. These will include, for example, strings or string manipulations. PHP-Scoper has limited
91
-	// support for prefixing such strings. To circumvent that, you can define patchers to manipulate the file to your
92
-	// heart contents.
93
-	//
94
-	// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#patchers
95
-	'patchers'           => array(),
89
+    // When scoping PHP files, there will be scenarios where some of the code being scoped indirectly references the
90
+    // original namespace. These will include, for example, strings or string manipulations. PHP-Scoper has limited
91
+    // support for prefixing such strings. To circumvent that, you can define patchers to manipulate the file to your
92
+    // heart contents.
93
+    //
94
+    // For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#patchers
95
+    'patchers'           => array(),
96 96
 
97
-	// List of symbols to consider internal i.e. to leave untouched.
98
-	//
99
-	// For more information see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#excluded-symbols
100
-	'exclude-namespaces' => array(
101
-		// 'Acme\Foo'                     // The Acme\Foo namespace (and sub-namespaces)
102
-		// '~^PHPUnit\\\\Framework$~',    // The whole namespace PHPUnit\Framework (but not sub-namespaces)
103
-		// '~^$~',                        // The root namespace only
104
-		// '',                            // Any namespace
105
-	),
106
-	'exclude-classes'    => $wp_classes,
97
+    // List of symbols to consider internal i.e. to leave untouched.
98
+    //
99
+    // For more information see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#excluded-symbols
100
+    'exclude-namespaces' => array(
101
+        // 'Acme\Foo'                     // The Acme\Foo namespace (and sub-namespaces)
102
+        // '~^PHPUnit\\\\Framework$~',    // The whole namespace PHPUnit\Framework (but not sub-namespaces)
103
+        // '~^$~',                        // The root namespace only
104
+        // '',                            // Any namespace
105
+    ),
106
+    'exclude-classes'    => $wp_classes,
107 107
 
108
-	'exclude-functions'  => $wp_functions,
108
+    'exclude-functions'  => $wp_functions,
109 109
 
110
-	'exclude-constants'  => $wp_constants,
110
+    'exclude-constants'  => $wp_constants,
111 111
 
112 112
 );
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare( strict_types=1 );
3
+declare(strict_types=1);
4 4
 
5 5
 use Isolated\Symfony\Component\Finder\Finder;
6 6
 
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
 // to auto-load any code here: it can result in a conflict or even corrupt
12 12
 // the PHP-Scoper analysis.
13 13
 
14
-$wp_classes   = json_decode( file_get_contents( 'vendor/sniccowp/php-scoper-wordpress-excludes/generated/exclude-wordpress-classes.json' ), true );
15
-$wp_functions = json_decode( file_get_contents( 'vendor/sniccowp/php-scoper-wordpress-excludes/generated/exclude-wordpress-functions.json' ), true );
16
-$wp_constants = json_decode( file_get_contents( 'vendor/sniccowp/php-scoper-wordpress-excludes/generated/exclude-wordpress-constants.json' ), true );
14
+$wp_classes   = json_decode(file_get_contents('vendor/sniccowp/php-scoper-wordpress-excludes/generated/exclude-wordpress-classes.json'), true);
15
+$wp_functions = json_decode(file_get_contents('vendor/sniccowp/php-scoper-wordpress-excludes/generated/exclude-wordpress-functions.json'), true);
16
+$wp_constants = json_decode(file_get_contents('vendor/sniccowp/php-scoper-wordpress-excludes/generated/exclude-wordpress-constants.json'), true);
17 17
 
18 18
 return array(
19 19
 	// The prefix configuration. If a non null value is be used, a random prefix
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
 	'finders'            => array(
33 33
 		Finder::create()
34 34
 			  ->files()
35
-			  ->ignoreVCS( true )
36
-			  ->notName( '/LICENSE|.*\\.md|.*\\.dist|Makefile|composer\\.json|composer\\.lock/' )
35
+			  ->ignoreVCS(true)
36
+			  ->notName('/LICENSE|.*\\.md|.*\\.dist|Makefile|composer\\.json|composer\\.lock/')
37 37
 			->exclude(
38 38
 				array(
39 39
 					'doc',
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
 		// Symfony mbstring polyfill.
63 63
 		Finder::create()
64 64
 			  ->files()
65
-			  ->ignoreVCS( true )
66
-			  ->ignoreDotFiles( true )
67
-			  ->name( '/\.*.php8?/' )
68
-			  ->in( 'vendor/symfony/polyfill-mbstring/Resources' )
65
+			  ->ignoreVCS(true)
66
+			  ->ignoreDotFiles(true)
67
+			  ->name('/\.*.php8?/')
68
+			  ->in('vendor/symfony/polyfill-mbstring/Resources')
69 69
 			->append(
70 70
 				array(
71 71
 					'vendor/symfony/polyfill-mbstring/Mbstring.php',
Please login to merge, or discard this patch.
src/js/dist/mappings-edit.asset.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php return array(
2
-	'dependencies' => array( 'react', 'react-dom', 'wp-polyfill' ),
3
-	'version'      => '5efaf042695a86b61d23bde696138273',
2
+    'dependencies' => array( 'react', 'react-dom', 'wp-polyfill' ),
3
+    'version'      => '5efaf042695a86b61d23bde696138273',
4 4
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php return array(
2
-	'dependencies' => array( 'react', 'react-dom', 'wp-polyfill' ),
2
+	'dependencies' => array('react', 'react-dom', 'wp-polyfill'),
3 3
 	'version'      => '5efaf042695a86b61d23bde696138273',
4 4
 );
Please login to merge, or discard this patch.
src/js/dist/block-editor.asset.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php return array(
2
-	'dependencies' => array( 'react', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-rich-text' ),
3
-	'version'      => 'c2d4e8d1ba36b81089eee91a400e6b6b',
2
+    'dependencies' => array( 'react', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-rich-text' ),
3
+    'version'      => 'c2d4e8d1ba36b81089eee91a400e6b6b',
4 4
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php return array(
2
-	'dependencies' => array( 'react', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-rich-text' ),
2
+	'dependencies' => array('react', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-rich-text'),
3 3
 	'version'      => 'c2d4e8d1ba36b81089eee91a400e6b6b',
4 4
 );
Please login to merge, or discard this patch.
src/js/dist/term.asset.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php return array(
2
-	'dependencies' => array( 'react', 'react-dom', 'wp-polyfill' ),
3
-	'version'      => '3f75b6cd2913381c9e2d4e054a9bef55',
2
+    'dependencies' => array( 'react', 'react-dom', 'wp-polyfill' ),
3
+    'version'      => '3f75b6cd2913381c9e2d4e054a9bef55',
4 4
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php return array(
2
-	'dependencies' => array( 'react', 'react-dom', 'wp-polyfill' ),
2
+	'dependencies' => array('react', 'react-dom', 'wp-polyfill'),
3 3
 	'version'      => '3f75b6cd2913381c9e2d4e054a9bef55',
4 4
 );
Please login to merge, or discard this patch.