Skip to content

Commit

Permalink
chore: Headings
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante committed Aug 15, 2023
1 parent 82b37ae commit e882e93
Show file tree
Hide file tree
Showing 29 changed files with 152 additions and 137 deletions.
10 changes: 5 additions & 5 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
$header = <<<'EOF'
This file is part of Hyperf.
This file is part of OpenCodeCo.
@link https://www.hyperf.io
@document https://hyperf.wiki
@contact [email protected]
@license https://github.com/hyperf/hyperf/blob/master/LICENSE
@link https://github.com/opencodeco/rinha-de-backend-2023-q3
@document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
@contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
@license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
EOF;

return (new PhpCsFixer\Config())
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) Hyperf
Copyright (c) OpenCodeCo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 6 additions & 5 deletions app/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/

namespace App\Controller;

use Hyperf\Di\Annotation\Inject;
Expand Down
11 changes: 6 additions & 5 deletions app/Controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/

namespace App\Controller;

class IndexController extends AbstractController
Expand Down
11 changes: 6 additions & 5 deletions app/Exception/Handler/AppExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/

namespace App\Exception\Handler;

use Hyperf\Contract\StdoutLoggerInterface;
Expand Down
11 changes: 6 additions & 5 deletions app/Listener/DbQueryExecutedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/

namespace App\Listener;

use Hyperf\Collection\Arr;
Expand Down
11 changes: 6 additions & 5 deletions app/Listener/ResumeExitCoordinatorListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/

namespace App\Listener;

use Hyperf\Command\Event\AfterExecute;
Expand Down
11 changes: 6 additions & 5 deletions app/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/

namespace App\Model;

use Hyperf\DbConnection\Model\Model as BaseModel;
Expand Down
9 changes: 8 additions & 1 deletion bin/hyperf.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/usr/bin/env php
<?php

/**
* This file is part of OpenCodeCo.
*
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
ini_set('display_errors', 'on');
ini_set('display_startup_errors', 'on');
ini_set('memory_limit', '1G');
Expand Down
10 changes: 5 additions & 5 deletions config/autoload/annotations.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
'scan' => [
Expand Down
10 changes: 5 additions & 5 deletions config/autoload/aspects.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
];
10 changes: 5 additions & 5 deletions config/autoload/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
'default' => [
Expand Down
10 changes: 5 additions & 5 deletions config/autoload/commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
];
10 changes: 5 additions & 5 deletions config/autoload/databases.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
use function Hyperf\Support\env;

Expand Down
10 changes: 5 additions & 5 deletions config/autoload/dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
];
10 changes: 5 additions & 5 deletions config/autoload/devtool.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
'generator' => [
Expand Down
10 changes: 5 additions & 5 deletions config/autoload/exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
'handler' => [
Expand Down
10 changes: 5 additions & 5 deletions config/autoload/listeners.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
Hyperf\ExceptionHandler\Listener\ErrorExceptionHandler::class,
Expand Down
10 changes: 5 additions & 5 deletions config/autoload/logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
'default' => [
Expand Down
10 changes: 5 additions & 5 deletions config/autoload/middlewares.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
'http' => [
Expand Down
10 changes: 5 additions & 5 deletions config/autoload/processes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
];
10 changes: 5 additions & 5 deletions config/autoload/redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);
/**
* This file is part of Hyperf.
* This file is part of OpenCodeCo.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE
*/
return [
'default' => [
Expand Down
Loading

0 comments on commit e882e93

Please sign in to comment.