From 088f80248e89bb480f32549842f607515a542f9a Mon Sep 17 00:00:00 2001 From: Francisc Tar Date: Thu, 30 Dec 2021 11:30:58 +0100 Subject: [PATCH] namespace renaming --- composer.json | 4 ++-- index.php | 12 ++++++------ src/{Google => GTrends}/GTrends.php | 2 +- test/{GoogleTest => GTrends}/GTrendsTest.php | 3 +-- 4 files changed, 10 insertions(+), 11 deletions(-) rename src/{Google => GTrends}/GTrends.php (99%) rename test/{GoogleTest => GTrends}/GTrendsTest.php (97%) diff --git a/composer.json b/composer.json index 2c6649b..4d75f01 100644 --- a/composer.json +++ b/composer.json @@ -52,12 +52,12 @@ }, "autoload": { "psr-4": { - "Google\\": "src/Google" + "XFran\\GTrends\\": "src/GTrends" } }, "autoload-dev": { "psr-4": { - "GoogleTest\\": "test/GoogleTest" + "XFran\\GTrends\\": "test/GTrends" } } } diff --git a/index.php b/index.php index e6972fd..9a4a992 100644 --- a/index.php +++ b/index.php @@ -2,14 +2,14 @@ require 'vendor/autoload.php'; -use Google\GTrends; +use XFran\GTrends\GTrends; $options = [ - 'hl' => 'en-US', - 'tz' => 0, - 'geo' => 'US', - 'time' => 'all', - 'category' => 0, + 'hl' => 'en-US', + 'tz' => 0, + 'geo' => 'US', + 'time' => 'all', + 'category' => 0, ]; $gt = new GTrends($options); diff --git a/src/Google/GTrends.php b/src/GTrends/GTrends.php similarity index 99% rename from src/Google/GTrends.php rename to src/GTrends/GTrends.php index 258d817..115fa4c 100644 --- a/src/Google/GTrends.php +++ b/src/GTrends/GTrends.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Google; +namespace XFran\GTrends; use Laminas\Http; use Laminas\Json; diff --git a/test/GoogleTest/GTrendsTest.php b/test/GTrends/GTrendsTest.php similarity index 97% rename from test/GoogleTest/GTrendsTest.php rename to test/GTrends/GTrendsTest.php index 9e1e622..80d407c 100644 --- a/test/GoogleTest/GTrendsTest.php +++ b/test/GTrends/GTrendsTest.php @@ -1,8 +1,7 @@