From f157d05c00e7e90e1bf6a9bb77261c8ff0dba0d5 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 19 Feb 2022 14:25:29 +0100 Subject: [PATCH] fix name --- .github/workflows/main.yml | 12 ++++++------ CONTRIBUTING.md | 4 ++-- DataStorage/Database/Query/Builder.php | 2 +- DataStorage/Database/Query/Grammar/Grammar.php | 2 +- README.md | 2 +- Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php | 4 ++-- Utils/TaskSchedule/Schedule.php | 2 +- preload.php | 2 +- tests/Message/Http/HttpHeaderTest.php | 2 +- tests/Message/Http/HttpRequestTest.php | 2 +- tests/Message/Http/RestTest.php | 2 +- tests/Module/testPackage/info.json | 2 +- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a154afc39..40dce0d04 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,7 @@ jobs: if: steps.git-check.outputs.modified == 'true' run: | git config --global user.name 'Formatter Bot' - git config --global user.email 'formatter.bot@orange-management.email' + git config --global user.email 'formatter.bot@karaka.app' git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} git commit -am "Automated formatting changes" git push @@ -84,14 +84,14 @@ jobs: with: fetch-depth: 1 ref: develop - repository: Orange-Management/Build + repository: Karaka/Build path: Build - name: Checkout Resource Repository uses: actions/checkout@master with: fetch-depth: 1 ref: develop - repository: Orange-Management/Resources + repository: Karaka/Resources path: Resources - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@master @@ -135,7 +135,7 @@ jobs: with: fetch-depth: 1 ref: develop - repository: Orange-Management/Build + repository: Karaka/Build path: Build - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@master @@ -177,7 +177,7 @@ jobs: with: fetch-depth: 1 ref: develop - repository: Orange-Management/Build + repository: Karaka/Build path: Build - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@master @@ -216,7 +216,7 @@ jobs: with: fetch-depth: 1 ref: develop - repository: Orange-Management/Build + repository: Karaka/Build path: Build - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@master diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d876047d8..b43271e4e 100755 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ ## Code Style & Best Practices -For the code style and best practices please have a look at the developer-guide [https://github.comkaraka-management/Developer-Guide](https://github.comkaraka-management/Developer-Guide). Especially the `standards` should be followed for a successful pull request. +For the code style and best practices please have a look at the developer-guide [https://github.com/karaka-management/Developer-Guide](https://github.com/karaka-management/Developer-Guide). Especially the `standards` should be followed for a successful pull request. ## How Can I Contribute @@ -12,7 +12,7 @@ If you have a good idea for improvement feel free to create a new issue with all ### Issues -Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the code marked with `@todo` or in the [PROJECT.md](https://github.comkaraka-management/Docs/blob/master/Project/PROJECT.md) file. +Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the code marked with `@todo` or in the [PROJECT.md](https://github.com/karaka-management/Docs/blob/master/Project/PROJECT.md) file. ### Code Style diff --git a/DataStorage/Database/Query/Builder.php b/DataStorage/Database/Query/Builder.php index 990d9143f..3f9ebe2bc 100644 --- a/DataStorage/Database/Query/Builder.php +++ b/DataStorage/Database/Query/Builder.php @@ -845,7 +845,7 @@ class Builder extends BuilderAbstract public function count(string $table = '*') : self { /** - * @todo Orange-Management/phpOMS#??? [p:low] [t:optimization] [d:medium] + * @todo Karaka/phpOMS#??? [p:low] [t:optimization] [d:medium] * Don't do this as a string, create a new object $this->select(new Count($table)). * The parser should be able to handle this much better */ diff --git a/DataStorage/Database/Query/Grammar/Grammar.php b/DataStorage/Database/Query/Grammar/Grammar.php index df7563f94..aa1f18adf 100644 --- a/DataStorage/Database/Query/Grammar/Grammar.php +++ b/DataStorage/Database/Query/Grammar/Grammar.php @@ -30,7 +30,7 @@ use phpOMS\DataStorage\Database\Query\Where; * @link https://karaka.app * @since 1.0.0 * - * @todo Orange-Management/phpOMS#33 + * @todo Karaka/phpOMS#33 * Implement missing grammar & builder functions * Missing elements are e.g. sum, merge etc. */ diff --git a/README.md b/README.md index 4ad8abf0f..fa230dd28 100755 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ For more detailed information please checkout the [Installation Guide](https://k #### Developer -https://github.comkaraka-management/Developer-Guide/blob/develop/general/setup.md +https://github.com/karaka-management/Developer-Guide/blob/develop/general/setup.md ## Philosophy diff --git a/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php b/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php index 7169f7852..a85beda88 100644 --- a/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php +++ b/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapper.php @@ -120,8 +120,8 @@ class SpreadsheetDatabaseMapper implements IODatabaseMapper { $sheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet(); $sheet->getProperties() - ->setCreator('Orange-Management') - ->setLastModifiedBy('Orange-Management') + ->setCreator('Karaka') + ->setLastModifiedBy('Karaka') ->setTitle('Database export') ->setSubject('Database export') ->setDescription('This document is automatically generated from a database export.'); diff --git a/Utils/TaskSchedule/Schedule.php b/Utils/TaskSchedule/Schedule.php index c89532093..517413d3b 100755 --- a/Utils/TaskSchedule/Schedule.php +++ b/Utils/TaskSchedule/Schedule.php @@ -40,7 +40,7 @@ class Schedule extends TaskAbstract public static function createWith(array $jobData) : TaskAbstract { /** - * @todo Orange-Management/phpOMS#231 + * @todo Karaka/phpOMS#231 * Use the interval for generating a schedule */ $job = new self($jobData[1], $jobData[8], 'asdf'); diff --git a/preload.php b/preload.php index 5f6bc5417..74bc399cb 100755 --- a/preload.php +++ b/preload.php @@ -4,7 +4,7 @@ * * PHP Version 8.0 * - * @package Orange-Management + * @package Karaka * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 diff --git a/tests/Message/Http/HttpHeaderTest.php b/tests/Message/Http/HttpHeaderTest.php index ad80b7d1d..f0e9250f1 100644 --- a/tests/Message/Http/HttpHeaderTest.php +++ b/tests/Message/Http/HttpHeaderTest.php @@ -210,7 +210,7 @@ final class HttpHeaderTest extends \PHPUnit\Framework\TestCase public function testGetAllHeaders() : void { - $dummyHeaders = '{"REDIRECT_STATUS":"200","HTTP_HOST":"127.0.0.1","HTTP_CONNECTION":"keep-alive","HTTP_CACHE_CONTROL":"max-age=0","HTTP_SEC_CH_UA":"\" Not;A Brand\";v=\"99\", \"Google Chrome\";v=\"91\", \"Chromium\";v=\"91\"","HTTP_ACCEPT":"text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.9","HTTP_UPGRADE_INSECURE_REQUESTS":"1","HTTP_SEC_CH_UA_MOBILE":"?0","HTTP_USER_AGENT":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/91.0.4472.114 Safari\/537.36","HTTP_SEC_FETCH_SITE":"same-origin","HTTP_SEC_FETCH_MODE":"same-origin","HTTP_SEC_FETCH_DEST":"empty","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.9","HTTP_COOKIE":"PHPSESSID=4olihfuke6ihkgpgkkluda9qm0","PATH":"\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/snap\/bin","SERVER_SIGNATURE":"Apache\/2.4.46 (Ubuntu) Server at 127.0.0.1 Port 80<\/address>\n","SERVER_SOFTWARE":"Apache\/2.4.46 (Ubuntu)","SERVER_NAME":"127.0.0.1","SERVER_ADDR":"127.0.0.1","SERVER_PORT":"80","REMOTE_ADDR":"127.0.0.1","DOCUMENT_ROOT":"\/home\/spl1nes\/Orange-Management","REQUEST_SCHEME":"http","CONTEXT_PREFIX":"","CONTEXT_DOCUMENT_ROOT":"\/home\/spl1nes\/Orange-Management","SERVER_ADMIN":"webmaster@localhost","SCRIPT_FILENAME":"\/home\/spl1nes\/Orange-Management\/index.php","REMOTE_PORT":"52430","REDIRECT_URL":"\/en\/backend","REDIRECT_QUERY_STRING":"{QUERY_STRING}","GATEWAY_INTERFACE":"CGI\/1.1","SERVER_PROTOCOL":"HTTP\/1.1","REQUEST_METHOD":"GET","QUERY_STRING":"{QUERY_STRING}","REQUEST_URI":"\/en\/backend","SCRIPT_NAME":"\/index.php","PHP_SELF":"\/index.php","REQUEST_TIME_FLOAT":1634157950.359451,"REQUEST_TIME":1634157950}'; + $dummyHeaders = '{"REDIRECT_STATUS":"200","HTTP_HOST":"127.0.0.1","HTTP_CONNECTION":"keep-alive","HTTP_CACHE_CONTROL":"max-age=0","HTTP_SEC_CH_UA":"\" Not;A Brand\";v=\"99\", \"Google Chrome\";v=\"91\", \"Chromium\";v=\"91\"","HTTP_ACCEPT":"text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.9","HTTP_UPGRADE_INSECURE_REQUESTS":"1","HTTP_SEC_CH_UA_MOBILE":"?0","HTTP_USER_AGENT":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/91.0.4472.114 Safari\/537.36","HTTP_SEC_FETCH_SITE":"same-origin","HTTP_SEC_FETCH_MODE":"same-origin","HTTP_SEC_FETCH_DEST":"empty","HTTP_ACCEPT_ENCODING":"gzip, deflate, br","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.9","HTTP_COOKIE":"PHPSESSID=4olihfuke6ihkgpgkkluda9qm0","PATH":"\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/snap\/bin","SERVER_SIGNATURE":"Apache\/2.4.46 (Ubuntu) Server at 127.0.0.1 Port 80<\/address>\n","SERVER_SOFTWARE":"Apache\/2.4.46 (Ubuntu)","SERVER_NAME":"127.0.0.1","SERVER_ADDR":"127.0.0.1","SERVER_PORT":"80","REMOTE_ADDR":"127.0.0.1","DOCUMENT_ROOT":"\/home\/spl1nes\/Karaka","REQUEST_SCHEME":"http","CONTEXT_PREFIX":"","CONTEXT_DOCUMENT_ROOT":"\/home\/spl1nes\/Karaka","SERVER_ADMIN":"webmaster@localhost","SCRIPT_FILENAME":"\/home\/spl1nes\/Karaka\/index.php","REMOTE_PORT":"52430","REDIRECT_URL":"\/en\/backend","REDIRECT_QUERY_STRING":"{QUERY_STRING}","GATEWAY_INTERFACE":"CGI\/1.1","SERVER_PROTOCOL":"HTTP\/1.1","REQUEST_METHOD":"GET","QUERY_STRING":"{QUERY_STRING}","REQUEST_URI":"\/en\/backend","SCRIPT_NAME":"\/index.php","PHP_SELF":"\/index.php","REQUEST_TIME_FLOAT":1634157950.359451,"REQUEST_TIME":1634157950}'; $tmp = $_SERVER; diff --git a/tests/Message/Http/HttpRequestTest.php b/tests/Message/Http/HttpRequestTest.php index 8f19c4d80..6a4d8f371 100644 --- a/tests/Message/Http/HttpRequestTest.php +++ b/tests/Message/Http/HttpRequestTest.php @@ -383,7 +383,7 @@ final class HttpRequestTest extends \PHPUnit\Framework\TestCase */ public function testRestRequest() : void { - $request = new HttpRequest(new HttpUri('https://raw.githubusercontent.com/Orange-Management/Orange-Management/develop/LICENSE.txt')); + $request = new HttpRequest(new HttpUri('https://raw.githubusercontent.com/Karaka-Management/Karaka/develop/LICENSE.txt')); $request->setMethod(RequestMethod::GET); self::assertEquals( diff --git a/tests/Message/Http/RestTest.php b/tests/Message/Http/RestTest.php index ba655da11..d9b279be2 100644 --- a/tests/Message/Http/RestTest.php +++ b/tests/Message/Http/RestTest.php @@ -33,7 +33,7 @@ final class RestTest extends \PHPUnit\Framework\TestCase */ public function testRequest() : void { - $request = new HttpRequest(new HttpUri('https://raw.githubusercontent.com/Orange-Management/Orange-Management/develop/LICENSE.txt')); + $request = new HttpRequest(new HttpUri('https://raw.githubusercontent.com/Karaka-Management/Karaka/develop/LICENSE.txt')); $request->setMethod(RequestMethod::GET); self::assertEquals( diff --git a/tests/Module/testPackage/info.json b/tests/Module/testPackage/info.json index fd504380f..e15ab2375 100755 --- a/tests/Module/testPackage/info.json +++ b/tests/Module/testPackage/info.json @@ -5,7 +5,7 @@ "update": [ { "download": { - "https://raw.githubusercontent.com/Orange-Management/Orange-Management/develop/README.md": "README.md" + "https://raw.githubusercontent.com/Karaka-Management/Karaka/develop/README.md": "README.md" }, "move": { "toMove": "moveHere"