Skip to content

Commit

Permalink
refactor: Update namespace to CSlant
Browse files Browse the repository at this point in the history
- Changed primary namespace.
- Updated all relevant import 'use' statements throughout the source code to reflect this namespace change.
- Checked and ensured that all functionalities remain intact post-refactor.
  • Loading branch information
tanhongit committed Nov 3, 2023
1 parent 97e374d commit 350388f
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 11 deletions.
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
; This is the top-most EditorConfig file, which is not inherited by any other files.
; This file is used for unify the coding style for different editors and IDEs.
; More information at https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space

[*.json]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .github/workflows/setup_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 8.*
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
18 changes: 15 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,23 @@
}
},
"require": {
"php": "^8.0",
"CSlant/telegram-git-notifier": "dev-main"
"php": "^8.1",
"cslant/telegram-git-notifier": "^v1.3.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^v3.37.1",
"pestphp/pest": "^2.24",
"phpstan/phpstan": "^1.10.39"
},
"scripts": {
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes",
"post-install-cmd": [
"bash vendor/cslant/telegram-git-notifier/install.sh"
],
"post-update-cmd": [
"bash vendor/cslant/telegram-git-notifier/install.sh"
]
},
"support": {
"issues": "https://github.com/cslant/laravel-telegram-git-notifier/issues"
},
Expand All @@ -60,7 +69,10 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
Expand Down
4 changes: 2 additions & 2 deletions config/telegram-git-notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
'author' => [
'discussion' => env(
'TGN_AUTHOR_DISCUSSION',
'https://github.com/lbiltech/laravel-telegram-git-notifier/discussions'
'https://github.com/cslant/laravel-telegram-git-notifier/discussions'
),
'source_code' => env(
'TGN_AUTHOR_SOURCE_CODE',
'https://github.com/lbiltech/laravel-telegram-git-notifier'
'https://github.com/cslant/laravel-telegram-git-notifier'
),
],

Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
</include>
</coverage>
<testsuites>
<testsuite name="LbilTech Laravel Telegram Git Notify">
<testsuite name="CSlant Laravel Telegram Git Notifier">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
</phpunit>
2 changes: 1 addition & 1 deletion routes/bot.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Illuminate\Support\Facades\Route;
use LbilTech\LaravelTelegramGitNotifier\Http\Actions\WebhookAction;
use CSlant\LaravelTelegramGitNotifier\Http\Actions\WebhookAction;

/*
|--------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Actions/WebhookAction.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace LbilTech\LaravelTelegramGitNotifier\Http\Actions;
namespace CSlant\LaravelTelegramGitNotifier\Http\Actions;

use LbilTech\TelegramGitNotifier\Webhook;
use CSlant\TelegramGitNotifier\Webhook;

class WebhookAction
{
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/TelegramGitNotifierServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace LbilTech\LaravelTelegramGitNotifier\Providers;
namespace CSlant\LaravelTelegramGitNotifier\Providers;

use Illuminate\Support\ServiceProvider;

Expand Down

0 comments on commit 350388f

Please sign in to comment.