Skip to content

Commit

Permalink
Format code by the latest cs-fixer. (#6617)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored Mar 23, 2024
1 parent 4c837ef commit 004ee53
Show file tree
Hide file tree
Showing 38 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/AbstractConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq;

use Psr\Container\ContainerInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq;

use Psr\Http\Message\ResponseInterface;
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 group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq;

use Hyperf\Nsq\Listener\BeforeMainServerStartListener;
Expand Down
1 change: 1 addition & 0 deletions src/ConsumerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq;

use Hyperf\Contract\ConfigInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Event/AfterConsume.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Event;

use Hyperf\Nsq\AbstractConsumer;
Expand Down
1 change: 1 addition & 0 deletions src/Event/AfterSubscribe.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Event;

class AfterSubscribe extends Event
Expand Down
1 change: 1 addition & 0 deletions src/Event/BeforeConsume.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Event;

class BeforeConsume extends Consume
Expand Down
1 change: 1 addition & 0 deletions src/Event/BeforeSubscribe.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Event;

class BeforeSubscribe extends Event
Expand Down
1 change: 1 addition & 0 deletions src/Event/Consume.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Event;

use Hyperf\Nsq\AbstractConsumer;
Expand Down
1 change: 1 addition & 0 deletions src/Event/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Event;

use Hyperf\Nsq\AbstractConsumer;
Expand Down
1 change: 1 addition & 0 deletions src/Event/FailToConsume.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Event;

use Hyperf\Nsq\AbstractConsumer;
Expand Down
1 change: 1 addition & 0 deletions src/Exception/SocketSendException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Exception;

use RuntimeException;
Expand Down
1 change: 1 addition & 0 deletions src/Listener/BeforeMainServerStartListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Listener;

use Hyperf\Event\Contract\ListenerInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq;

class Message
Expand Down
1 change: 1 addition & 0 deletions src/MessageBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq;

use Hyperf\CodeParser\Package;
Expand Down
3 changes: 2 additions & 1 deletion src/Nsq.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq;

use Closure;
Expand Down Expand Up @@ -49,7 +50,7 @@ public function __construct(protected ContainerInterface $container, string $poo
/**
* @param string|string[] $message
*/
public function publish(string $topic, string|array $message, float $deferTime = 0.0, bool $confirm = false): bool
public function publish(string $topic, array|string $message, float $deferTime = 0.0, bool $confirm = false): bool
{
if (is_array($message)) {
if ($deferTime > 0) {
Expand Down
1 change: 1 addition & 0 deletions src/Nsqd/AbstractEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Nsqd;

abstract class AbstractEndpoint
Expand Down
1 change: 1 addition & 0 deletions src/Nsqd/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Nsqd;

use GuzzleHttp\RequestOptions;
Expand Down
1 change: 1 addition & 0 deletions src/Nsqd/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Nsqd;

use GuzzleHttp\RequestOptions;
Expand Down
1 change: 1 addition & 0 deletions src/Nsqd/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Nsqd;

use GuzzleHttp;
Expand Down
1 change: 1 addition & 0 deletions src/Nsqd/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Nsqd;

interface ClientInterface extends \Hyperf\Nsq\ClientInterface
Expand Down
1 change: 1 addition & 0 deletions src/Nsqd/Topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Nsqd;

use GuzzleHttp\RequestOptions;
Expand Down
1 change: 1 addition & 0 deletions src/Packer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq;

class Packer
Expand Down
1 change: 1 addition & 0 deletions src/Pool/NsqConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Pool;

use Hyperf\Collection\Arr;
Expand Down
1 change: 1 addition & 0 deletions src/Pool/NsqPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Pool;

use Hyperf\Collection\Arr;
Expand Down
1 change: 1 addition & 0 deletions src/Pool/NsqPoolFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq\Pool;

use Hyperf\Di\Container;
Expand Down
1 change: 1 addition & 0 deletions src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq;

class Result
Expand Down
1 change: 1 addition & 0 deletions src/Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Nsq;

use Hyperf\Codec\Json;
Expand Down
1 change: 1 addition & 0 deletions tests/ConsumerManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Nsq;

use Hyperf\Config\Config;
Expand Down
1 change: 1 addition & 0 deletions tests/HttpClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Nsq;

use Hyperf\Config\Config;
Expand Down
1 change: 1 addition & 0 deletions tests/NsqTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Nsq;

use Hyperf\Coroutine\Coroutine;
Expand Down
1 change: 1 addition & 0 deletions tests/NsqdApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Nsq;

use Hyperf\Config\Config;
Expand Down
1 change: 1 addition & 0 deletions tests/Stub/ContainerStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Nsq\Stub;

use Hyperf\Config\Config;
Expand Down
1 change: 1 addition & 0 deletions tests/Stub/CoroutineHandlerStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Nsq\Stub;

use Hyperf\Guzzle\CoroutineHandler;
Expand Down
1 change: 1 addition & 0 deletions tests/Stub/DemoConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Nsq\Stub;

use Hyperf\Nsq\AbstractConsumer;
Expand Down
1 change: 1 addition & 0 deletions tests/Stub/DisabledDemoConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Nsq\Stub;

use Hyperf\Nsq\AbstractConsumer;
Expand Down
1 change: 1 addition & 0 deletions tests/SubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Nsq;

use Hyperf\Codec\Json;
Expand Down

0 comments on commit 004ee53

Please sign in to comment.