Replace `global` keyword with `$GLOBALS`
[phpmyadmin.git] / libraries / classes / Plugins / Import / ShapeFileImport.php
blob18cb02355a8a276e56716d487958fef6e4b58d57
1 <?php
2 /**
3 * This class extends ShapeFile class to cater the following phpMyAdmin
4 * specific requirements.
5 */
7 declare(strict_types=1);
9 namespace PhpMyAdmin\Plugins\Import;
11 use PhpMyAdmin\ShapeFile\ShapeFile;
13 /**
14 * ShapeFileImport class
16 class ShapeFileImport extends ShapeFile
18 /**
19 * Reads given number of bytes from SHP file
21 * @param int $bytes number of bytes
23 * @return string|false
25 public function readSHP(int $bytes)
27 return ImportShp::readFromBuffer($bytes);
30 /**
31 * Checks whether file is at EOF
33 public function eofSHP(): bool
35 return (bool) $GLOBALS['eof'];