This commit is contained in:
Dennis Eichhorn 2022-02-19 14:25:29 +01:00
parent 516a506556
commit f157d05c00
12 changed files with 19 additions and 19 deletions

View File

@ -34,7 +34,7 @@ jobs:
if: steps.git-check.outputs.modified == 'true' if: steps.git-check.outputs.modified == 'true'
run: | run: |
git config --global user.name 'Formatter Bot' 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 remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated formatting changes" git commit -am "Automated formatting changes"
git push git push
@ -84,14 +84,14 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
ref: develop ref: develop
repository: Orange-Management/Build repository: Karaka/Build
path: Build path: Build
- name: Checkout Resource Repository - name: Checkout Resource Repository
uses: actions/checkout@master uses: actions/checkout@master
with: with:
fetch-depth: 1 fetch-depth: 1
ref: develop ref: develop
repository: Orange-Management/Resources repository: Karaka/Resources
path: Resources path: Resources
- name: Setup PHP, with composer and extensions - name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master uses: shivammathur/setup-php@master
@ -135,7 +135,7 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
ref: develop ref: develop
repository: Orange-Management/Build repository: Karaka/Build
path: Build path: Build
- name: Setup PHP, with composer and extensions - name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master uses: shivammathur/setup-php@master
@ -177,7 +177,7 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
ref: develop ref: develop
repository: Orange-Management/Build repository: Karaka/Build
path: Build path: Build
- name: Setup PHP, with composer and extensions - name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master uses: shivammathur/setup-php@master
@ -216,7 +216,7 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
ref: develop ref: develop
repository: Orange-Management/Build repository: Karaka/Build
path: Build path: Build
- name: Setup PHP, with composer and extensions - name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master uses: shivammathur/setup-php@master

View File

@ -2,7 +2,7 @@
## Code Style & Best Practices ## 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 ## 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 ### 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 ### Code Style

View File

@ -845,7 +845,7 @@ class Builder extends BuilderAbstract
public function count(string $table = '*') : self 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)). * 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 * The parser should be able to handle this much better
*/ */

View File

@ -30,7 +30,7 @@ use phpOMS\DataStorage\Database\Query\Where;
* @link https://karaka.app * @link https://karaka.app
* @since 1.0.0 * @since 1.0.0
* *
* @todo Orange-Management/phpOMS#33 * @todo Karaka/phpOMS#33
* Implement missing grammar & builder functions * Implement missing grammar & builder functions
* Missing elements are e.g. sum, merge etc. * Missing elements are e.g. sum, merge etc.
*/ */

View File

@ -45,7 +45,7 @@ For more detailed information please checkout the [Installation Guide](https://k
#### Developer #### 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 ## Philosophy

View File

@ -120,8 +120,8 @@ class SpreadsheetDatabaseMapper implements IODatabaseMapper
{ {
$sheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet(); $sheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();
$sheet->getProperties() $sheet->getProperties()
->setCreator('Orange-Management') ->setCreator('Karaka')
->setLastModifiedBy('Orange-Management') ->setLastModifiedBy('Karaka')
->setTitle('Database export') ->setTitle('Database export')
->setSubject('Database export') ->setSubject('Database export')
->setDescription('This document is automatically generated from a database export.'); ->setDescription('This document is automatically generated from a database export.');

View File

@ -40,7 +40,7 @@ class Schedule extends TaskAbstract
public static function createWith(array $jobData) : TaskAbstract public static function createWith(array $jobData) : TaskAbstract
{ {
/** /**
* @todo Orange-Management/phpOMS#231 * @todo Karaka/phpOMS#231
* Use the interval for generating a schedule * Use the interval for generating a schedule
*/ */
$job = new self($jobData[1], $jobData[8], 'asdf'); $job = new self($jobData[1], $jobData[8], 'asdf');

View File

@ -4,7 +4,7 @@
* *
* PHP Version 8.0 * PHP Version 8.0
* *
* @package Orange-Management * @package Karaka
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0

View File

@ -210,7 +210,7 @@ final class HttpHeaderTest extends \PHPUnit\Framework\TestCase
public function testGetAllHeaders() : void 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; $tmp = $_SERVER;

View File

@ -383,7 +383,7 @@ final class HttpRequestTest extends \PHPUnit\Framework\TestCase
*/ */
public function testRestRequest() : void 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); $request->setMethod(RequestMethod::GET);
self::assertEquals( self::assertEquals(

View File

@ -33,7 +33,7 @@ final class RestTest extends \PHPUnit\Framework\TestCase
*/ */
public function testRequest() : void 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); $request->setMethod(RequestMethod::GET);
self::assertEquals( self::assertEquals(

View File

@ -5,7 +5,7 @@
"update": [ "update": [
{ {
"download": { "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": { "move": {
"toMove": "moveHere" "toMove": "moveHere"