Skip to content

Commit 8d00868

Browse files
authored
Format code by the latest cs-fixer. (#6617)
1 parent 6eada5f commit 8d00868

19 files changed

+23
-6
lines changed

src/Annotation/Listener.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\Event\Annotation;
1314

1415
use Attribute;

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\Event;
1314

1415
use Psr\EventDispatcher\EventDispatcherInterface;

src/Contract/ListenerInterface.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\Event\Contract;
1314

1415
interface ListenerInterface

src/EventDispatcher.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\Event;
1314

1415
use Psr\EventDispatcher\EventDispatcherInterface;

src/EventDispatcherFactory.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\Event;
1314

1415
use Hyperf\Contract\StdoutLoggerInterface;

src/ListenerData.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\Event;
1314

1415
class ListenerData

src/ListenerProvider.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\Event;
1314

1415
use Hyperf\Stdlib\SplPriorityQueue;

src/ListenerProviderFactory.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\Event;
1314

1415
use Hyperf\Contract\ConfigInterface;

src/Stoppable.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\Event;
1314

1415
trait Stoppable

tests/ConfigProviderTest.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\Event;
1314

1415
use Hyperf\Event\ConfigProvider;
1516
use Hyperf\Event\EventDispatcherFactory;
1617
use Hyperf\Event\ListenerProviderFactory;
18+
use PHPUnit\Framework\Attributes\CoversClass;
1719
use PHPUnit\Framework\TestCase;
1820
use Psr\EventDispatcher\EventDispatcherInterface;
1921
use Psr\EventDispatcher\ListenerProviderInterface;
@@ -22,7 +24,7 @@
2224
* @internal
2325
* @coversNothing
2426
*/
25-
#[\PHPUnit\Framework\Attributes\CoversClass(\Hyperf\Event\ConfigProvider::class)]
27+
#[CoversClass(ConfigProvider::class)]
2628
class ConfigProviderTest extends TestCase
2729
{
2830
public function testInvoke()

tests/Event/Alpha.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\Event\Event;
1314

1415
use Hyperf\Event\Stoppable;

tests/Event/Beta.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\Event\Event;
1314

1415
class Beta

tests/Event/PriorityEvent.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\Event\Event;
1314

1415
class PriorityEvent

tests/EventDispatcherTest.php

+3-5
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\Event;
1314

1415
use Hyperf\Config\Config;
@@ -25,6 +26,7 @@
2526
use HyperfTest\Event\Listener\PriorityListener;
2627
use Mockery;
2728
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
29+
use PHPUnit\Framework\Attributes\CoversClass;
2830
use PHPUnit\Framework\TestCase;
2931
use Psr\Container\ContainerInterface;
3032
use Psr\EventDispatcher\EventDispatcherInterface;
@@ -35,11 +37,7 @@
3537
* @internal
3638
* @coversNothing
3739
*/
38-
#[\PHPUnit\Framework\Attributes\CoversClass(\Hyperf\Event\EventDispatcher::class)]
39-
/**
40-
* @internal
41-
* @coversNothing
42-
*/
40+
#[CoversClass(EventDispatcher::class)]
4341
class EventDispatcherTest extends TestCase
4442
{
4543
use MockeryPHPUnitIntegration;

tests/Listener/AlphaListener.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\Event\Listener;
1314

1415
use Hyperf\Event\Contract\ListenerInterface;

tests/Listener/BetaListener.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\Event\Listener;
1314

1415
use Hyperf\Event\Contract\ListenerInterface;

tests/Listener/PriorityListener.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\Event\Listener;
1314

1415
use Hyperf\Event\Contract\ListenerInterface;

tests/ListenerProviderTest.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\Event;
1314

1415
use Hyperf\Event\ListenerProvider;

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\Event;
1314

1415
use Hyperf\Config\Config;

0 commit comments

Comments
 (0)