Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Dec 5, 2023
1 parent c2c5efa commit 50e2f09
Show file tree
Hide file tree
Showing 52 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 @@ -86,6 +86,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/Config/DomainConfig.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\GoTask\Config;

use Hyperf\Contract\ConfigInterface;
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\GoTask;

use Hyperf\GoTask\Listener\CommandListener;
Expand Down
1 change: 1 addition & 0 deletions src/Exception/GoBuildException.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\GoTask\Exception;

use RuntimeException;
Expand Down
1 change: 1 addition & 0 deletions src/Exception/InvalidGoTaskConnectionException.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\GoTask\Exception;

use RuntimeException;
Expand Down
1 change: 1 addition & 0 deletions src/GoTask.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\GoTask;

use Hyperf\GoTask\IPC\IPCSenderInterface;
Expand Down
1 change: 1 addition & 0 deletions src/GoTaskConnection.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\GoTask;

use Hyperf\Contract\ConnectionInterface;
Expand Down
1 change: 1 addition & 0 deletions src/GoTaskConnectionPool.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\GoTask;

use Hyperf\Contract\ConnectionInterface;
Expand Down
1 change: 1 addition & 0 deletions src/GoTaskFactory.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\GoTask;

use Hyperf\GoTask\Config\DomainConfig;
Expand Down
1 change: 1 addition & 0 deletions src/GoTaskProxy.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\GoTask;

class GoTaskProxy implements GoTask
Expand Down
1 change: 1 addition & 0 deletions src/IPC/IPCReceiverInterface.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\GoTask\IPC;

interface IPCReceiverInterface
Expand Down
1 change: 1 addition & 0 deletions src/IPC/IPCSenderInterface.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\GoTask\IPC;

interface IPCSenderInterface
Expand Down
1 change: 1 addition & 0 deletions src/IPC/PipeIPCSender.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\GoTask\IPC;

use Hyperf\GoTask\GoTask;
Expand Down
1 change: 1 addition & 0 deletions src/IPC/SocketIPCReceiver.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\GoTask\IPC;

use Hyperf\Context\ApplicationContext;
Expand Down
1 change: 1 addition & 0 deletions src/IPC/SocketIPCSender.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\GoTask\IPC;

use Hyperf\GoTask\GoTask;
Expand Down
1 change: 1 addition & 0 deletions src/Listener/CommandListener.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\GoTask\Listener;

use Hyperf\Event\Contract\ListenerInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Listener/Go2PhpListener.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\GoTask\Listener;

use Hyperf\Command\Event\BeforeHandle;
Expand Down
1 change: 1 addition & 0 deletions src/Listener/LogRedirectListener.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\GoTask\Listener;

use Hyperf\Contract\StdoutLoggerInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Listener/PipeLockListener.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\GoTask\Listener;

use Hyperf\Event\Contract\ListenerInterface;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/Collection.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\GoTask\MongoClient;

use Hyperf\Contract\ConfigInterface;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/Database.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\GoTask\MongoClient;

use Hyperf\Contract\ConfigInterface;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/MongoClient.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\GoTask\MongoClient;

use Hyperf\Contract\ConfigInterface;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/MongoProxy.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\GoTask\MongoClient;

use Hyperf\GoTask\GoTask;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/MongoTrait.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\GoTask\MongoClient;

use stdClass;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/Type/BulkWriteResult.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\GoTask\MongoClient\Type;

use MongoDB\BSON\ObjectId;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/Type/DeleteResult.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\GoTask\MongoClient\Type;

use MongoDB\BSON\Unserializable;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/Type/IndexInfo.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\GoTask\MongoClient\Type;

use MongoDB\BSON\Unserializable;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/Type/InsertManyResult.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\GoTask\MongoClient\Type;

use MongoDB\BSON\ObjectId;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/Type/InsertOneResult.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\GoTask\MongoClient\Type;

use MongoDB\BSON\ObjectId;
Expand Down
1 change: 1 addition & 0 deletions src/MongoClient/Type/UpdateResult.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\GoTask\MongoClient\Type;

use MongoDB\BSON\Unserializable;
Expand Down
1 change: 1 addition & 0 deletions src/PipeGoTask.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\GoTask;

use Hyperf\GoTask\Config\DomainConfig;
Expand Down
1 change: 1 addition & 0 deletions src/Process/GoTaskProcess.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\GoTask\Process;

use Hyperf\GoTask\Config\DomainConfig;
Expand Down
1 change: 1 addition & 0 deletions src/Relay/ConnectionRelay.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\GoTask\Relay;

use Error;
Expand Down
1 change: 1 addition & 0 deletions src/Relay/CoroutineSocketRelay.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\GoTask\Relay;

use Error;
Expand Down
1 change: 1 addition & 0 deletions src/Relay/ProcessPipeRelay.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\GoTask\Relay;

use Error;
Expand Down
1 change: 1 addition & 0 deletions src/Relay/RelayInterface.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\GoTask\Relay;

interface RelayInterface extends \Spiral\Goridge\RelayInterface
Expand Down
1 change: 1 addition & 0 deletions src/Relay/SocketTransporter.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\GoTask\Relay;

use Spiral\Goridge\Exceptions\PrefixException;
Expand Down
1 change: 1 addition & 0 deletions src/SocketGoTask.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\GoTask;

use Hyperf\Context\Context;
Expand Down
1 change: 1 addition & 0 deletions src/SocketIPCFactory.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\GoTask;

use Hyperf\GoTask\Config\DomainConfig;
Expand Down
1 change: 1 addition & 0 deletions src/WithGoTask.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\GoTask;

interface WithGoTask
Expand Down
1 change: 1 addition & 0 deletions src/Wrapper/ByteWrapper.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\GoTask\Wrapper;

class ByteWrapper
Expand Down
1 change: 1 addition & 0 deletions src/Wrapper/ConfigWrapper.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\GoTask\Wrapper;

use Hyperf\Contract\ConfigInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Wrapper/LoggerWrapper.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\GoTask\Wrapper;

use Psr\Log\LoggerInterface;
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 Hyperf\Config\Config;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/CoroutineSocketTest.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\Coroutine\WaitGroup;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/GoTaskProxyTest.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\GoTask\GoTask;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/MongoDBTest.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\GoTask\MongoClient\MongoClient;
Expand Down
1 change: 1 addition & 0 deletions tests/Cases/ProcessPipeTest.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\Coroutine\WaitGroup;
Expand Down
3 changes: 2 additions & 1 deletion tests/Cases/SocketIPCReceiverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Cases;

use Hyperf\Coroutine\WaitGroup;
use Hyperf\GoTask\IPC\SocketIPCReceiver;
use Hyperf\GoTask\IPC\SocketIPCSender;
use Hyperf\GoTask\Relay\RelayInterface;
use Hyperf\Coroutine\WaitGroup;
use Spiral\Goridge\Exceptions\ServiceException;
use Throwable;

Expand Down
Loading

0 comments on commit 50e2f09

Please sign in to comment.