Completed
Pull Request — develop (#1698)
by
unknown
01:52
created
src/modules/acf4so/vendor/composer/installed.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php return array(
2
-	'root'     =>
3
-	array(
4
-		'pretty_version' => 'dev-master',
5
-		'version'        => 'dev-master',
6
-		'aliases'        =>
7
-		array(),
8
-		'reference'      => '92aac48f00518a12deba52b6e2c5d9602d73fcd3',
9
-		'name'           => 'wordlift/acf4so',
10
-	),
11
-	'versions' =>
12
-	array(
13
-		'wordlift/acf4so' =>
14
-		array(
15
-			'pretty_version' => 'dev-master',
16
-			'version'        => 'dev-master',
17
-			'aliases'        =>
18
-			array(),
19
-			'reference'      => '92aac48f00518a12deba52b6e2c5d9602d73fcd3',
20
-		),
21
-	),
2
+    'root'     =>
3
+    array(
4
+        'pretty_version' => 'dev-master',
5
+        'version'        => 'dev-master',
6
+        'aliases'        =>
7
+        array(),
8
+        'reference'      => '92aac48f00518a12deba52b6e2c5d9602d73fcd3',
9
+        'name'           => 'wordlift/acf4so',
10
+    ),
11
+    'versions' =>
12
+    array(
13
+        'wordlift/acf4so' =>
14
+        array(
15
+            'pretty_version' => 'dev-master',
16
+            'version'        => 'dev-master',
17
+            'aliases'        =>
18
+            array(),
19
+            'reference'      => '92aac48f00518a12deba52b6e2c5d9602d73fcd3',
20
+        ),
21
+    ),
22 22
 );
Please login to merge, or discard this patch.
src/modules/acf4so/vendor/composer/InstalledVersions.php 2 patches
Indentation   +107 added lines, -107 removed lines patch added patch discarded remove patch
@@ -6,111 +6,111 @@
 block discarded – undo
6 6
 
7 7
 class InstalledVersions {
8 8
 
9
-	private static $installed = array(
10
-		'root'     =>
11
-		array(
12
-			'pretty_version' => 'dev-master',
13
-			'version'        => 'dev-master',
14
-			'aliases'        =>
15
-			array(),
16
-			'reference'      => '92aac48f00518a12deba52b6e2c5d9602d73fcd3',
17
-			'name'           => 'wordlift/acf4so',
18
-		),
19
-		'versions' =>
20
-		array(
21
-			'wordlift/acf4so' =>
22
-			array(
23
-				'pretty_version' => 'dev-master',
24
-				'version'        => 'dev-master',
25
-				'aliases'        =>
26
-				array(),
27
-				'reference'      => '92aac48f00518a12deba52b6e2c5d9602d73fcd3',
28
-			),
29
-		),
30
-	);
31
-
32
-	public static function getInstalledPackages() {
33
-		return array_keys( self::$installed['versions'] );
34
-	}
35
-
36
-	public static function isInstalled( $packageName ) {
37
-		return isset( self::$installed['versions'][ $packageName ] );
38
-	}
39
-
40
-	public static function satisfies( VersionParser $parser, $packageName, $constraint ) {
41
-		$constraint = $parser->parseConstraints( $constraint );
42
-		$provided   = $parser->parseConstraints( self::getVersionRanges( $packageName ) );
43
-
44
-		return $provided->matches( $constraint );
45
-	}
46
-
47
-	public static function getVersionRanges( $packageName ) {
48
-		if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
49
-			throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
50
-		}
51
-
52
-		$ranges = array();
53
-		if ( isset( self::$installed['versions'][ $packageName ]['pretty_version'] ) ) {
54
-			$ranges[] = self::$installed['versions'][ $packageName ]['pretty_version'];
55
-		}
56
-		if ( array_key_exists( 'aliases', self::$installed['versions'][ $packageName ] ) ) {
57
-			$ranges = array_merge( $ranges, self::$installed['versions'][ $packageName ]['aliases'] );
58
-		}
59
-		if ( array_key_exists( 'replaced', self::$installed['versions'][ $packageName ] ) ) {
60
-			$ranges = array_merge( $ranges, self::$installed['versions'][ $packageName ]['replaced'] );
61
-		}
62
-		if ( array_key_exists( 'provided', self::$installed['versions'][ $packageName ] ) ) {
63
-			$ranges = array_merge( $ranges, self::$installed['versions'][ $packageName ]['provided'] );
64
-		}
65
-
66
-		return implode( ' || ', $ranges );
67
-	}
68
-
69
-	public static function getVersion( $packageName ) {
70
-		if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
71
-			throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
72
-		}
73
-
74
-		if ( ! isset( self::$installed['versions'][ $packageName ]['version'] ) ) {
75
-			return null;
76
-		}
77
-
78
-		return self::$installed['versions'][ $packageName ]['version'];
79
-	}
80
-
81
-	public static function getPrettyVersion( $packageName ) {
82
-		if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
83
-			throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
84
-		}
85
-
86
-		if ( ! isset( self::$installed['versions'][ $packageName ]['pretty_version'] ) ) {
87
-			return null;
88
-		}
89
-
90
-		return self::$installed['versions'][ $packageName ]['pretty_version'];
91
-	}
92
-
93
-	public static function getReference( $packageName ) {
94
-		if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
95
-			throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
96
-		}
97
-
98
-		if ( ! isset( self::$installed['versions'][ $packageName ]['reference'] ) ) {
99
-			return null;
100
-		}
101
-
102
-		return self::$installed['versions'][ $packageName ]['reference'];
103
-	}
104
-
105
-	public static function getRootPackage() {
106
-		return self::$installed['root'];
107
-	}
108
-
109
-	public static function getRawData() {
110
-		return self::$installed;
111
-	}
112
-
113
-	public static function reload( $data ) {
114
-		self::$installed = $data;
115
-	}
9
+    private static $installed = array(
10
+        'root'     =>
11
+        array(
12
+            'pretty_version' => 'dev-master',
13
+            'version'        => 'dev-master',
14
+            'aliases'        =>
15
+            array(),
16
+            'reference'      => '92aac48f00518a12deba52b6e2c5d9602d73fcd3',
17
+            'name'           => 'wordlift/acf4so',
18
+        ),
19
+        'versions' =>
20
+        array(
21
+            'wordlift/acf4so' =>
22
+            array(
23
+                'pretty_version' => 'dev-master',
24
+                'version'        => 'dev-master',
25
+                'aliases'        =>
26
+                array(),
27
+                'reference'      => '92aac48f00518a12deba52b6e2c5d9602d73fcd3',
28
+            ),
29
+        ),
30
+    );
31
+
32
+    public static function getInstalledPackages() {
33
+        return array_keys( self::$installed['versions'] );
34
+    }
35
+
36
+    public static function isInstalled( $packageName ) {
37
+        return isset( self::$installed['versions'][ $packageName ] );
38
+    }
39
+
40
+    public static function satisfies( VersionParser $parser, $packageName, $constraint ) {
41
+        $constraint = $parser->parseConstraints( $constraint );
42
+        $provided   = $parser->parseConstraints( self::getVersionRanges( $packageName ) );
43
+
44
+        return $provided->matches( $constraint );
45
+    }
46
+
47
+    public static function getVersionRanges( $packageName ) {
48
+        if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
49
+            throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
50
+        }
51
+
52
+        $ranges = array();
53
+        if ( isset( self::$installed['versions'][ $packageName ]['pretty_version'] ) ) {
54
+            $ranges[] = self::$installed['versions'][ $packageName ]['pretty_version'];
55
+        }
56
+        if ( array_key_exists( 'aliases', self::$installed['versions'][ $packageName ] ) ) {
57
+            $ranges = array_merge( $ranges, self::$installed['versions'][ $packageName ]['aliases'] );
58
+        }
59
+        if ( array_key_exists( 'replaced', self::$installed['versions'][ $packageName ] ) ) {
60
+            $ranges = array_merge( $ranges, self::$installed['versions'][ $packageName ]['replaced'] );
61
+        }
62
+        if ( array_key_exists( 'provided', self::$installed['versions'][ $packageName ] ) ) {
63
+            $ranges = array_merge( $ranges, self::$installed['versions'][ $packageName ]['provided'] );
64
+        }
65
+
66
+        return implode( ' || ', $ranges );
67
+    }
68
+
69
+    public static function getVersion( $packageName ) {
70
+        if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
71
+            throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
72
+        }
73
+
74
+        if ( ! isset( self::$installed['versions'][ $packageName ]['version'] ) ) {
75
+            return null;
76
+        }
77
+
78
+        return self::$installed['versions'][ $packageName ]['version'];
79
+    }
80
+
81
+    public static function getPrettyVersion( $packageName ) {
82
+        if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
83
+            throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
84
+        }
85
+
86
+        if ( ! isset( self::$installed['versions'][ $packageName ]['pretty_version'] ) ) {
87
+            return null;
88
+        }
89
+
90
+        return self::$installed['versions'][ $packageName ]['pretty_version'];
91
+    }
92
+
93
+    public static function getReference( $packageName ) {
94
+        if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
95
+            throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
96
+        }
97
+
98
+        if ( ! isset( self::$installed['versions'][ $packageName ]['reference'] ) ) {
99
+            return null;
100
+        }
101
+
102
+        return self::$installed['versions'][ $packageName ]['reference'];
103
+    }
104
+
105
+    public static function getRootPackage() {
106
+        return self::$installed['root'];
107
+    }
108
+
109
+    public static function getRawData() {
110
+        return self::$installed;
111
+    }
112
+
113
+    public static function reload( $data ) {
114
+        self::$installed = $data;
115
+    }
116 116
 }
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -38,76 +38,76 @@  discard block
 block discarded – undo
38 38
 	);
39 39
 
40 40
 	public static function getInstalledPackages() {
41
-		return array_keys( self::$installed['versions'] );
41
+		return array_keys(self::$installed['versions']);
42 42
 	}
43 43
 
44
-	public static function isInstalled( $packageName ) {
45
-		return isset( self::$installed['versions'][ $packageName ] );
44
+	public static function isInstalled($packageName) {
45
+		return isset(self::$installed['versions'][$packageName]);
46 46
 	}
47 47
 
48
-	public static function satisfies( VersionParser $parser, $packageName, $constraint ) {
49
-		$constraint = $parser->parseConstraints( $constraint );
50
-		$provided   = $parser->parseConstraints( self::getVersionRanges( $packageName ) );
48
+	public static function satisfies(VersionParser $parser, $packageName, $constraint) {
49
+		$constraint = $parser->parseConstraints($constraint);
50
+		$provided   = $parser->parseConstraints(self::getVersionRanges($packageName));
51 51
 
52
-		return $provided->matches( $constraint );
52
+		return $provided->matches($constraint);
53 53
 	}
54 54
 
55
-	public static function getVersionRanges( $packageName ) {
56
-		if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
57
-			throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
55
+	public static function getVersionRanges($packageName) {
56
+		if ( ! isset(self::$installed['versions'][$packageName])) {
57
+			throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
58 58
 		}
59 59
 
60 60
 		$ranges = array();
61
-		if ( isset( self::$installed['versions'][ $packageName ]['pretty_version'] ) ) {
62
-			$ranges[] = self::$installed['versions'][ $packageName ]['pretty_version'];
61
+		if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {
62
+			$ranges[] = self::$installed['versions'][$packageName]['pretty_version'];
63 63
 		}
64
-		if ( array_key_exists( 'aliases', self::$installed['versions'][ $packageName ] ) ) {
65
-			$ranges = array_merge( $ranges, self::$installed['versions'][ $packageName ]['aliases'] );
64
+		if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {
65
+			$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);
66 66
 		}
67
-		if ( array_key_exists( 'replaced', self::$installed['versions'][ $packageName ] ) ) {
68
-			$ranges = array_merge( $ranges, self::$installed['versions'][ $packageName ]['replaced'] );
67
+		if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {
68
+			$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);
69 69
 		}
70
-		if ( array_key_exists( 'provided', self::$installed['versions'][ $packageName ] ) ) {
71
-			$ranges = array_merge( $ranges, self::$installed['versions'][ $packageName ]['provided'] );
70
+		if (array_key_exists('provided', self::$installed['versions'][$packageName])) {
71
+			$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);
72 72
 		}
73 73
 
74
-		return implode( ' || ', $ranges );
74
+		return implode(' || ', $ranges);
75 75
 	}
76 76
 
77
-	public static function getVersion( $packageName ) {
78
-		if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
79
-			throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
77
+	public static function getVersion($packageName) {
78
+		if ( ! isset(self::$installed['versions'][$packageName])) {
79
+			throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
80 80
 		}
81 81
 
82
-		if ( ! isset( self::$installed['versions'][ $packageName ]['version'] ) ) {
82
+		if ( ! isset(self::$installed['versions'][$packageName]['version'])) {
83 83
 			return null;
84 84
 		}
85 85
 
86
-		return self::$installed['versions'][ $packageName ]['version'];
86
+		return self::$installed['versions'][$packageName]['version'];
87 87
 	}
88 88
 
89
-	public static function getPrettyVersion( $packageName ) {
90
-		if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
91
-			throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
89
+	public static function getPrettyVersion($packageName) {
90
+		if ( ! isset(self::$installed['versions'][$packageName])) {
91
+			throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
92 92
 		}
93 93
 
94
-		if ( ! isset( self::$installed['versions'][ $packageName ]['pretty_version'] ) ) {
94
+		if ( ! isset(self::$installed['versions'][$packageName]['pretty_version'])) {
95 95
 			return null;
96 96
 		}
97 97
 
98
-		return self::$installed['versions'][ $packageName ]['pretty_version'];
98
+		return self::$installed['versions'][$packageName]['pretty_version'];
99 99
 	}
100 100
 
101
-	public static function getReference( $packageName ) {
102
-		if ( ! isset( self::$installed['versions'][ $packageName ] ) ) {
103
-			throw new \OutOfBoundsException( 'Package "' . $packageName . '" is not installed' );
101
+	public static function getReference($packageName) {
102
+		if ( ! isset(self::$installed['versions'][$packageName])) {
103
+			throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
104 104
 		}
105 105
 
106
-		if ( ! isset( self::$installed['versions'][ $packageName ]['reference'] ) ) {
106
+		if ( ! isset(self::$installed['versions'][$packageName]['reference'])) {
107 107
 			return null;
108 108
 		}
109 109
 
110
-		return self::$installed['versions'][ $packageName ]['reference'];
110
+		return self::$installed['versions'][$packageName]['reference'];
111 111
 	}
112 112
 
113 113
 	public static function getRootPackage() {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 		return self::$installed;
119 119
 	}
120 120
 
121
-	public static function reload( $data ) {
121
+	public static function reload($data) {
122 122
 		self::$installed = $data;
123 123
 	}
124 124
 }
Please login to merge, or discard this patch.
src/modules/acf4so/vendor/composer/autoload_classmap.php 2 patches
Indentation   +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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 // autoload_classmap.php @generated by Composer
4 4
 
5
-$vendorDir = dirname( ( __DIR__ ) );
6
-$baseDir   = dirname( $vendorDir );
5
+$vendorDir = dirname((__DIR__));
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/acf4so/vendor/composer/autoload_static.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -6,34 +6,34 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477 {
8 8
 
9
-	public static $prefixLengthsPsr4 = array(
10
-		'W' =>
11
-		array(
12
-			'Wordlift\\Modules\\Acf4so\\' => 24,
13
-		),
14
-	);
15
-
16
-	public static $prefixDirsPsr4 = array(
17
-		'Wordlift\\Modules\\Acf4so\\' =>
18
-		array(
19
-			0 => __DIR__ . '/../..' . '/includes',
20
-		),
21
-	);
22
-
23
-	public static $classMap = array(
24
-		'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
25
-	);
26
-
27
-	public static function getInitializer( ClassLoader $loader ) {
28
-		return \Closure::bind(
29
-			function () use ( $loader ) {
30
-				$loader->prefixLengthsPsr4 = ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::$prefixLengthsPsr4;
31
-				$loader->prefixDirsPsr4    = ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::$prefixDirsPsr4;
32
-				$loader->classMap          = ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::$classMap;
33
-
34
-			},
35
-			null,
36
-			ClassLoader::class
37
-		);
38
-	}
9
+    public static $prefixLengthsPsr4 = array(
10
+        'W' =>
11
+        array(
12
+            'Wordlift\\Modules\\Acf4so\\' => 24,
13
+        ),
14
+    );
15
+
16
+    public static $prefixDirsPsr4 = array(
17
+        'Wordlift\\Modules\\Acf4so\\' =>
18
+        array(
19
+            0 => __DIR__ . '/../..' . '/includes',
20
+        ),
21
+    );
22
+
23
+    public static $classMap = array(
24
+        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
25
+    );
26
+
27
+    public static function getInitializer( ClassLoader $loader ) {
28
+        return \Closure::bind(
29
+            function () use ( $loader ) {
30
+                $loader->prefixLengthsPsr4 = ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::$prefixLengthsPsr4;
31
+                $loader->prefixDirsPsr4    = ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::$prefixDirsPsr4;
32
+                $loader->classMap          = ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::$classMap;
33
+
34
+            },
35
+            null,
36
+            ClassLoader::class
37
+        );
38
+    }
39 39
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,17 +16,17 @@
 block discarded – undo
16 16
 	public static $prefixDirsPsr4 = array(
17 17
 		'Wordlift\\Modules\\Acf4so\\' =>
18 18
 		array(
19
-			0 => __DIR__ . '/../..' . '/includes',
19
+			0 => __DIR__.'/../..'.'/includes',
20 20
 		),
21 21
 	);
22 22
 
23 23
 	public static $classMap = array(
24
-		'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
24
+		'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php',
25 25
 	);
26 26
 
27
-	public static function getInitializer( ClassLoader $loader ) {
27
+	public static function getInitializer(ClassLoader $loader) {
28 28
 		return \Closure::bind(
29
-			function () use ( $loader ) {
29
+			function() use ($loader) {
30 30
 				$loader->prefixLengthsPsr4 = ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::$prefixLengthsPsr4;
31 31
 				$loader->prefixDirsPsr4    = ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::$prefixDirsPsr4;
32 32
 				$loader->classMap          = ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::$classMap;
Please login to merge, or discard this patch.
src/modules/acf4so/vendor/composer/autoload_psr4.php 2 patches
Indentation   +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\\Acf4so\\' => array( $baseDir . '/includes' ),
9
+    'Wordlift\\Modules\\Acf4so\\' => array( $baseDir . '/includes' ),
10 10
 );
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 // autoload_psr4.php @generated by Composer
4 4
 
5
-$vendorDir = dirname( ( __DIR__ ) );
6
-$baseDir   = dirname( $vendorDir );
5
+$vendorDir = dirname((__DIR__));
6
+$baseDir   = dirname($vendorDir);
7 7
 
8 8
 return array(
9
-	'Wordlift\\Modules\\Acf4so\\' => array( $baseDir . '/includes' ),
9
+	'Wordlift\\Modules\\Acf4so\\' => array($baseDir.'/includes'),
10 10
 );
Please login to merge, or discard this patch.
src/modules/acf4so/vendor/composer/autoload_real.php 2 patches
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -4,52 +4,52 @@
 block discarded – undo
4 4
 
5 5
 class ComposerAutoloaderInit9b4e3e175e03285e60ba6309cc2e3477 {
6 6
 
7
-	private static $loader;
8
-
9
-	public static function loadClassLoader( $class ) {
10
-		if ( 'Composer\Autoload\ClassLoader' === $class ) {
11
-			require __DIR__ . '/ClassLoader.php';
12
-		}
13
-	}
14
-
15
-	/**
16
-	 * @return \Composer\Autoload\ClassLoader
17
-	 */
18
-	public static function getLoader() {
19
-		if ( null !== self::$loader ) {
20
-			return self::$loader;
21
-		}
22
-
23
-		require __DIR__ . '/platform_check.php';
24
-
25
-		spl_autoload_register( array( 'ComposerAutoloaderInit9b4e3e175e03285e60ba6309cc2e3477', 'loadClassLoader' ), true, true );
26
-		self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
-		spl_autoload_unregister( array( 'ComposerAutoloaderInit9b4e3e175e03285e60ba6309cc2e3477', 'loadClassLoader' ) );
28
-
29
-		$useStaticLoader = PHP_VERSION_ID >= 50600 && ! defined( 'HHVM_VERSION' ) && ( ! function_exists( 'zend_loader_file_encoded' ) || ! zend_loader_file_encoded() );
30
-		if ( $useStaticLoader ) {
31
-			require __DIR__ . '/autoload_static.php';
32
-
33
-			call_user_func( \Composer\Autoload\ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::getInitializer( $loader ) );
34
-		} else {
35
-			$map = require __DIR__ . '/autoload_namespaces.php';
36
-			foreach ( $map as $namespace => $path ) {
37
-				$loader->set( $namespace, $path );
38
-			}
39
-
40
-			$map = require __DIR__ . '/autoload_psr4.php';
41
-			foreach ( $map as $namespace => $path ) {
42
-				$loader->setPsr4( $namespace, $path );
43
-			}
44
-
45
-			$classMap = require __DIR__ . '/autoload_classmap.php';
46
-			if ( $classMap ) {
47
-				$loader->addClassMap( $classMap );
48
-			}
49
-		}
50
-
51
-		$loader->register( true );
52
-
53
-		return $loader;
54
-	}
7
+    private static $loader;
8
+
9
+    public static function loadClassLoader( $class ) {
10
+        if ( 'Composer\Autoload\ClassLoader' === $class ) {
11
+            require __DIR__ . '/ClassLoader.php';
12
+        }
13
+    }
14
+
15
+    /**
16
+     * @return \Composer\Autoload\ClassLoader
17
+     */
18
+    public static function getLoader() {
19
+        if ( null !== self::$loader ) {
20
+            return self::$loader;
21
+        }
22
+
23
+        require __DIR__ . '/platform_check.php';
24
+
25
+        spl_autoload_register( array( 'ComposerAutoloaderInit9b4e3e175e03285e60ba6309cc2e3477', 'loadClassLoader' ), true, true );
26
+        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+        spl_autoload_unregister( array( 'ComposerAutoloaderInit9b4e3e175e03285e60ba6309cc2e3477', 'loadClassLoader' ) );
28
+
29
+        $useStaticLoader = PHP_VERSION_ID >= 50600 && ! defined( 'HHVM_VERSION' ) && ( ! function_exists( 'zend_loader_file_encoded' ) || ! zend_loader_file_encoded() );
30
+        if ( $useStaticLoader ) {
31
+            require __DIR__ . '/autoload_static.php';
32
+
33
+            call_user_func( \Composer\Autoload\ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::getInitializer( $loader ) );
34
+        } else {
35
+            $map = require __DIR__ . '/autoload_namespaces.php';
36
+            foreach ( $map as $namespace => $path ) {
37
+                $loader->set( $namespace, $path );
38
+            }
39
+
40
+            $map = require __DIR__ . '/autoload_psr4.php';
41
+            foreach ( $map as $namespace => $path ) {
42
+                $loader->setPsr4( $namespace, $path );
43
+            }
44
+
45
+            $classMap = require __DIR__ . '/autoload_classmap.php';
46
+            if ( $classMap ) {
47
+                $loader->addClassMap( $classMap );
48
+            }
49
+        }
50
+
51
+        $loader->register( true );
52
+
53
+        return $loader;
54
+    }
55 55
 }
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
 
7 7
 	private static $loader;
8 8
 
9
-	public static function loadClassLoader( $class ) {
10
-		if ( 'Composer\Autoload\ClassLoader' === $class ) {
11
-			require __DIR__ . '/ClassLoader.php';
9
+	public static function loadClassLoader($class) {
10
+		if ('Composer\Autoload\ClassLoader' === $class) {
11
+			require __DIR__.'/ClassLoader.php';
12 12
 		}
13 13
 	}
14 14
 
@@ -16,39 +16,39 @@  discard block
 block discarded – undo
16 16
 	 * @return \Composer\Autoload\ClassLoader
17 17
 	 */
18 18
 	public static function getLoader() {
19
-		if ( null !== self::$loader ) {
19
+		if (null !== self::$loader) {
20 20
 			return self::$loader;
21 21
 		}
22 22
 
23
-		require __DIR__ . '/platform_check.php';
23
+		require __DIR__.'/platform_check.php';
24 24
 
25
-		spl_autoload_register( array( 'ComposerAutoloaderInit9b4e3e175e03285e60ba6309cc2e3477', 'loadClassLoader' ), true, true );
25
+		spl_autoload_register(array('ComposerAutoloaderInit9b4e3e175e03285e60ba6309cc2e3477', 'loadClassLoader'), true, true);
26 26
 		self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
-		spl_autoload_unregister( array( 'ComposerAutoloaderInit9b4e3e175e03285e60ba6309cc2e3477', 'loadClassLoader' ) );
27
+		spl_autoload_unregister(array('ComposerAutoloaderInit9b4e3e175e03285e60ba6309cc2e3477', 'loadClassLoader'));
28 28
 
29
-		$useStaticLoader = PHP_VERSION_ID >= 50600 && ! defined( 'HHVM_VERSION' ) && ( ! function_exists( 'zend_loader_file_encoded' ) || ! zend_loader_file_encoded() );
30
-		if ( $useStaticLoader ) {
31
-			require __DIR__ . '/autoload_static.php';
29
+		$useStaticLoader = PHP_VERSION_ID >= 50600 && ! defined('HHVM_VERSION') && ( ! function_exists('zend_loader_file_encoded') || ! zend_loader_file_encoded());
30
+		if ($useStaticLoader) {
31
+			require __DIR__.'/autoload_static.php';
32 32
 
33
-			call_user_func( \Composer\Autoload\ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::getInitializer( $loader ) );
33
+			call_user_func(\Composer\Autoload\ComposerStaticInit9b4e3e175e03285e60ba6309cc2e3477::getInitializer($loader));
34 34
 		} else {
35
-			$map = require __DIR__ . '/autoload_namespaces.php';
36
-			foreach ( $map as $namespace => $path ) {
37
-				$loader->set( $namespace, $path );
35
+			$map = require __DIR__.'/autoload_namespaces.php';
36
+			foreach ($map as $namespace => $path) {
37
+				$loader->set($namespace, $path);
38 38
 			}
39 39
 
40
-			$map = require __DIR__ . '/autoload_psr4.php';
41
-			foreach ( $map as $namespace => $path ) {
42
-				$loader->setPsr4( $namespace, $path );
40
+			$map = require __DIR__.'/autoload_psr4.php';
41
+			foreach ($map as $namespace => $path) {
42
+				$loader->setPsr4($namespace, $path);
43 43
 			}
44 44
 
45
-			$classMap = require __DIR__ . '/autoload_classmap.php';
46
-			if ( $classMap ) {
47
-				$loader->addClassMap( $classMap );
45
+			$classMap = require __DIR__.'/autoload_classmap.php';
46
+			if ($classMap) {
47
+				$loader->addClassMap($classMap);
48 48
 			}
49 49
 		}
50 50
 
51
-		$loader->register( true );
51
+		$loader->register(true);
52 52
 
53 53
 		return $loader;
54 54
 	}
Please login to merge, or discard this patch.
src/modules/acf4so/load.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -15,42 +15,42 @@
 block discarded – undo
15 15
 use Wordlift\Modules\Common\Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
16 16
 
17 17
 if ( ! defined( 'ABSPATH' ) ) {
18
-	exit;
18
+    exit;
19 19
 }
20 20
 
21 21
 define( 'WL_ACF4SO_DIR_NAME', __DIR__ );
22 22
 
23 23
 function __wl_acf4so_load() {
24
-	// Autoloader for plugin itself.
25
-	if ( file_exists( WL_ACF4SO_DIR_NAME . '/vendor/autoload.php' ) ) {
26
-		require WL_ACF4SO_DIR_NAME . '/vendor/autoload.php';
27
-	}
28
-
29
-	if ( ! file_exists( ABSPATH . 'wp-admin/includes/plugin-install.php' ) ||
30
-		  ! file_exists( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ) ) {
31
-		return;
32
-	}
33
-
34
-	require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
35
-	require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
36
-
37
-	$container_builder = new ContainerBuilder();
38
-	$loader            = new YamlFileLoader( $container_builder, new FileLocator( __DIR__ ) );
39
-	$loader->load( 'services.yml' );
40
-
41
-	$container_builder->compile();
42
-
43
-	/**
44
-	 * @var $installer \Wordlift\Modules\Acf4so\Installer
45
-	 */
46
-	$installer = $container_builder->get( Installer::class );
47
-	$installer->register_hooks();
48
-
49
-	/**
50
-	 * @var $notices \Wordlift\Modules\Acf4so\Notices
51
-	 */
52
-	$notices = $container_builder->get( Notices::class );
53
-	$notices->register_hooks();
24
+    // Autoloader for plugin itself.
25
+    if ( file_exists( WL_ACF4SO_DIR_NAME . '/vendor/autoload.php' ) ) {
26
+        require WL_ACF4SO_DIR_NAME . '/vendor/autoload.php';
27
+    }
28
+
29
+    if ( ! file_exists( ABSPATH . 'wp-admin/includes/plugin-install.php' ) ||
30
+          ! file_exists( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ) ) {
31
+        return;
32
+    }
33
+
34
+    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
35
+    require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
36
+
37
+    $container_builder = new ContainerBuilder();
38
+    $loader            = new YamlFileLoader( $container_builder, new FileLocator( __DIR__ ) );
39
+    $loader->load( 'services.yml' );
40
+
41
+    $container_builder->compile();
42
+
43
+    /**
44
+     * @var $installer \Wordlift\Modules\Acf4so\Installer
45
+     */
46
+    $installer = $container_builder->get( Installer::class );
47
+    $installer->register_hooks();
48
+
49
+    /**
50
+     * @var $notices \Wordlift\Modules\Acf4so\Notices
51
+     */
52
+    $notices = $container_builder->get( Notices::class );
53
+    $notices->register_hooks();
54 54
 
55 55
 }
56 56
 
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -14,44 +14,44 @@
 block discarded – undo
14 14
 use Wordlift\Modules\Common\Symfony\Component\DependencyInjection\ContainerBuilder;
15 15
 use Wordlift\Modules\Common\Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
16 16
 
17
-if ( ! defined( 'ABSPATH' ) ) {
17
+if ( ! defined('ABSPATH')) {
18 18
 	exit;
19 19
 }
20 20
 
21
-define( 'WL_ACF4SO_DIR_NAME', __DIR__ );
21
+define('WL_ACF4SO_DIR_NAME', __DIR__);
22 22
 
23 23
 function __wl_acf4so_load() {
24 24
 	// Autoloader for plugin itself.
25
-	if ( file_exists( WL_ACF4SO_DIR_NAME . '/vendor/autoload.php' ) ) {
26
-		require WL_ACF4SO_DIR_NAME . '/vendor/autoload.php';
25
+	if (file_exists(WL_ACF4SO_DIR_NAME.'/vendor/autoload.php')) {
26
+		require WL_ACF4SO_DIR_NAME.'/vendor/autoload.php';
27 27
 	}
28 28
 
29
-	if ( ! file_exists( ABSPATH . 'wp-admin/includes/plugin-install.php' ) ||
30
-		  ! file_exists( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ) ) {
29
+	if ( ! file_exists(ABSPATH.'wp-admin/includes/plugin-install.php') ||
30
+		  ! file_exists(ABSPATH.'wp-admin/includes/class-wp-upgrader.php')) {
31 31
 		return;
32 32
 	}
33 33
 
34
-	require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
35
-	require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
34
+	require_once ABSPATH.'wp-admin/includes/plugin-install.php';
35
+	require_once ABSPATH.'wp-admin/includes/class-wp-upgrader.php';
36 36
 
37 37
 	$container_builder = new ContainerBuilder();
38
-	$loader            = new YamlFileLoader( $container_builder, new FileLocator( __DIR__ ) );
39
-	$loader->load( 'services.yml' );
38
+	$loader            = new YamlFileLoader($container_builder, new FileLocator(__DIR__));
39
+	$loader->load('services.yml');
40 40
 
41 41
 	$container_builder->compile();
42 42
 
43 43
 	/**
44 44
 	 * @var $installer \Wordlift\Modules\Acf4so\Installer
45 45
 	 */
46
-	$installer = $container_builder->get( Installer::class );
46
+	$installer = $container_builder->get(Installer::class);
47 47
 	$installer->register_hooks();
48 48
 
49 49
 	/**
50 50
 	 * @var $notices \Wordlift\Modules\Acf4so\Notices
51 51
 	 */
52
-	$notices = $container_builder->get( Notices::class );
52
+	$notices = $container_builder->get(Notices::class);
53 53
 	$notices->register_hooks();
54 54
 
55 55
 }
56 56
 
57
-add_action( 'plugins_loaded', '__wl_acf4so_load' );
57
+add_action('plugins_loaded', '__wl_acf4so_load');
Please login to merge, or discard this patch.
src/modules/food-kg/includes/polyfills/mbstring.php 2 patches
Indentation   +119 added lines, -119 removed lines patch added patch discarded remove patch
@@ -15,205 +15,205 @@
 block discarded – undo
15 15
 use Google\Web_Stories_Dependencies\Symfony\Polyfill\Mbstring as Google_Web_Stories_Mbstring;
16 16
 
17 17
 if ( ! function_exists( 'mb_convert_encoding' ) ) {
18
-	function mb_convert_encoding( $s, $to, $from = null ) {
19
-		return Google_Web_Stories_Mbstring\Mbstring::mb_convert_encoding( $s, $to, $from );
20
-	}
18
+    function mb_convert_encoding( $s, $to, $from = null ) {
19
+        return Google_Web_Stories_Mbstring\Mbstring::mb_convert_encoding( $s, $to, $from );
20
+    }
21 21
 }
22 22
 if ( ! function_exists( 'mb_decode_mimeheader' ) ) {
23
-	function mb_decode_mimeheader( $s ) {
24
-		return Google_Web_Stories_Mbstring\Mbstring::mb_decode_mimeheader( $s );
25
-	}
23
+    function mb_decode_mimeheader( $s ) {
24
+        return Google_Web_Stories_Mbstring\Mbstring::mb_decode_mimeheader( $s );
25
+    }
26 26
 }
27 27
 if ( ! function_exists( 'mb_encode_mimeheader' ) ) {
28
-	function mb_encode_mimeheader( $s, $charset = null, $transferEnc = null, $lf = null, $indent = null ) {
29
-		return Google_Web_Stories_Mbstring\Mbstring::mb_encode_mimeheader( $s, $charset, $transferEnc, $lf, $indent );
30
-	}
28
+    function mb_encode_mimeheader( $s, $charset = null, $transferEnc = null, $lf = null, $indent = null ) {
29
+        return Google_Web_Stories_Mbstring\Mbstring::mb_encode_mimeheader( $s, $charset, $transferEnc, $lf, $indent );
30
+    }
31 31
 }
32 32
 if ( ! function_exists( 'mb_decode_numericentity' ) ) {
33
-	function mb_decode_numericentity( $s, $convmap, $enc = null ) {
34
-		return Google_Web_Stories_Mbstring\Mbstring::mb_decode_numericentity( $s, $convmap, $enc );
35
-	}
33
+    function mb_decode_numericentity( $s, $convmap, $enc = null ) {
34
+        return Google_Web_Stories_Mbstring\Mbstring::mb_decode_numericentity( $s, $convmap, $enc );
35
+    }
36 36
 }
37 37
 if ( ! function_exists( 'mb_encode_numericentity' ) ) {
38
-	function mb_encode_numericentity( $s, $convmap, $enc = null, $is_hex = false ) {
39
-		return Google_Web_Stories_Mbstring\Mbstring::mb_encode_numericentity( $s, $convmap, $enc, $is_hex );
40
-	}
38
+    function mb_encode_numericentity( $s, $convmap, $enc = null, $is_hex = false ) {
39
+        return Google_Web_Stories_Mbstring\Mbstring::mb_encode_numericentity( $s, $convmap, $enc, $is_hex );
40
+    }
41 41
 }
42 42
 if ( ! function_exists( 'mb_convert_case' ) ) {
43
-	function mb_convert_case( $s, $mode, $enc = null ) {
44
-		return Google_Web_Stories_Mbstring\Mbstring::mb_convert_case( $s, $mode, $enc );
45
-	}
43
+    function mb_convert_case( $s, $mode, $enc = null ) {
44
+        return Google_Web_Stories_Mbstring\Mbstring::mb_convert_case( $s, $mode, $enc );
45
+    }
46 46
 }
47 47
 if ( ! function_exists( 'mb_internal_encoding' ) ) {
48
-	function mb_internal_encoding( $enc = null ) {
49
-		return Google_Web_Stories_Mbstring\Mbstring::mb_internal_encoding( $enc );
50
-	}
48
+    function mb_internal_encoding( $enc = null ) {
49
+        return Google_Web_Stories_Mbstring\Mbstring::mb_internal_encoding( $enc );
50
+    }
51 51
 }
52 52
 if ( ! function_exists( 'mb_language' ) ) {
53
-	function mb_language( $lang = null ) {
54
-		return Google_Web_Stories_Mbstring\Mbstring::mb_language( $lang );
55
-	}
53
+    function mb_language( $lang = null ) {
54
+        return Google_Web_Stories_Mbstring\Mbstring::mb_language( $lang );
55
+    }
56 56
 }
57 57
 if ( ! function_exists( 'mb_list_encodings' ) ) {
58
-	function mb_list_encodings() {
59
-		return Google_Web_Stories_Mbstring\Mbstring::mb_list_encodings();
60
-	}
58
+    function mb_list_encodings() {
59
+        return Google_Web_Stories_Mbstring\Mbstring::mb_list_encodings();
60
+    }
61 61
 }
62 62
 if ( ! function_exists( 'mb_encoding_aliases' ) ) {
63
-	function mb_encoding_aliases( $encoding ) {
64
-		return Google_Web_Stories_Mbstring\Mbstring::mb_encoding_aliases( $encoding );
65
-	}
63
+    function mb_encoding_aliases( $encoding ) {
64
+        return Google_Web_Stories_Mbstring\Mbstring::mb_encoding_aliases( $encoding );
65
+    }
66 66
 }
67 67
 if ( ! function_exists( 'mb_check_encoding' ) ) {
68
-	function mb_check_encoding( $var = null, $encoding = null ) {
69
-		return Google_Web_Stories_Mbstring\Mbstring::mb_check_encoding( $var, $encoding );
70
-	}
68
+    function mb_check_encoding( $var = null, $encoding = null ) {
69
+        return Google_Web_Stories_Mbstring\Mbstring::mb_check_encoding( $var, $encoding );
70
+    }
71 71
 }
72 72
 if ( ! function_exists( 'mb_detect_encoding' ) ) {
73
-	function mb_detect_encoding( $str, $encodingList = null, $strict = false ) {
74
-		return Google_Web_Stories_Mbstring\Mbstring::mb_detect_encoding( $str, $encodingList, $strict );
75
-	}
73
+    function mb_detect_encoding( $str, $encodingList = null, $strict = false ) {
74
+        return Google_Web_Stories_Mbstring\Mbstring::mb_detect_encoding( $str, $encodingList, $strict );
75
+    }
76 76
 }
77 77
 if ( ! function_exists( 'mb_detect_order' ) ) {
78
-	function mb_detect_order( $encodingList = null ) {
79
-		return Google_Web_Stories_Mbstring\Mbstring::mb_detect_order( $encodingList );
80
-	}
78
+    function mb_detect_order( $encodingList = null ) {
79
+        return Google_Web_Stories_Mbstring\Mbstring::mb_detect_order( $encodingList );
80
+    }
81 81
 }
82 82
 if ( ! function_exists( 'mb_parse_str' ) ) {
83
-	function mb_parse_str( $s, &$result = array() ) {
84
-		parse_str( $s, $result );
85
-	}
83
+    function mb_parse_str( $s, &$result = array() ) {
84
+        parse_str( $s, $result );
85
+    }
86 86
 }
87 87
 if ( ! function_exists( 'mb_strlen' ) ) {
88
-	function mb_strlen( $s, $enc = null ) {
89
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strlen( $s, $enc );
90
-	}
88
+    function mb_strlen( $s, $enc = null ) {
89
+        return Google_Web_Stories_Mbstring\Mbstring::mb_strlen( $s, $enc );
90
+    }
91 91
 }
92 92
 if ( ! function_exists( 'mb_strpos' ) ) {
93
-	function mb_strpos( $s, $needle, $offset = 0, $enc = null ) {
94
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strpos( $s, $needle, $offset, $enc );
95
-	}
93
+    function mb_strpos( $s, $needle, $offset = 0, $enc = null ) {
94
+        return Google_Web_Stories_Mbstring\Mbstring::mb_strpos( $s, $needle, $offset, $enc );
95
+    }
96 96
 }
97 97
 if ( ! function_exists( 'mb_strtolower' ) ) {
98
-	function mb_strtolower( $s, $enc = null ) {
99
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strtolower( $s, $enc );
100
-	}
98
+    function mb_strtolower( $s, $enc = null ) {
99
+        return Google_Web_Stories_Mbstring\Mbstring::mb_strtolower( $s, $enc );
100
+    }
101 101
 }
102 102
 if ( ! function_exists( 'mb_strtoupper' ) ) {
103
-	function mb_strtoupper( $s, $enc = null ) {
104
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strtoupper( $s, $enc );
105
-	}
103
+    function mb_strtoupper( $s, $enc = null ) {
104
+        return Google_Web_Stories_Mbstring\Mbstring::mb_strtoupper( $s, $enc );
105
+    }
106 106
 }
107 107
 if ( ! function_exists( 'mb_substitute_character' ) ) {
108
-	function mb_substitute_character( $char = null ) {
109
-		return Google_Web_Stories_Mbstring\Mbstring::mb_substitute_character( $char );
110
-	}
108
+    function mb_substitute_character( $char = null ) {
109
+        return Google_Web_Stories_Mbstring\Mbstring::mb_substitute_character( $char );
110
+    }
111 111
 }
112 112
 if ( ! function_exists( 'mb_substr' ) ) {
113
-	function mb_substr( $s, $start, $length = 2147483647, $enc = null ) {
114
-		return Google_Web_Stories_Mbstring\Mbstring::mb_substr( $s, $start, $length, $enc );
115
-	}
113
+    function mb_substr( $s, $start, $length = 2147483647, $enc = null ) {
114
+        return Google_Web_Stories_Mbstring\Mbstring::mb_substr( $s, $start, $length, $enc );
115
+    }
116 116
 }
117 117
 if ( ! function_exists( 'mb_stripos' ) ) {
118
-	function mb_stripos( $s, $needle, $offset = 0, $enc = null ) {
119
-		return Google_Web_Stories_Mbstring\Mbstring::mb_stripos( $s, $needle, $offset, $enc );
120
-	}
118
+    function mb_stripos( $s, $needle, $offset = 0, $enc = null ) {
119
+        return Google_Web_Stories_Mbstring\Mbstring::mb_stripos( $s, $needle, $offset, $enc );
120
+    }
121 121
 }
122 122
 if ( ! function_exists( 'mb_stristr' ) ) {
123
-	function mb_stristr( $s, $needle, $part = false, $enc = null ) {
124
-		return Google_Web_Stories_Mbstring\Mbstring::mb_stristr( $s, $needle, $part, $enc );
125
-	}
123
+    function mb_stristr( $s, $needle, $part = false, $enc = null ) {
124
+        return Google_Web_Stories_Mbstring\Mbstring::mb_stristr( $s, $needle, $part, $enc );
125
+    }
126 126
 }
127 127
 if ( ! function_exists( 'mb_strrchr' ) ) {
128
-	function mb_strrchr( $s, $needle, $part = false, $enc = null ) {
129
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strrchr( $s, $needle, $part, $enc );
130
-	}
128
+    function mb_strrchr( $s, $needle, $part = false, $enc = null ) {
129
+        return Google_Web_Stories_Mbstring\Mbstring::mb_strrchr( $s, $needle, $part, $enc );
130
+    }
131 131
 }
132 132
 if ( ! function_exists( 'mb_strrichr' ) ) {
133
-	function mb_strrichr( $s, $needle, $part = false, $enc = null ) {
134
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strrichr( $s, $needle, $part, $enc );
135
-	}
133
+    function mb_strrichr( $s, $needle, $part = false, $enc = null ) {
134
+        return Google_Web_Stories_Mbstring\Mbstring::mb_strrichr( $s, $needle, $part, $enc );
135
+    }
136 136
 }
137 137
 if ( ! function_exists( 'mb_strripos' ) ) {
138
-	function mb_strripos( $s, $needle, $offset = 0, $enc = null ) {
139
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strripos( $s, $needle, $offset, $enc );
140
-	}
138
+    function mb_strripos( $s, $needle, $offset = 0, $enc = null ) {
139
+        return Google_Web_Stories_Mbstring\Mbstring::mb_strripos( $s, $needle, $offset, $enc );
140
+    }
141 141
 }
142 142
 if ( ! function_exists( 'mb_strrpos' ) ) {
143
-	function mb_strrpos( $s, $needle, $offset = 0, $enc = null ) {
144
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strrpos( $s, $needle, $offset, $enc );
145
-	}
143
+    function mb_strrpos( $s, $needle, $offset = 0, $enc = null ) {
144
+        return Google_Web_Stories_Mbstring\Mbstring::mb_strrpos( $s, $needle, $offset, $enc );
145
+    }
146 146
 }
147 147
 if ( ! function_exists( 'mb_strstr' ) ) {
148
-	function mb_strstr( $s, $needle, $part = false, $enc = null ) {
149
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strstr( $s, $needle, $part, $enc );
150
-	}
148
+    function mb_strstr( $s, $needle, $part = false, $enc = null ) {
149
+        return Google_Web_Stories_Mbstring\Mbstring::mb_strstr( $s, $needle, $part, $enc );
150
+    }
151 151
 }
152 152
 if ( ! function_exists( 'mb_get_info' ) ) {
153
-	function mb_get_info( $type = 'all' ) {
154
-		return Google_Web_Stories_Mbstring\Mbstring::mb_get_info( $type );
155
-	}
153
+    function mb_get_info( $type = 'all' ) {
154
+        return Google_Web_Stories_Mbstring\Mbstring::mb_get_info( $type );
155
+    }
156 156
 }
157 157
 if ( ! function_exists( 'mb_http_output' ) ) {
158
-	function mb_http_output( $enc = null ) {
159
-		return Google_Web_Stories_Mbstring\Mbstring::mb_http_output( $enc );
160
-	}
158
+    function mb_http_output( $enc = null ) {
159
+        return Google_Web_Stories_Mbstring\Mbstring::mb_http_output( $enc );
160
+    }
161 161
 }
162 162
 if ( ! function_exists( 'mb_strwidth' ) ) {
163
-	function mb_strwidth( $s, $enc = null ) {
164
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strwidth( $s, $enc );
165
-	}
163
+    function mb_strwidth( $s, $enc = null ) {
164
+        return Google_Web_Stories_Mbstring\Mbstring::mb_strwidth( $s, $enc );
165
+    }
166 166
 }
167 167
 if ( ! function_exists( 'mb_substr_count' ) ) {
168
-	function mb_substr_count( $haystack, $needle, $enc = null ) {
169
-		return Google_Web_Stories_Mbstring\Mbstring::mb_substr_count( $haystack, $needle, $enc );
170
-	}
168
+    function mb_substr_count( $haystack, $needle, $enc = null ) {
169
+        return Google_Web_Stories_Mbstring\Mbstring::mb_substr_count( $haystack, $needle, $enc );
170
+    }
171 171
 }
172 172
 if ( ! function_exists( 'mb_output_handler' ) ) {
173
-	function mb_output_handler( $contents, $status ) {
174
-		return Google_Web_Stories_Mbstring\Mbstring::mb_output_handler( $contents, $status );
175
-	}
173
+    function mb_output_handler( $contents, $status ) {
174
+        return Google_Web_Stories_Mbstring\Mbstring::mb_output_handler( $contents, $status );
175
+    }
176 176
 }
177 177
 if ( ! function_exists( 'mb_http_input' ) ) {
178
-	function mb_http_input( $type = '' ) {
179
-		return Google_Web_Stories_Mbstring\Mbstring::mb_http_input( $type );
180
-	}
178
+    function mb_http_input( $type = '' ) {
179
+        return Google_Web_Stories_Mbstring\Mbstring::mb_http_input( $type );
180
+    }
181 181
 }
182 182
 if ( ! function_exists( 'mb_convert_variables' ) ) {
183
-	function mb_convert_variables( $toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null ) {
184
-		return Google_Web_Stories_Mbstring\Mbstring::mb_convert_variables( $toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f );
185
-	}
183
+    function mb_convert_variables( $toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null ) {
184
+        return Google_Web_Stories_Mbstring\Mbstring::mb_convert_variables( $toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f );
185
+    }
186 186
 }
187 187
 if ( ! function_exists( 'mb_ord' ) ) {
188
-	function mb_ord( $s, $enc = null ) {
189
-		return Google_Web_Stories_Mbstring\Mbstring::mb_ord( $s, $enc );
190
-	}
188
+    function mb_ord( $s, $enc = null ) {
189
+        return Google_Web_Stories_Mbstring\Mbstring::mb_ord( $s, $enc );
190
+    }
191 191
 }
192 192
 if ( ! function_exists( 'mb_chr' ) ) {
193
-	function mb_chr( $code, $enc = null ) {
194
-		return Google_Web_Stories_Mbstring\Mbstring::mb_chr( $code, $enc );
195
-	}
193
+    function mb_chr( $code, $enc = null ) {
194
+        return Google_Web_Stories_Mbstring\Mbstring::mb_chr( $code, $enc );
195
+    }
196 196
 }
197 197
 if ( ! function_exists( 'mb_scrub' ) ) {
198
-	function mb_scrub( $s, $enc = null ) {
199
-		$enc = $enc ?? mb_internal_encoding();
200
-		return mb_convert_encoding( $s, $enc, $enc );
201
-	}
198
+    function mb_scrub( $s, $enc = null ) {
199
+        $enc = $enc ?? mb_internal_encoding();
200
+        return mb_convert_encoding( $s, $enc, $enc );
201
+    }
202 202
 }
203 203
 if ( ! function_exists( 'mb_str_split' ) ) {
204
-	function mb_str_split( $string, $split_length = 1, $encoding = null ) {
205
-		return Google_Web_Stories_Mbstring\Mbstring::mb_str_split( $string, $split_length, $encoding );
206
-	}
204
+    function mb_str_split( $string, $split_length = 1, $encoding = null ) {
205
+        return Google_Web_Stories_Mbstring\Mbstring::mb_str_split( $string, $split_length, $encoding );
206
+    }
207 207
 }
208 208
 if ( extension_loaded( 'mbstring' ) ) {
209
-	return;
209
+    return;
210 210
 }
211 211
 if ( ! defined( 'MB_CASE_UPPER' ) ) {
212
-	define( 'MB_CASE_UPPER', 0 );
212
+    define( 'MB_CASE_UPPER', 0 );
213 213
 }
214 214
 if ( ! defined( 'MB_CASE_LOWER' ) ) {
215
-	define( 'MB_CASE_LOWER', 1 );
215
+    define( 'MB_CASE_LOWER', 1 );
216 216
 }
217 217
 if ( ! defined( 'MB_CASE_TITLE' ) ) {
218
-	define( 'MB_CASE_TITLE', 2 );
218
+    define( 'MB_CASE_TITLE', 2 );
219 219
 }
Please login to merge, or discard this patch.
Spacing   +119 added lines, -119 removed lines patch added patch discarded remove patch
@@ -14,206 +14,206 @@
 block discarded – undo
14 14
 
15 15
 use Google\Web_Stories_Dependencies\Symfony\Polyfill\Mbstring as Google_Web_Stories_Mbstring;
16 16
 
17
-if ( ! function_exists( 'mb_convert_encoding' ) ) {
18
-	function mb_convert_encoding( $s, $to, $from = null ) {
19
-		return Google_Web_Stories_Mbstring\Mbstring::mb_convert_encoding( $s, $to, $from );
17
+if ( ! function_exists('mb_convert_encoding')) {
18
+	function mb_convert_encoding($s, $to, $from = null) {
19
+		return Google_Web_Stories_Mbstring\Mbstring::mb_convert_encoding($s, $to, $from);
20 20
 	}
21 21
 }
22
-if ( ! function_exists( 'mb_decode_mimeheader' ) ) {
23
-	function mb_decode_mimeheader( $s ) {
24
-		return Google_Web_Stories_Mbstring\Mbstring::mb_decode_mimeheader( $s );
22
+if ( ! function_exists('mb_decode_mimeheader')) {
23
+	function mb_decode_mimeheader($s) {
24
+		return Google_Web_Stories_Mbstring\Mbstring::mb_decode_mimeheader($s);
25 25
 	}
26 26
 }
27
-if ( ! function_exists( 'mb_encode_mimeheader' ) ) {
28
-	function mb_encode_mimeheader( $s, $charset = null, $transferEnc = null, $lf = null, $indent = null ) {
29
-		return Google_Web_Stories_Mbstring\Mbstring::mb_encode_mimeheader( $s, $charset, $transferEnc, $lf, $indent );
27
+if ( ! function_exists('mb_encode_mimeheader')) {
28
+	function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) {
29
+		return Google_Web_Stories_Mbstring\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent);
30 30
 	}
31 31
 }
32
-if ( ! function_exists( 'mb_decode_numericentity' ) ) {
33
-	function mb_decode_numericentity( $s, $convmap, $enc = null ) {
34
-		return Google_Web_Stories_Mbstring\Mbstring::mb_decode_numericentity( $s, $convmap, $enc );
32
+if ( ! function_exists('mb_decode_numericentity')) {
33
+	function mb_decode_numericentity($s, $convmap, $enc = null) {
34
+		return Google_Web_Stories_Mbstring\Mbstring::mb_decode_numericentity($s, $convmap, $enc);
35 35
 	}
36 36
 }
37
-if ( ! function_exists( 'mb_encode_numericentity' ) ) {
38
-	function mb_encode_numericentity( $s, $convmap, $enc = null, $is_hex = false ) {
39
-		return Google_Web_Stories_Mbstring\Mbstring::mb_encode_numericentity( $s, $convmap, $enc, $is_hex );
37
+if ( ! function_exists('mb_encode_numericentity')) {
38
+	function mb_encode_numericentity($s, $convmap, $enc = null, $is_hex = false) {
39
+		return Google_Web_Stories_Mbstring\Mbstring::mb_encode_numericentity($s, $convmap, $enc, $is_hex);
40 40
 	}
41 41
 }
42
-if ( ! function_exists( 'mb_convert_case' ) ) {
43
-	function mb_convert_case( $s, $mode, $enc = null ) {
44
-		return Google_Web_Stories_Mbstring\Mbstring::mb_convert_case( $s, $mode, $enc );
42
+if ( ! function_exists('mb_convert_case')) {
43
+	function mb_convert_case($s, $mode, $enc = null) {
44
+		return Google_Web_Stories_Mbstring\Mbstring::mb_convert_case($s, $mode, $enc);
45 45
 	}
46 46
 }
47
-if ( ! function_exists( 'mb_internal_encoding' ) ) {
48
-	function mb_internal_encoding( $enc = null ) {
49
-		return Google_Web_Stories_Mbstring\Mbstring::mb_internal_encoding( $enc );
47
+if ( ! function_exists('mb_internal_encoding')) {
48
+	function mb_internal_encoding($enc = null) {
49
+		return Google_Web_Stories_Mbstring\Mbstring::mb_internal_encoding($enc);
50 50
 	}
51 51
 }
52
-if ( ! function_exists( 'mb_language' ) ) {
53
-	function mb_language( $lang = null ) {
54
-		return Google_Web_Stories_Mbstring\Mbstring::mb_language( $lang );
52
+if ( ! function_exists('mb_language')) {
53
+	function mb_language($lang = null) {
54
+		return Google_Web_Stories_Mbstring\Mbstring::mb_language($lang);
55 55
 	}
56 56
 }
57
-if ( ! function_exists( 'mb_list_encodings' ) ) {
57
+if ( ! function_exists('mb_list_encodings')) {
58 58
 	function mb_list_encodings() {
59 59
 		return Google_Web_Stories_Mbstring\Mbstring::mb_list_encodings();
60 60
 	}
61 61
 }
62
-if ( ! function_exists( 'mb_encoding_aliases' ) ) {
63
-	function mb_encoding_aliases( $encoding ) {
64
-		return Google_Web_Stories_Mbstring\Mbstring::mb_encoding_aliases( $encoding );
62
+if ( ! function_exists('mb_encoding_aliases')) {
63
+	function mb_encoding_aliases($encoding) {
64
+		return Google_Web_Stories_Mbstring\Mbstring::mb_encoding_aliases($encoding);
65 65
 	}
66 66
 }
67
-if ( ! function_exists( 'mb_check_encoding' ) ) {
68
-	function mb_check_encoding( $var = null, $encoding = null ) {
69
-		return Google_Web_Stories_Mbstring\Mbstring::mb_check_encoding( $var, $encoding );
67
+if ( ! function_exists('mb_check_encoding')) {
68
+	function mb_check_encoding($var = null, $encoding = null) {
69
+		return Google_Web_Stories_Mbstring\Mbstring::mb_check_encoding($var, $encoding);
70 70
 	}
71 71
 }
72
-if ( ! function_exists( 'mb_detect_encoding' ) ) {
73
-	function mb_detect_encoding( $str, $encodingList = null, $strict = false ) {
74
-		return Google_Web_Stories_Mbstring\Mbstring::mb_detect_encoding( $str, $encodingList, $strict );
72
+if ( ! function_exists('mb_detect_encoding')) {
73
+	function mb_detect_encoding($str, $encodingList = null, $strict = false) {
74
+		return Google_Web_Stories_Mbstring\Mbstring::mb_detect_encoding($str, $encodingList, $strict);
75 75
 	}
76 76
 }
77
-if ( ! function_exists( 'mb_detect_order' ) ) {
78
-	function mb_detect_order( $encodingList = null ) {
79
-		return Google_Web_Stories_Mbstring\Mbstring::mb_detect_order( $encodingList );
77
+if ( ! function_exists('mb_detect_order')) {
78
+	function mb_detect_order($encodingList = null) {
79
+		return Google_Web_Stories_Mbstring\Mbstring::mb_detect_order($encodingList);
80 80
 	}
81 81
 }
82
-if ( ! function_exists( 'mb_parse_str' ) ) {
83
-	function mb_parse_str( $s, &$result = array() ) {
84
-		parse_str( $s, $result );
82
+if ( ! function_exists('mb_parse_str')) {
83
+	function mb_parse_str($s, &$result = array()) {
84
+		parse_str($s, $result);
85 85
 	}
86 86
 }
87
-if ( ! function_exists( 'mb_strlen' ) ) {
88
-	function mb_strlen( $s, $enc = null ) {
89
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strlen( $s, $enc );
87
+if ( ! function_exists('mb_strlen')) {
88
+	function mb_strlen($s, $enc = null) {
89
+		return Google_Web_Stories_Mbstring\Mbstring::mb_strlen($s, $enc);
90 90
 	}
91 91
 }
92
-if ( ! function_exists( 'mb_strpos' ) ) {
93
-	function mb_strpos( $s, $needle, $offset = 0, $enc = null ) {
94
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strpos( $s, $needle, $offset, $enc );
92
+if ( ! function_exists('mb_strpos')) {
93
+	function mb_strpos($s, $needle, $offset = 0, $enc = null) {
94
+		return Google_Web_Stories_Mbstring\Mbstring::mb_strpos($s, $needle, $offset, $enc);
95 95
 	}
96 96
 }
97
-if ( ! function_exists( 'mb_strtolower' ) ) {
98
-	function mb_strtolower( $s, $enc = null ) {
99
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strtolower( $s, $enc );
97
+if ( ! function_exists('mb_strtolower')) {
98
+	function mb_strtolower($s, $enc = null) {
99
+		return Google_Web_Stories_Mbstring\Mbstring::mb_strtolower($s, $enc);
100 100
 	}
101 101
 }
102
-if ( ! function_exists( 'mb_strtoupper' ) ) {
103
-	function mb_strtoupper( $s, $enc = null ) {
104
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strtoupper( $s, $enc );
102
+if ( ! function_exists('mb_strtoupper')) {
103
+	function mb_strtoupper($s, $enc = null) {
104
+		return Google_Web_Stories_Mbstring\Mbstring::mb_strtoupper($s, $enc);
105 105
 	}
106 106
 }
107
-if ( ! function_exists( 'mb_substitute_character' ) ) {
108
-	function mb_substitute_character( $char = null ) {
109
-		return Google_Web_Stories_Mbstring\Mbstring::mb_substitute_character( $char );
107
+if ( ! function_exists('mb_substitute_character')) {
108
+	function mb_substitute_character($char = null) {
109
+		return Google_Web_Stories_Mbstring\Mbstring::mb_substitute_character($char);
110 110
 	}
111 111
 }
112
-if ( ! function_exists( 'mb_substr' ) ) {
113
-	function mb_substr( $s, $start, $length = 2147483647, $enc = null ) {
114
-		return Google_Web_Stories_Mbstring\Mbstring::mb_substr( $s, $start, $length, $enc );
112
+if ( ! function_exists('mb_substr')) {
113
+	function mb_substr($s, $start, $length = 2147483647, $enc = null) {
114
+		return Google_Web_Stories_Mbstring\Mbstring::mb_substr($s, $start, $length, $enc);
115 115
 	}
116 116
 }
117
-if ( ! function_exists( 'mb_stripos' ) ) {
118
-	function mb_stripos( $s, $needle, $offset = 0, $enc = null ) {
119
-		return Google_Web_Stories_Mbstring\Mbstring::mb_stripos( $s, $needle, $offset, $enc );
117
+if ( ! function_exists('mb_stripos')) {
118
+	function mb_stripos($s, $needle, $offset = 0, $enc = null) {
119
+		return Google_Web_Stories_Mbstring\Mbstring::mb_stripos($s, $needle, $offset, $enc);
120 120
 	}
121 121
 }
122
-if ( ! function_exists( 'mb_stristr' ) ) {
123
-	function mb_stristr( $s, $needle, $part = false, $enc = null ) {
124
-		return Google_Web_Stories_Mbstring\Mbstring::mb_stristr( $s, $needle, $part, $enc );
122
+if ( ! function_exists('mb_stristr')) {
123
+	function mb_stristr($s, $needle, $part = false, $enc = null) {
124
+		return Google_Web_Stories_Mbstring\Mbstring::mb_stristr($s, $needle, $part, $enc);
125 125
 	}
126 126
 }
127
-if ( ! function_exists( 'mb_strrchr' ) ) {
128
-	function mb_strrchr( $s, $needle, $part = false, $enc = null ) {
129
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strrchr( $s, $needle, $part, $enc );
127
+if ( ! function_exists('mb_strrchr')) {
128
+	function mb_strrchr($s, $needle, $part = false, $enc = null) {
129
+		return Google_Web_Stories_Mbstring\Mbstring::mb_strrchr($s, $needle, $part, $enc);
130 130
 	}
131 131
 }
132
-if ( ! function_exists( 'mb_strrichr' ) ) {
133
-	function mb_strrichr( $s, $needle, $part = false, $enc = null ) {
134
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strrichr( $s, $needle, $part, $enc );
132
+if ( ! function_exists('mb_strrichr')) {
133
+	function mb_strrichr($s, $needle, $part = false, $enc = null) {
134
+		return Google_Web_Stories_Mbstring\Mbstring::mb_strrichr($s, $needle, $part, $enc);
135 135
 	}
136 136
 }
137
-if ( ! function_exists( 'mb_strripos' ) ) {
138
-	function mb_strripos( $s, $needle, $offset = 0, $enc = null ) {
139
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strripos( $s, $needle, $offset, $enc );
137
+if ( ! function_exists('mb_strripos')) {
138
+	function mb_strripos($s, $needle, $offset = 0, $enc = null) {
139
+		return Google_Web_Stories_Mbstring\Mbstring::mb_strripos($s, $needle, $offset, $enc);
140 140
 	}
141 141
 }
142
-if ( ! function_exists( 'mb_strrpos' ) ) {
143
-	function mb_strrpos( $s, $needle, $offset = 0, $enc = null ) {
144
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strrpos( $s, $needle, $offset, $enc );
142
+if ( ! function_exists('mb_strrpos')) {
143
+	function mb_strrpos($s, $needle, $offset = 0, $enc = null) {
144
+		return Google_Web_Stories_Mbstring\Mbstring::mb_strrpos($s, $needle, $offset, $enc);
145 145
 	}
146 146
 }
147
-if ( ! function_exists( 'mb_strstr' ) ) {
148
-	function mb_strstr( $s, $needle, $part = false, $enc = null ) {
149
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strstr( $s, $needle, $part, $enc );
147
+if ( ! function_exists('mb_strstr')) {
148
+	function mb_strstr($s, $needle, $part = false, $enc = null) {
149
+		return Google_Web_Stories_Mbstring\Mbstring::mb_strstr($s, $needle, $part, $enc);
150 150
 	}
151 151
 }
152
-if ( ! function_exists( 'mb_get_info' ) ) {
153
-	function mb_get_info( $type = 'all' ) {
154
-		return Google_Web_Stories_Mbstring\Mbstring::mb_get_info( $type );
152
+if ( ! function_exists('mb_get_info')) {
153
+	function mb_get_info($type = 'all') {
154
+		return Google_Web_Stories_Mbstring\Mbstring::mb_get_info($type);
155 155
 	}
156 156
 }
157
-if ( ! function_exists( 'mb_http_output' ) ) {
158
-	function mb_http_output( $enc = null ) {
159
-		return Google_Web_Stories_Mbstring\Mbstring::mb_http_output( $enc );
157
+if ( ! function_exists('mb_http_output')) {
158
+	function mb_http_output($enc = null) {
159
+		return Google_Web_Stories_Mbstring\Mbstring::mb_http_output($enc);
160 160
 	}
161 161
 }
162
-if ( ! function_exists( 'mb_strwidth' ) ) {
163
-	function mb_strwidth( $s, $enc = null ) {
164
-		return Google_Web_Stories_Mbstring\Mbstring::mb_strwidth( $s, $enc );
162
+if ( ! function_exists('mb_strwidth')) {
163
+	function mb_strwidth($s, $enc = null) {
164
+		return Google_Web_Stories_Mbstring\Mbstring::mb_strwidth($s, $enc);
165 165
 	}
166 166
 }
167
-if ( ! function_exists( 'mb_substr_count' ) ) {
168
-	function mb_substr_count( $haystack, $needle, $enc = null ) {
169
-		return Google_Web_Stories_Mbstring\Mbstring::mb_substr_count( $haystack, $needle, $enc );
167
+if ( ! function_exists('mb_substr_count')) {
168
+	function mb_substr_count($haystack, $needle, $enc = null) {
169
+		return Google_Web_Stories_Mbstring\Mbstring::mb_substr_count($haystack, $needle, $enc);
170 170
 	}
171 171
 }
172
-if ( ! function_exists( 'mb_output_handler' ) ) {
173
-	function mb_output_handler( $contents, $status ) {
174
-		return Google_Web_Stories_Mbstring\Mbstring::mb_output_handler( $contents, $status );
172
+if ( ! function_exists('mb_output_handler')) {
173
+	function mb_output_handler($contents, $status) {
174
+		return Google_Web_Stories_Mbstring\Mbstring::mb_output_handler($contents, $status);
175 175
 	}
176 176
 }
177
-if ( ! function_exists( 'mb_http_input' ) ) {
178
-	function mb_http_input( $type = '' ) {
179
-		return Google_Web_Stories_Mbstring\Mbstring::mb_http_input( $type );
177
+if ( ! function_exists('mb_http_input')) {
178
+	function mb_http_input($type = '') {
179
+		return Google_Web_Stories_Mbstring\Mbstring::mb_http_input($type);
180 180
 	}
181 181
 }
182
-if ( ! function_exists( 'mb_convert_variables' ) ) {
183
-	function mb_convert_variables( $toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null ) {
184
-		return Google_Web_Stories_Mbstring\Mbstring::mb_convert_variables( $toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f );
182
+if ( ! function_exists('mb_convert_variables')) {
183
+	function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) {
184
+		return Google_Web_Stories_Mbstring\Mbstring::mb_convert_variables($toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f);
185 185
 	}
186 186
 }
187
-if ( ! function_exists( 'mb_ord' ) ) {
188
-	function mb_ord( $s, $enc = null ) {
189
-		return Google_Web_Stories_Mbstring\Mbstring::mb_ord( $s, $enc );
187
+if ( ! function_exists('mb_ord')) {
188
+	function mb_ord($s, $enc = null) {
189
+		return Google_Web_Stories_Mbstring\Mbstring::mb_ord($s, $enc);
190 190
 	}
191 191
 }
192
-if ( ! function_exists( 'mb_chr' ) ) {
193
-	function mb_chr( $code, $enc = null ) {
194
-		return Google_Web_Stories_Mbstring\Mbstring::mb_chr( $code, $enc );
192
+if ( ! function_exists('mb_chr')) {
193
+	function mb_chr($code, $enc = null) {
194
+		return Google_Web_Stories_Mbstring\Mbstring::mb_chr($code, $enc);
195 195
 	}
196 196
 }
197
-if ( ! function_exists( 'mb_scrub' ) ) {
198
-	function mb_scrub( $s, $enc = null ) {
197
+if ( ! function_exists('mb_scrub')) {
198
+	function mb_scrub($s, $enc = null) {
199 199
 		$enc = $enc ?? mb_internal_encoding();
200
-		return mb_convert_encoding( $s, $enc, $enc );
200
+		return mb_convert_encoding($s, $enc, $enc);
201 201
 	}
202 202
 }
203
-if ( ! function_exists( 'mb_str_split' ) ) {
204
-	function mb_str_split( $string, $split_length = 1, $encoding = null ) {
205
-		return Google_Web_Stories_Mbstring\Mbstring::mb_str_split( $string, $split_length, $encoding );
203
+if ( ! function_exists('mb_str_split')) {
204
+	function mb_str_split($string, $split_length = 1, $encoding = null) {
205
+		return Google_Web_Stories_Mbstring\Mbstring::mb_str_split($string, $split_length, $encoding);
206 206
 	}
207 207
 }
208
-if ( extension_loaded( 'mbstring' ) ) {
208
+if (extension_loaded('mbstring')) {
209 209
 	return;
210 210
 }
211
-if ( ! defined( 'MB_CASE_UPPER' ) ) {
212
-	define( 'MB_CASE_UPPER', 0 );
211
+if ( ! defined('MB_CASE_UPPER')) {
212
+	define('MB_CASE_UPPER', 0);
213 213
 }
214
-if ( ! defined( 'MB_CASE_LOWER' ) ) {
215
-	define( 'MB_CASE_LOWER', 1 );
214
+if ( ! defined('MB_CASE_LOWER')) {
215
+	define('MB_CASE_LOWER', 1);
216 216
 }
217
-if ( ! defined( 'MB_CASE_TITLE' ) ) {
218
-	define( 'MB_CASE_TITLE', 2 );
217
+if ( ! defined('MB_CASE_TITLE')) {
218
+	define('MB_CASE_TITLE', 2);
219 219
 }
Please login to merge, or discard this patch.
src/modules/food-kg/includes/Ingredients_Client.php 2 patches
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -6,48 +6,48 @@
 block discarded – undo
6 6
 
7 7
 class Ingredients_Client {
8 8
 
9
-	/**
10
-	 * @var Api_Service
11
-	 */
12
-	private $api_service;
13
-
14
-	public function __construct( Api_Service $api_service ) {
15
-		$this->api_service = $api_service;
16
-	}
17
-
18
-	/**
19
-	 * @param string[] $names
20
-	 *
21
-	 * @return Ingredients
22
-	 */
23
-	public function ingredients( $names ) {
24
-
25
-		$request_body = implode( "\n", $names );
26
-		$response     = $this->api_service->request( 'POST', '/thirdparty/cafemedia/food-kg/ingredients', array( 'content-type' => 'text/plain' ), $request_body );
27
-
28
-		return Ingredients::create_from_string( $response->get_body() );
29
-	}
30
-
31
-	/**
32
-	 * Get the JSON-LD as string for the main ingredient or an empty string if not found.
33
-	 *
34
-	 * @param string $input
35
-	 *
36
-	 * @return string
37
-	 */
38
-	public function main_ingredient( $input ) {
39
-
40
-		$response = $this->api_service->request(
41
-			'POST',
42
-			'/thirdparty/cafemedia/food-kg/ingredients/main',
43
-			array(
44
-				'accept'       => 'application/ld+json',
45
-				'content-type' => 'text/plain',
46
-			),
47
-			$input
48
-		);
49
-
50
-		return $response->get_body();
51
-	}
9
+    /**
10
+     * @var Api_Service
11
+     */
12
+    private $api_service;
13
+
14
+    public function __construct( Api_Service $api_service ) {
15
+        $this->api_service = $api_service;
16
+    }
17
+
18
+    /**
19
+     * @param string[] $names
20
+     *
21
+     * @return Ingredients
22
+     */
23
+    public function ingredients( $names ) {
24
+
25
+        $request_body = implode( "\n", $names );
26
+        $response     = $this->api_service->request( 'POST', '/thirdparty/cafemedia/food-kg/ingredients', array( 'content-type' => 'text/plain' ), $request_body );
27
+
28
+        return Ingredients::create_from_string( $response->get_body() );
29
+    }
30
+
31
+    /**
32
+     * Get the JSON-LD as string for the main ingredient or an empty string if not found.
33
+     *
34
+     * @param string $input
35
+     *
36
+     * @return string
37
+     */
38
+    public function main_ingredient( $input ) {
39
+
40
+        $response = $this->api_service->request(
41
+            'POST',
42
+            '/thirdparty/cafemedia/food-kg/ingredients/main',
43
+            array(
44
+                'accept'       => 'application/ld+json',
45
+                'content-type' => 'text/plain',
46
+            ),
47
+            $input
48
+        );
49
+
50
+        return $response->get_body();
51
+    }
52 52
 
53 53
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 	 */
12 12
 	private $api_service;
13 13
 
14
-	public function __construct( Api_Service $api_service ) {
14
+	public function __construct(Api_Service $api_service) {
15 15
 		$this->api_service = $api_service;
16 16
 	}
17 17
 
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
 	 *
21 21
 	 * @return Ingredients
22 22
 	 */
23
-	public function ingredients( $names ) {
23
+	public function ingredients($names) {
24 24
 
25
-		$request_body = implode( "\n", $names );
26
-		$response     = $this->api_service->request( 'POST', '/thirdparty/cafemedia/food-kg/ingredients', array( 'content-type' => 'text/plain' ), $request_body );
25
+		$request_body = implode("\n", $names);
26
+		$response     = $this->api_service->request('POST', '/thirdparty/cafemedia/food-kg/ingredients', array('content-type' => 'text/plain'), $request_body);
27 27
 
28
-		return Ingredients::create_from_string( $response->get_body() );
28
+		return Ingredients::create_from_string($response->get_body());
29 29
 	}
30 30
 
31 31
 	/**
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 *
36 36
 	 * @return string
37 37
 	 */
38
-	public function main_ingredient( $input ) {
38
+	public function main_ingredient($input) {
39 39
 
40 40
 		$response = $this->api_service->request(
41 41
 			'POST',
Please login to merge, or discard this patch.