Use root namespace for functions

This commit is contained in:
Dennis Eichhorn 2018-05-30 13:33:39 +02:00
parent 6daec69e9b
commit 0a7c6a5550
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ $fh = fopen('GeoIPCountryWhois.csv', 'r');
$fo = fopen('output.csv', 'w');
function ip2int(string $ip) : float {
$split = explode('.', $ip);
$split = \explode('.', $ip);
return $split[0] * (256 ** 3) + $split[1] * (256 ** 2) + $split[2] * (256 ** 1) + $split[3];
}

View File

@ -1,7 +1,7 @@
<?php
$postBody = $_POST['payload'] ?? '';
$payload = json_decode($postBody, true);
$payload = \json_decode($postBody, true);
if (isset($payload['repository'], $payload['repository']['name']) && $payload['repository']['name'] === 'Orange-Management') {
shell_exec('./buildProject.sh > /dev/null 2>/dev/null &');