Skip to content

Commit

Permalink
use custom namespaced packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pryley committed Mar 6, 2019
1 parent c0392fb commit fdf3e30
Show file tree
Hide file tree
Showing 33 changed files with 148 additions and 867 deletions.
27 changes: 1 addition & 26 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,4 @@ coverage.xml

/_
/node_modules
/vendor/*/*

!/vendor/qcubed/i18n
!/vendor/sinergi/browser-detector
!/vendor/vectorface/whip
/vendor/*.php
/vendor/**/.git*
/vendor/**/Tests
/vendor/**/tests
/vendor/**/*.json
/vendor/**/*.yml
/vendor/**/CHANGELOG*
/vendor/**/CONTRIBUTING*
/vendor/**/Makefile
/vendor/**/phar-stub.php
/vendor/**/phpunit.*
/vendor/**/README*
/vendor/**/UPGRADING*
/vendor/composer/installers
/vendor/qcubed/i18n/src/*.php
/vendor/qcubed/i18n/test
/vendor/qcubed/i18n/tools
/vendor/sinergi/browser-detector/src/AcceptLanguage.php
/vendor/sinergi/browser-detector/src/Device*
/vendor/sinergi/browser-detector/src/Language*
/vendor/sinergi/browser-detector/src/Os*
/vendor
1 change: 1 addition & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ filter:
- node_modules/
- tests/
- vendor/
- vendors/
- wordpress/

build:
Expand Down
6 changes: 3 additions & 3 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
$namespaces = [
'GeminiLabs\\SiteReviews\\' => __DIR__.'/plugin/',
'GeminiLabs\\SiteReviews\\Tests\\' => __DIR__.'/tests/',
'Sepia\\PoParser\\' => __DIR__.'/vendor/qcubed/i18n/src/Sepia/',
'Sinergi\\BrowserDetector\\' => __DIR__.'/vendor/sinergi/browser-detector/src/',
'Vectorface\\Whip\\' => __DIR__.'/vendor/vectorface/whip/src/',
'GeminiLabs\\Sepia\\PoParser\\' => __DIR__.'/vendors/sepia/po-parser/',
'GeminiLabs\\Sinergi\\BrowserDetector\\' => __DIR__.'/vendors/sinergi/browser-detector/',
'GeminiLabs\\Vectorface\\Whip\\' => __DIR__.'/vendors/vectorface/whip/',
];
foreach( $namespaces as $prefix => $baseDir ) {
$len = strlen( $prefix );
Expand Down
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
"php": ">=5.6"
},
"require-dev": {
"phpunit/phpunit": "^6.5.13",
"qcubed/i18n": "dev-master",
"sinergi/browser-detector": "^6.1.2",
"vectorface/whip": "^0.3.2"
"phpunit/phpunit": "^6.5.13"
}
}
213 changes: 2 additions & 211 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace GeminiLabs\SiteReviews;

use GeminiLabs\SiteReviews\Database\Cache;
use Vectorface\Whip\Whip;
use GeminiLabs\Vectorface\Whip\Whip;

class Helper
{
Expand Down
2 changes: 1 addition & 1 deletion plugin/Modules/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use GeminiLabs\SiteReviews\Database\CountsManager;
use GeminiLabs\SiteReviews\Database\OptionManager;
use GeminiLabs\SiteReviews\Helper;
use Sinergi\BrowserDetector\Browser;
use GeminiLabs\Sinergi\BrowserDetector\Browser;

class System
{
Expand Down
2 changes: 1 addition & 1 deletion plugin/Modules/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace GeminiLabs\SiteReviews\Modules;

use Exception;
use GeminiLabs\Sepia\PoParser\Parser;
use GeminiLabs\SiteReviews\Application;
use GeminiLabs\SiteReviews\Database\OptionManager;
use GeminiLabs\SiteReviews\Modules\Html\Template;
use Sepia\PoParser\Parser;

class Translation
{
Expand Down
Loading

0 comments on commit fdf3e30

Please sign in to comment.