Skip to content

Commit

Permalink
swow-cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraYolo committed Dec 21, 2021
1 parent b37f128 commit c86ec15
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

$header = <<<'EOF'
This file is part of Serendipity Job
@license https://github.com/serendipitySwow/Serendipity-job/blob/main/LICENSE
@license https://github.com/swow-cloud/socket/blob/main/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 @@
MIT License

Copyright (c) 2021 SerendipitySwow
Copyright (c) 2021 SwowCloud

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
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "serendipity-swow/sockets",
"name": "swow-cloud/sockets",
"type": "library",
"description": "Development of nsq client based on swow",
"keywords": [
Expand Down Expand Up @@ -41,7 +41,7 @@
"cs-fix": [ "@php vendor/bin/php-cs-fixer fix" ]
},
"support": {
"pull-request": "https://github.com/SerendipitySwow/socket/pulls",
"issues": "https://github.com/SerendipitySwow/socket/issues"
"pull-request": "https://github.com/swow-cloud/socket/pulls",
"issues": "https://github.com/swow-cloud/socket/issues"
}
}
4 changes: 2 additions & 2 deletions src/Exceptions/LogicException.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
/**
* This file is part of Serendipity Job
* @license https://github.com/serendipitySwow/Serendipity-job/blob/main/LICENSE
* @license https://github.com/swow-cloud/socket/blob/main/LICENSE
*/

declare(strict_types=1);

namespace SerendipitySwow\Socket\Exceptions;
namespace SwowCloud\Socket\Exceptions;

class LogicException extends \LogicException
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/NotFoundException.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
/**
* This file is part of Serendipity Job
* @license https://github.com/serendipitySwow/Serendipity-job/blob/main/LICENSE
* @license https://github.com/swow-cloud/socket/blob/main/LICENSE
*/

declare(strict_types=1);

namespace SerendipitySwow\Socket\Exceptions;
namespace SwowCloud\Socket\Exceptions;

class NotFoundException extends LogicException
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/OpenStreamException.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
/**
* This file is part of Serendipity Job
* @license https://github.com/serendipitySwow/Serendipity-job/blob/main/LICENSE
* @license https://github.com/swow-cloud/socket/blob/main/LICENSE
*/

declare(strict_types=1);

namespace SerendipitySwow\Socket\Exceptions;
namespace SwowCloud\Socket\Exceptions;

class OpenStreamException extends RuntimeException
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/ReadException.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
/**
* This file is part of Serendipity Job
* @license https://github.com/serendipitySwow/Serendipity-job/blob/main/LICENSE
* @license https://github.com/swow-cloud/socket/blob/main/LICENSE
*/

declare(strict_types=1);

namespace SerendipitySwow\Socket\Exceptions;
namespace SwowCloud\Socket\Exceptions;

use JetBrains\PhpStorm\Pure;
use Throwable;
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/RuntimeException.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
/**
* This file is part of Serendipity Job
* @license https://github.com/serendipitySwow/Serendipity-job/blob/main/LICENSE
* @license https://github.com/swow-cloud/socket/blob/main/LICENSE
*/

declare(strict_types=1);

namespace SerendipitySwow\Socket\Exceptions;
namespace SwowCloud\Socket\Exceptions;

class RuntimeException extends \RuntimeException
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/StreamStateException.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
/**
* This file is part of Serendipity Job
* @license https://github.com/serendipitySwow/Serendipity-job/blob/main/LICENSE
* @license https://github.com/swow-cloud/socket/blob/main/LICENSE
*/

declare(strict_types=1);

namespace SerendipitySwow\Socket\Exceptions;
namespace SwowCloud\Socket\Exceptions;

class StreamStateException extends LogicException
{
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/WriteStreamException.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
/**
* This file is part of Serendipity Job
* @license https://github.com/serendipitySwow/Serendipity-job/blob/main/LICENSE
* @license https://github.com/swow-cloud/socket/blob/main/LICENSE
*/

declare(strict_types=1);

namespace SerendipitySwow\Socket\Exceptions;
namespace SwowCloud\Socket\Exceptions;

class WriteStreamException extends RuntimeException
{
Expand Down
10 changes: 5 additions & 5 deletions src/Interfaces/StreamInterface.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php
/**
* This file is part of Serendipity Job
* @license https://github.com/serendipitySwow/Serendipity-job/blob/main/LICENSE
* @license https://github.com/swow-cloud/socket/blob/main/LICENSE
*/

declare(strict_types=1);

namespace SerendipitySwow\Socket\Interfaces;
namespace SwowCloud\Socket\Interfaces;

use SerendipitySwow\Socket\Exceptions\OpenStreamException;
use SerendipitySwow\Socket\Exceptions\StreamStateException;
use SerendipitySwow\Socket\Exceptions\WriteStreamException;
use SwowCloud\Socket\Exceptions\OpenStreamException;
use SwowCloud\Socket\Exceptions\StreamStateException;
use SwowCloud\Socket\Exceptions\WriteStreamException;

interface StreamInterface
{
Expand Down
12 changes: 6 additions & 6 deletions src/Streams/Socket.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php
/**
* This file is part of Serendipity Job
* @license https://github.com/serendipitySwow/Serendipity-job/blob/main/LICENSE
* @license https://github.com/swow-cloud/socket/blob/main/LICENSE
*/

declare(strict_types=1);

namespace SerendipitySwow\Socket\Streams;
namespace SwowCloud\Socket\Streams;

use SerendipitySwow\Socket\Exceptions\ReadException;
use SerendipitySwow\Socket\Exceptions\StreamStateException;
use SerendipitySwow\Socket\Exceptions\WriteStreamException;
use SerendipitySwow\Socket\Interfaces\StreamInterface;
use Swow\Socket as SwowSocket;
use SwowCloud\Socket\Exceptions\ReadException;
use SwowCloud\Socket\Exceptions\StreamStateException;
use SwowCloud\Socket\Exceptions\WriteStreamException;
use SwowCloud\Socket\Interfaces\StreamInterface;
use Throwable;

final class Socket implements StreamInterface
Expand Down

0 comments on commit c86ec15

Please sign in to comment.