PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
← All changes | includes/sdk/google/bin/google-cloud-batch +17 -17 1.2.41.4.1 View file →
@@ -7,14 +7,14 @@
7 7 * using a stream wrapper to prevent the shebang from being output on PHP<8
8 8 *
9 9 * @generated
10 10 */
11 -namespace Dudlewebs\WPMCS\Composer;
11 +namespace Dudlewebs\WPMCS\GCP\Composer;
12 12
13 13 $GLOBALS['_composer_bin_dir'] = __DIR__;
14 14 $GLOBALS['_composer_autoload_path'] = __DIR__ . '/..' . '/autoload.php';
15 15 if (\PHP_VERSION_ID < 80000) {
16 - if (!class_exists('Dudlewebs\WPMCS\Composer\BinProxyWrapper')) {
16 + if (!\class_exists('Dudlewebs\\WPMCS\\GCP\\Composer\\BinProxyWrapper')) {
17 17 /**
18 18 * @internal
19 19 */
20 20 final class BinProxyWrapper
@@ -24,22 +24,22 @@
24 24 private $realpath;
25 25 public function stream_open($path, $mode, $options, &$opened_path)
26 26 {
27 27 // get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution
28 - $opened_path = substr($path, 17);
29 - $this->realpath = realpath($opened_path) ?: $opened_path;
28 + $opened_path = \substr($path, 17);
29 + $this->realpath = \realpath($opened_path) ?: $opened_path;
30 30 $opened_path = $this->realpath;
31 - $this->handle = fopen($this->realpath, $mode);
31 + $this->handle = \fopen($this->realpath, $mode);
32 32 $this->position = 0;
33 33 return (bool) $this->handle;
34 34 }
35 35 public function stream_read($count)
36 36 {
37 - $data = fread($this->handle, $count);
37 + $data = \fread($this->handle, $count);
38 38 if ($this->position === 0) {
39 - $data = preg_replace('{^#!.*\r?\n}', '', $data);
39 + $data = \preg_replace('{^#!.*\\r?\\n}', '', $data);
40 40 }
41 - $this->position += strlen($data);
41 + $this->position += \strlen($data);
42 42 return $data;
43 43 }
44 44 public function stream_cast($castAs)
45 45 {
@@ -46,18 +46,18 @@
46 46 return $this->handle;
47 47 }
48 48 public function stream_close()
49 49 {
50 - fclose($this->handle);
50 + \fclose($this->handle);
51 51 }
52 52 public function stream_lock($operation)
53 53 {
54 - return $operation ? flock($this->handle, $operation) : \true;
54 + return $operation ? \flock($this->handle, $operation) : \true;
55 55 }
56 56 public function stream_seek($offset, $whence)
57 57 {
58 - if (0 === fseek($this->handle, $offset, $whence)) {
59 - $this->position = ftell($this->handle);
58 + if (0 === \fseek($this->handle, $offset, $whence)) {
59 + $this->position = \ftell($this->handle);
60 60 return \true;
61 61 }
62 62 return \false;
63 63 }
@@ -66,9 +66,9 @@
66 66 return $this->position;
67 67 }
68 68 public function stream_eof()
69 69 {
70 - return feof($this->handle);
70 + return \feof($this->handle);
71 71 }
72 72 public function stream_stat()
73 73 {
74 74 return array();
@@ -78,17 +78,17 @@
78 78 return \true;
79 79 }
80 80 public function url_stat($path, $flags)
81 81 {
82 - $path = substr($path, 17);
83 - if (file_exists($path)) {
84 - return stat($path);
82 + $path = \substr($path, 17);
83 + if (\file_exists($path)) {
84 + return \stat($path);
85 85 }
86 86 return \false;
87 87 }
88 88 }
89 89 }
90 - if (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), \true) || function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Dudlewebs\WPMCS\Composer\BinProxyWrapper')) {
90 + if (\function_exists('stream_get_wrappers') && \in_array('phpvfscomposer', \stream_get_wrappers(), \true) || \function_exists('stream_wrapper_register') && \stream_wrapper_register('phpvfscomposer', 'Dudlewebs\\WPMCS\\GCP\\Composer\\BinProxyWrapper')) {
91 91 return include "phpvfscomposer://" . __DIR__ . '/..' . '/google/cloud-core/bin/google-cloud-batch';
92 92 }
93 93 }
94 94 return include __DIR__ . '/..' . '/google/cloud-core/bin/google-cloud-batch';