Skip to content

Commit 4f2a26c

Browse files
authored
Format code by the latest cs-fixer. (#6617)
1 parent 72d2432 commit 4f2a26c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+48
-3
lines changed

src/Annotation/AsyncQueueMessage.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Annotation;
1314

1415
use Attribute;

src/AnnotationJob.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue;
1314

1415
use Hyperf\Context\ApplicationContext;

src/Aspect/AsyncQueueAspect.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Aspect;
1314

1415
use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;

src/Command/FlushFailedMessageCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Command;
1314

1415
use Hyperf\AsyncQueue\Driver\DriverFactory;

src/Command/InfoCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Command;
1314

1415
use Hyperf\AsyncQueue\Driver\DriverFactory;

src/Command/ReloadFailedMessageCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Command;
1314

1415
use Hyperf\AsyncQueue\Driver\DriverFactory;

src/ConfigProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue;
1314

1415
use Hyperf\AsyncQueue\Aspect\AsyncQueueAspect;

src/Driver/ChannelConfig.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Driver;
1314

1415
use Hyperf\AsyncQueue\Exception\InvalidQueueException;

src/Driver/Driver.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Driver;
1314

1415
use Hyperf\AsyncQueue\Event\AfterHandle;

src/Driver/DriverFactory.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Driver;
1314

1415
use Hyperf\AsyncQueue\Exception\InvalidDriverException;

src/Driver/DriverInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Driver;
1314

1415
use Hyperf\AsyncQueue\JobInterface;

src/Driver/RedisDriver.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Driver;
1314

1415
use Hyperf\AsyncQueue\Exception\InvalidQueueException;

src/Environment.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue;
1314

1415
use Hyperf\Context\Context;

src/Event/AfterHandle.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Event;
1314

1415
class AfterHandle extends Event

src/Event/BeforeHandle.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Event;
1314

1415
class BeforeHandle extends Event

src/Event/Event.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Event;
1314

1415
use Hyperf\AsyncQueue\MessageInterface;

src/Event/FailedHandle.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Event;
1314

1415
use Hyperf\AsyncQueue\MessageInterface;

src/Event/QueueLength.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Event;
1314

1415
use Hyperf\AsyncQueue\Driver\DriverInterface;

src/Event/RetryHandle.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Event;
1314

1415
use Hyperf\AsyncQueue\MessageInterface;

src/Exception/InvalidDriverException.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Exception;
1314

1415
use RuntimeException;

src/Exception/InvalidPackerException.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Exception;
1314

1415
use RuntimeException;

src/Exception/InvalidQueueException.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Exception;
1314

1415
use RuntimeException;

src/Functions.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue;
1314

1415
use Hyperf\AsyncQueue\Driver\DriverFactory;

src/Job.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue;
1314

1415
use Hyperf\Contract\CompressInterface;

src/JobInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue;
1314

1415
use Throwable;

src/JobMessage.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue;
1314

1415
use Hyperf\Contract\CompressInterface;

src/Listener/QueueHandleListener.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Listener;
1314

1415
use Hyperf\AsyncQueue\AnnotationJob;

src/Listener/QueueLengthListener.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Listener;
1314

1415
use Hyperf\AsyncQueue\Event\QueueLength;

src/Listener/ReloadChannelListener.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Listener;
1314

1415
use Hyperf\AsyncQueue\Event\QueueLength;

src/MessageInterface.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue;
1314

1415
interface MessageInterface

src/Process/ConsumerProcess.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\AsyncQueue\Process;
1314

1415
use Hyperf\AsyncQueue\Driver\DriverFactory;

tests/AsyncQueueAspectTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue;
1314

1415
use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;

tests/DriverTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue;
1314

1415
use Hyperf\AsyncQueue\Driver\ChannelConfig;

tests/JobMessageTest.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue;
1314

1415
use Hyperf\AsyncQueue\JobInterface;
1516
use Hyperf\AsyncQueue\JobMessage;
1617
use Hyperf\AsyncQueue\MessageInterface;
1718
use HyperfTest\AsyncQueue\Stub\DemoJob;
19+
use HyperfTest\AsyncQueue\Stub\OldJobMessage;
1820
use PHPUnit\Framework\Attributes\CoversNothing;
1921
use PHPUnit\Framework\TestCase;
2022

@@ -99,8 +101,8 @@ public function testUnserializeAsOldJobMessage()
99101

100102
$serialized = serialize($message);
101103
$serialized = str_replace(
102-
sprintf('O:%d:"%s', strlen(\Hyperf\AsyncQueue\JobMessage::class), \Hyperf\AsyncQueue\JobMessage::class),
103-
sprintf('O:%d:"%s', strlen(\HyperfTest\AsyncQueue\Stub\OldJobMessage::class), \HyperfTest\AsyncQueue\Stub\OldJobMessage::class),
104+
sprintf('O:%d:"%s', strlen(JobMessage::class), JobMessage::class),
105+
sprintf('O:%d:"%s', strlen(OldJobMessage::class), OldJobMessage::class),
104106
$serialized
105107
);
106108
$message = unserialize($serialized);

tests/ListenerTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue;
1314

1415
use Hyperf\AsyncQueue\Driver\DriverInterface;

tests/RedisDriverTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue;
1314

1415
use Hyperf\AsyncQueue\Driver\ChannelConfig;

tests/Stub/DemoJob.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue\Stub;
1314

1415
use Hyperf\AsyncQueue\Job;

tests/Stub/DemoModel.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue\Stub;
1314

1415
use Hyperf\Context\Context;

tests/Stub/DemoModelMeta.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue\Stub;
1314

1415
use Hyperf\Context\Context;

tests/Stub/FooProxy.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue\Stub;
1314

1415
use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;

tests/Stub/OldJobMessage.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue\Stub;
1314

15+
use Hyperf\AsyncQueue\JobMessage;
1416
use Hyperf\Contract\UnCompressInterface;
1517

16-
class OldJobMessage extends \Hyperf\AsyncQueue\JobMessage
18+
class OldJobMessage extends JobMessage
1719
{
1820
public function __unserialize(array $data): void
1921
{

tests/Stub/Redis.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue\Stub;
1314

1415
use Hyperf\Context\Context;

tests/Stub/RedisDriverStub.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\AsyncQueue\Stub;
1314

1415
use Hyperf\AsyncQueue\Driver\RedisDriver;

0 commit comments

Comments
 (0)