Skip to content

Commit

Permalink
Format code (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: 李铭昕 <[email protected]>
  • Loading branch information
xuanyanwow and limingxinleo authored Sep 14, 2023
1 parent 9b27b29 commit 7241ca9
Show file tree
Hide file tree
Showing 51 changed files with 53 additions and 1 deletion.
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
'single_quote' => true,
'standardize_not_equals' => true,
'multiline_comment_opening_closing' => true,
'single_line_empty_body' => false,
])
->setFinder(
PhpCsFixer\Finder::create()
Expand Down
1 change: 1 addition & 0 deletions src/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

use Hyperf\Engine\Contract\ChannelInterface;
Expand Down
1 change: 1 addition & 0 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

use Hyperf\Engine\Contract\Socket\SocketFactoryInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Constant.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

use Swoole\Coroutine\Http\Server as HttpServer;
Expand Down
1 change: 1 addition & 0 deletions src/Constant/SocketType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Constant;

class SocketType
Expand Down
1 change: 1 addition & 0 deletions src/Coroutine.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

use ArrayObject;
Expand Down
1 change: 1 addition & 0 deletions src/DefaultOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

use Hyperf\Engine\Contract\DefaultOptionInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Exception/CoroutineDestroyedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Exception;

class CoroutineDestroyedException extends RuntimeException
Expand Down
1 change: 1 addition & 0 deletions src/Exception/HttpClientException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Exception;

class HttpClientException extends RuntimeException
Expand Down
1 change: 1 addition & 0 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Exception;

class InvalidArgumentException extends \InvalidArgumentException
Expand Down
1 change: 1 addition & 0 deletions src/Exception/RunningInNonCoroutineException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Exception;

class RunningInNonCoroutineException extends RuntimeException
Expand Down
1 change: 1 addition & 0 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Exception;

class RuntimeException extends \RuntimeException
Expand Down
1 change: 1 addition & 0 deletions src/Exception/SocketClosedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Exception;

class SocketClosedException extends RuntimeException
Expand Down
1 change: 1 addition & 0 deletions src/Exception/SocketConnectException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Exception;

class SocketConnectException extends RuntimeException
Expand Down
1 change: 1 addition & 0 deletions src/Exception/SocketTimeoutException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Exception;

class SocketTimeoutException extends RuntimeException
Expand Down
1 change: 1 addition & 0 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

class Extension
Expand Down
1 change: 1 addition & 0 deletions src/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

use Hyperf\Engine\Contract\WebSocket\FrameInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http;

use Hyperf\Engine\Contract\Http\ClientInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Http/EventStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http;

use Hyperf\Engine\Contract\Http\Writable;
Expand Down
1 change: 1 addition & 0 deletions src/Http/FdGetter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http;

use Swoole\Http\Response;
Expand Down
1 change: 1 addition & 0 deletions src/Http/RawResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http;

use Hyperf\Engine\Contract\Http\RawResponseInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Http/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http;

use Hyperf\Engine\Contract\Http\ServerInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Http/ServerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http;

use Hyperf\Contract\StdoutLoggerInterface;
Expand Down
4 changes: 3 additions & 1 deletion src/Http/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http;

use BadMethodCallException;
use Hyperf\Engine\Exception\RuntimeException;
use Psr\Http\Message\StreamInterface;
use Stringable;
use Throwable;

class Stream implements StreamInterface, Stringable
{
Expand Down Expand Up @@ -45,7 +47,7 @@ public function __toString(): string
{
try {
return $this->getContents();
} catch (\Throwable) {
} catch (Throwable) {
return '';
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Http/V2/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http\V2;

use Hyperf\Engine\Contract\Http\V2\ClientInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Http/V2/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http\V2;

use Hyperf\Engine\Contract\Http\V2\ClientFactoryInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Http/V2/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http\V2;

use Hyperf\Engine\Contract\Http\V2\RequestInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Http/V2/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http\V2;

use Hyperf\Engine\Contract\Http\V2\ResponseInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Http/WritableConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Http;

use Hyperf\Engine\Contract\Http\Writable;
Expand Down
1 change: 1 addition & 0 deletions src/ResponseEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

use Hyperf\Contract\StdoutLoggerInterface;
Expand Down
1 change: 1 addition & 0 deletions src/SafeSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

use Hyperf\Engine\Contract\SocketInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Signal.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

use Hyperf\Engine\Contract\SignalInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine;

use Hyperf\Engine\Contract\SocketInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Socket/SocketFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Socket;

use Hyperf\Engine\Contract\Socket\SocketFactoryInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Socket/SocketOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\Socket;

use Hyperf\Engine\Contract\Socket\SocketOptionInterface;
Expand Down
1 change: 1 addition & 0 deletions src/WebSocket/Frame.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\WebSocket;

use Hyperf\Engine\Contract\WebSocket\FrameInterface;
Expand Down
1 change: 1 addition & 0 deletions src/WebSocket/Opcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\WebSocket;

class Opcode
Expand Down
1 change: 1 addition & 0 deletions src/WebSocket/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\WebSocket;

use Hyperf\Engine\Contract\WebSocket\FrameInterface;
Expand Down
1 change: 1 addition & 0 deletions src/WebSocket/WebSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Engine\WebSocket;

use Hyperf\Engine\Contract\WebSocket\WebSocketInterface;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Cases;

use Mockery;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/ChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Cases;

use Hyperf\Engine\Channel;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Cases;

use GuzzleHttp;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/ConstantTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Cases;

use Hyperf\Engine\Constant;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/CoroutineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Cases;

use ArrayObject;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Cases;

use Hyperf\Engine\Constant;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Cases;

use Hyperf\Engine\Extension;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/Http2ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Cases;

use Hyperf\Engine\Http\V2\Client;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/HttpServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Cases;

use Hyperf\Engine\Http\Client;
Expand Down
Loading

0 comments on commit 7241ca9

Please sign in to comment.