Skip to content

Commit 4509bbc

Browse files
committed
Format code.
1 parent 7369a82 commit 4509bbc

40 files changed

+39
-79
lines changed

app/Controller/AbstractController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @link https://www.hyperf.io
88
* @document https://doc.hyperf.io
99
* @contact [email protected]
10-
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12-
1312
namespace App\Controller;
1413

1514
use Hyperf\Di\Annotation\Inject;

app/Controller/IndexController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @link https://www.hyperf.io
88
* @document https://doc.hyperf.io
99
* @contact [email protected]
10-
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12-
1312
namespace App\Controller;
1413

1514
class IndexController extends AbstractController

app/Exception/Handler/AppExceptionHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12-
1312
namespace App\Exception\Handler;
1413

1514
use Hyperf\Contract\StdoutLoggerInterface;
@@ -34,7 +33,7 @@ public function handle(Throwable $throwable, ResponseInterface $response)
3433
{
3534
$this->logger->error(sprintf('%s[%s] in %s', $throwable->getMessage(), $throwable->getLine(), $throwable->getFile()));
3635
$this->logger->error($throwable->getTraceAsString());
37-
return $response->withHeader("Server", "Hyperf")->withStatus(500)->withBody(new SwooleStream('Internal Server Error.'));
36+
return $response->withHeader('Server', 'Hyperf')->withStatus(500)->withBody(new SwooleStream('Internal Server Error.'));
3837
}
3938

4039
public function isValid(Throwable $throwable): bool

app/Listener/DbQueryExecutedListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @link https://www.hyperf.io
88
* @document https://doc.hyperf.io
99
* @contact [email protected]
10-
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12-
1312
namespace App\Listener;
1413

1514
use Hyperf\Database\Events\QueryExecuted;

app/Model/Model.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @link https://www.hyperf.io
88
* @document https://doc.hyperf.io
99
* @contact [email protected]
10-
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12-
1312
namespace App\Model;
1413

1514
use Hyperf\DbConnection\Model\Model as BaseModel;

config/autoload/annotations.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @link https://www.hyperf.io
88
* @document https://doc.hyperf.io
99
* @contact [email protected]
10-
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12-
1312
return [
1413
'scan' => [
1514
'paths' => [

config/autoload/aspects.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
* @link https://www.hyperf.io
88
* @document https://doc.hyperf.io
99
* @contact [email protected]
10-
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12-
1312
return [
1413
];

config/autoload/cache.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @link https://www.hyperf.io
88
* @document https://doc.hyperf.io
99
* @contact [email protected]
10-
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12-
1312
return [
1413
'default' => [
1514
'driver' => Hyperf\Cache\Driver\RedisDriver::class,

config/autoload/commands.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
* @link https://www.hyperf.io
88
* @document https://doc.hyperf.io
99
* @contact [email protected]
10-
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12-
1312
return [
1413
];

config/autoload/databases.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @link https://www.hyperf.io
88
* @document https://doc.hyperf.io
99
* @contact [email protected]
10-
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12-
1312
return [
1413
'default' => [
1514
'driver' => env('DB_DRIVER', 'mysql'),

0 commit comments

Comments
 (0)