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/composer/platform_check.php +12 -16 1.2.91.4.1 View file →
@@ -1,26 +1,22 @@
1 1 <?php
2 2
3 +namespace Dudlewebs\WPMCS\GCP;
4 +
3 5 // platform_check.php @generated by Composer
4 -
5 6 $issues = array();
6 -
7 -if (!(PHP_VERSION_ID >= 70400)) {
8 - $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
7 +if (!(\PHP_VERSION_ID >= 80100)) {
8 + $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . \PHP_VERSION . '.';
9 9 }
10 -
11 10 if ($issues) {
12 - if (!headers_sent()) {
13 - header('HTTP/1.1 500 Internal Server Error');
11 + if (!\headers_sent()) {
12 + \header('HTTP/1.1 500 Internal Server Error');
14 13 }
15 - if (!ini_get('display_errors')) {
16 - if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
17 - fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
18 - } elseif (!headers_sent()) {
19 - echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
14 + if (!\ini_get('display_errors')) {
15 + if (\PHP_SAPI === 'cli' || \PHP_SAPI === 'phpdbg') {
16 + \fwrite(\STDERR, 'Composer detected issues in your platform:' . \PHP_EOL . \PHP_EOL . \implode(\PHP_EOL, $issues) . \PHP_EOL . \PHP_EOL);
17 + } elseif (!\headers_sent()) {
18 + echo 'Composer detected issues in your platform:' . \PHP_EOL . \PHP_EOL . \str_replace('You are running ' . \PHP_VERSION . '.', '', \implode(\PHP_EOL, $issues)) . \PHP_EOL . \PHP_EOL;
20 19 }
21 20 }
22 - trigger_error(
23 - 'Composer detected issues in your platform: ' . implode(' ', $issues),
24 - E_USER_ERROR
25 - );
21 + \trigger_error('Composer detected issues in your platform: ' . \implode(' ', $issues), \E_USER_ERROR);
26 22 }