Skip to content

Commit 5289c4e

Browse files
committed
Add PhpMyAdmin prefix to namespace
This way we follow PSR-4. See phpmyadmin/sql-parser#126 Signed-off-by: Michal Čihař <[email protected]>
1 parent 67a9e52 commit 5289c4e

9 files changed

+13
-11
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Change Log
22

3-
## [Unreleased]
3+
## [2.0] - 2017-01-23
4+
5+
* Switched to PhpMyAdmin vendor namespace to follow PSR-4.
46

57
## [1.2] - 2017-01-07
68

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"autoload": {
2828
"psr-4": {
29-
"ShapeFile\\": "src"
29+
"PhpMyAdmin\\ShapeFile\\": "src"
3030
}
3131
}
3232
}

examples/create_shapefile.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* along with this program; if not, you can download one from
2020
* https://www.gnu.org/copyleft/gpl.html.
2121
*/
22-
use ShapeFile\ShapeFile;
23-
use ShapeFile\ShapeRecord;
22+
use PhpMyAdmin\ShapeFile\ShapeFile;
23+
use PhpMyAdmin\ShapeFile\ShapeRecord;
2424

2525
require_once '../vendor/autoload.php';
2626

examples/read.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* along with this program; if not, you can download one from
2020
* https://www.gnu.org/copyleft/gpl.html.
2121
*/
22-
use ShapeFile\ShapeFile;
22+
use PhpMyAdmin\ShapeFile\ShapeFile;
2323

2424
/**
2525
* Displays content of given file.

src/ShapeFile.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* https://www.gnu.org/copyleft/gpl.html.
2121
*/
2222

23-
namespace ShapeFile;
23+
namespace PhpMyAdmin\ShapeFile;
2424

2525
/**
2626
* ShapeFile class.

src/ShapeRecord.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* https://www.gnu.org/copyleft/gpl.html.
2121
*/
2222

23-
namespace ShapeFile;
23+
namespace PhpMyAdmin\ShapeFile;
2424

2525
/**
2626
* ShapeFile record class.

src/Util.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* https://www.gnu.org/copyleft/gpl.html.
2121
*/
2222

23-
namespace ShapeFile;
23+
namespace PhpMyAdmin\ShapeFile;
2424

2525
class Util
2626
{

tests/ShapeFileTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
namespace ShapeFileTest;
2424

25-
use ShapeFile\ShapeFile;
26-
use ShapeFile\ShapeRecord;
25+
use PhpMyAdmin\ShapeFile\ShapeFile;
26+
use PhpMyAdmin\ShapeFile\ShapeRecord;
2727

2828
class ShapeFileTest extends \PHPUnit_Framework_TestCase
2929
{

tests/UtilTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
namespace UtilTest;
2323

24-
use ShapeFile\Util;
24+
use PhpMyAdmin\ShapeFile\Util;
2525

2626
class UtilTest extends \PHPUnit_Framework_TestCase
2727
{

0 commit comments

Comments
 (0)