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 72d2432 commit 4f2a26c
Show file tree
Hide file tree
Showing 43 changed files with 48 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Annotation/AsyncQueueMessage.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\AsyncQueue\Annotation;

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

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

use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;
Expand Down
1 change: 1 addition & 0 deletions src/Command/FlushFailedMessageCommand.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\AsyncQueue\Command;

use Hyperf\AsyncQueue\Driver\DriverFactory;
Expand Down
1 change: 1 addition & 0 deletions src/Command/InfoCommand.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\AsyncQueue\Command;

use Hyperf\AsyncQueue\Driver\DriverFactory;
Expand Down
1 change: 1 addition & 0 deletions src/Command/ReloadFailedMessageCommand.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\AsyncQueue\Command;

use Hyperf\AsyncQueue\Driver\DriverFactory;
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\AsyncQueue;

use Hyperf\AsyncQueue\Aspect\AsyncQueueAspect;
Expand Down
1 change: 1 addition & 0 deletions src/Driver/ChannelConfig.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\AsyncQueue\Driver;

use Hyperf\AsyncQueue\Exception\InvalidQueueException;
Expand Down
1 change: 1 addition & 0 deletions src/Driver/Driver.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\AsyncQueue\Driver;

use Hyperf\AsyncQueue\Event\AfterHandle;
Expand Down
1 change: 1 addition & 0 deletions src/Driver/DriverFactory.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\AsyncQueue\Driver;

use Hyperf\AsyncQueue\Exception\InvalidDriverException;
Expand Down
1 change: 1 addition & 0 deletions src/Driver/DriverInterface.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\AsyncQueue\Driver;

use Hyperf\AsyncQueue\JobInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Driver/RedisDriver.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\AsyncQueue\Driver;

use Hyperf\AsyncQueue\Exception\InvalidQueueException;
Expand Down
1 change: 1 addition & 0 deletions src/Environment.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\AsyncQueue;

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

class AfterHandle extends Event
Expand Down
1 change: 1 addition & 0 deletions src/Event/BeforeHandle.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\AsyncQueue\Event;

class BeforeHandle extends Event
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 [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\AsyncQueue\Event;

use Hyperf\AsyncQueue\MessageInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Event/FailedHandle.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\AsyncQueue\Event;

use Hyperf\AsyncQueue\MessageInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Event/QueueLength.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\AsyncQueue\Event;

use Hyperf\AsyncQueue\Driver\DriverInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Event/RetryHandle.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\AsyncQueue\Event;

use Hyperf\AsyncQueue\MessageInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Exception/InvalidDriverException.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\AsyncQueue\Exception;

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

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

use RuntimeException;
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\AsyncQueue;

use Hyperf\AsyncQueue\Driver\DriverFactory;
Expand Down
1 change: 1 addition & 0 deletions src/Job.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\AsyncQueue;

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

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

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

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

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

use Hyperf\AsyncQueue\Event\QueueLength;
Expand Down
1 change: 1 addition & 0 deletions src/MessageInterface.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\AsyncQueue;

interface MessageInterface
Expand Down
1 change: 1 addition & 0 deletions src/Process/ConsumerProcess.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\AsyncQueue\Process;

use Hyperf\AsyncQueue\Driver\DriverFactory;
Expand Down
1 change: 1 addition & 0 deletions tests/AsyncQueueAspectTest.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\AsyncQueue;

use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;
Expand Down
1 change: 1 addition & 0 deletions tests/DriverTest.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\AsyncQueue;

use Hyperf\AsyncQueue\Driver\ChannelConfig;
Expand Down
6 changes: 4 additions & 2 deletions tests/JobMessageTest.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 HyperfTest\AsyncQueue;

use Hyperf\AsyncQueue\JobInterface;
use Hyperf\AsyncQueue\JobMessage;
use Hyperf\AsyncQueue\MessageInterface;
use HyperfTest\AsyncQueue\Stub\DemoJob;
use HyperfTest\AsyncQueue\Stub\OldJobMessage;
use PHPUnit\Framework\Attributes\CoversNothing;
use PHPUnit\Framework\TestCase;

Expand Down Expand Up @@ -99,8 +101,8 @@ public function testUnserializeAsOldJobMessage()

$serialized = serialize($message);
$serialized = str_replace(
sprintf('O:%d:"%s', strlen(\Hyperf\AsyncQueue\JobMessage::class), \Hyperf\AsyncQueue\JobMessage::class),
sprintf('O:%d:"%s', strlen(\HyperfTest\AsyncQueue\Stub\OldJobMessage::class), \HyperfTest\AsyncQueue\Stub\OldJobMessage::class),
sprintf('O:%d:"%s', strlen(JobMessage::class), JobMessage::class),
sprintf('O:%d:"%s', strlen(OldJobMessage::class), OldJobMessage::class),
$serialized
);
$message = unserialize($serialized);
Expand Down
1 change: 1 addition & 0 deletions tests/ListenerTest.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\AsyncQueue;

use Hyperf\AsyncQueue\Driver\DriverInterface;
Expand Down
1 change: 1 addition & 0 deletions tests/RedisDriverTest.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\AsyncQueue;

use Hyperf\AsyncQueue\Driver\ChannelConfig;
Expand Down
1 change: 1 addition & 0 deletions tests/Stub/DemoJob.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\AsyncQueue\Stub;

use Hyperf\AsyncQueue\Job;
Expand Down
1 change: 1 addition & 0 deletions tests/Stub/DemoModel.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\AsyncQueue\Stub;

use Hyperf\Context\Context;
Expand Down
1 change: 1 addition & 0 deletions tests/Stub/DemoModelMeta.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\AsyncQueue\Stub;

use Hyperf\Context\Context;
Expand Down
1 change: 1 addition & 0 deletions tests/Stub/FooProxy.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\AsyncQueue\Stub;

use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;
Expand Down
4 changes: 3 additions & 1 deletion tests/Stub/OldJobMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\AsyncQueue\Stub;

use Hyperf\AsyncQueue\JobMessage;
use Hyperf\Contract\UnCompressInterface;

class OldJobMessage extends \Hyperf\AsyncQueue\JobMessage
class OldJobMessage extends JobMessage
{
public function __unserialize(array $data): void
{
Expand Down
1 change: 1 addition & 0 deletions tests/Stub/Redis.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\AsyncQueue\Stub;

use Hyperf\Context\Context;
Expand Down
1 change: 1 addition & 0 deletions tests/Stub/RedisDriverStub.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\AsyncQueue\Stub;

use Hyperf\AsyncQueue\Driver\RedisDriver;
Expand Down

0 comments on commit 4f2a26c

Please sign in to comment.