Skip to content

Commit

Permalink
Move classes to PhpMyAdmin namespace
Browse files Browse the repository at this point in the history
- Move ZipExtension to PhpMyAdmin namespace
- Move ZipFile to PhpMyAdmin namespace

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
  • Loading branch information
MauricioFauth committed Jul 1, 2017
1 parent 94b34d8 commit 42bfa9c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion libraries/classes/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use PhpMyAdmin\Core;
use PhpMyAdmin\Message;
use PMA\libraries\Util;
use PMA\libraries\ZipExtension;
use PhpMyAdmin\ZipExtension;

/**
* File wrapper class
Expand Down
2 changes: 1 addition & 1 deletion libraries/classes/OpenDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace PhpMyAdmin;

use PMA\libraries\ZipFile;
use PhpMyAdmin\ZipFile;

/**
* Simplfied OpenDocument creator class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
*
* @package PhpMyAdmin
*/

namespace PMA\libraries;
namespace PhpMyAdmin;

use ZipArchive;

Expand Down
8 changes: 2 additions & 6 deletions libraries/ZipFile.php → libraries/classes/ZipFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
*
* @package PhpMyAdmin
*/
namespace PMA\libraries;

if (!defined('PHPMYADMIN')) {
exit;
}
namespace PhpMyAdmin;

/**
* Zip file creation class.
Expand Down Expand Up @@ -203,4 +199,4 @@ function file()
return $data . $header;
}
} // end of the 'file()' method
} // end of the 'PMA\libraries\ZipFile' class
} // end of the 'PhpMyAdmin\ZipFile' class
2 changes: 1 addition & 1 deletion libraries/export.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use PhpMyAdmin\Message;
use PMA\libraries\plugins\ExportPlugin;
use PMA\libraries\Table;
use PMA\libraries\ZipFile;
use PhpMyAdmin\ZipFile;
use PMA\libraries\URL;
use PMA\libraries\Sanitize;

Expand Down
2 changes: 1 addition & 1 deletion libraries/plugins/import/ImportShp.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use PMA\libraries\gis\GISMultipoint;
use PMA\libraries\gis\GISPoint;
use PMA\libraries\gis\GISPolygon;
use PMA\libraries\ZipExtension;
use PhpMyAdmin\ZipExtension;

/**
* Handles the import for ESRI Shape files
Expand Down
2 changes: 1 addition & 1 deletion test/classes/ZipExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package PhpMyAdmin-test
*/

use PMA\libraries\ZipExtension;
use PhpMyAdmin\ZipExtension;

require_once 'test/PMATestCase.php';

Expand Down
6 changes: 3 additions & 3 deletions test/classes/ZipFileTest.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php
/**
* Tests PMA\libraries\ZipFile
* Tests PhpMyAdmin\ZipFile
*
* @package PhpMyAdmin-test
*/

use PMA\libraries\ZipFile;
use PhpMyAdmin\ZipFile;

require_once 'test/PMATestCase.php';

/**
* Tests for PMA\libraries\ZipFile
* Tests for PhpMyAdmin\ZipFile
*
* @package PhpMyAdmin-test
*/
Expand Down

0 comments on commit 42bfa9c

Please sign in to comment.