diff --git a/Helper/ipGeoLocationBuilder.php b/Helper/ipGeoLocationBuilder.php index 2ac09c4..dfc5262 100644 --- a/Helper/ipGeoLocationBuilder.php +++ b/Helper/ipGeoLocationBuilder.php @@ -7,12 +7,12 @@ $fh = fopen('GeoIPCountryWhois.csv', 'r'); $fo = fopen('output.csv', 'w'); function ip2int(string $ip) : float { - $split = explode('.', $ip); - return $split[0] * (256 ** 3) + $split[1] * (256 ** 2) + $split[2] * (256 ** 1) + $split[3]; + $split = explode('.', $ip); + return $split[0] * (256 ** 3) + $split[1] * (256 ** 2) + $split[2] * (256 ** 1) + $split[3]; } while (($data = fgetcsv($fh, 150, ",")) !== FALSE) { - fputcsv($fo, [ip2int($data[0]), ip2int($data[1]), $data[4]]); + fputcsv($fo, [ip2int($data[0]), ip2int($data[1]), $data[4]]); } fclose($fo); diff --git a/Helper/testGenerator.php b/Helper/testGenerator.php index a97b51e..b0749a0 100644 --- a/Helper/testGenerator.php +++ b/Helper/testGenerator.php @@ -77,9 +77,9 @@ foreach ($files as $file) { . 'class ' . $classname . ' extends \PHPUnit\Framework\TestCase' . PHP_EOL . '{' . PHP_EOL . ' public function testPlaceholder()' . PHP_EOL - . ' {' . PHP_EOL - . ' self::markTestIncomplete();' . PHP_EOL - . ' }' . PHP_EOL + . ' {' . PHP_EOL + . ' self::markTestIncomplete();' . PHP_EOL + . ' }' . PHP_EOL . '}' . PHP_EOL ); } diff --git a/Inspection/Php/tests.sh b/Inspection/Php/tests.sh index f516e15..a276b23 100644 --- a/Inspection/Php/tests.sh +++ b/Inspection/Php/tests.sh @@ -4,5 +4,5 @@ php ${TOOLS_PATH}/phpunit.phar -v --configuration ${TEST_PATH}/PHPUnit/phpunit_default.xml --log-junit ${INSPECTION_PATH}/Test/Php/junit_php.xml --testdox-html ${INSPECTION_PATH}/Test/Php/index.html --coverage-html ${INSPECTION_PATH}/Test/Php/coverage --coverage-clover ${INSPECTION_PATH}/Test/Php/coverage.xml > ${INSPECTION_PATH}/Test/Php/phpunit.log #phpdbg -qrr phpunit.phar --configuration Tests/PHPUnit/phpunit_default.xml -#php Documentor/src/index.php -s C:\Users\coyle\Desktop\Orange-Management\phpOMS -d C:\Users\coyle\Desktop\outtest -c C:\Users\coyle\Desktop\Orange-Management\Build\log\coverage.xml -u C:\Users\coyle\Desktop\Orange-Management\Build\log\test.xml -g C:\Users\coyle\Desktop\Orange-Management\Developer-Guide +#php .\documentor.phar -s C:\Users\coyle\Desktop\Orange-Management\phpOMS -d C:\Users\coyle\Desktop\Orange-Management\Build\log\docs -c C:\Users\coyle\Desktop\Orange-Management\Build\log\coverage.xml -u C:\Users\coyle\Desktop\Orange-Management\Build\log\test.xml -b http://127.0.0.1/Build/log/docs #phpdbg -qrr phpunit.phar Tests/PHPUnit/Framework/Math/Matrix/MatrixTest.php --bootstrap Tests/PHPUnit/Bootstrap.php \ No newline at end of file