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 committed Mar 23, 2024
1 parent 6eada5f commit 8d00868
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Annotation/Listener.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\Event\Annotation;

use Attribute;
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\Event;

use Psr\EventDispatcher\EventDispatcherInterface;
Expand Down
1 change: 1 addition & 0 deletions src/Contract/ListenerInterface.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\Event\Contract;

interface ListenerInterface
Expand Down
1 change: 1 addition & 0 deletions src/EventDispatcher.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\Event;

use Psr\EventDispatcher\EventDispatcherInterface;
Expand Down
1 change: 1 addition & 0 deletions src/EventDispatcherFactory.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\Event;

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

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

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

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

trait Stoppable
Expand Down
4 changes: 3 additions & 1 deletion tests/ConfigProviderTest.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\Event;

use Hyperf\Event\ConfigProvider;
use Hyperf\Event\EventDispatcherFactory;
use Hyperf\Event\ListenerProviderFactory;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\EventDispatcher\ListenerProviderInterface;
Expand All @@ -22,7 24,7 @@
* @internal
* @coversNothing
*/
#[\PHPUnit\Framework\Attributes\CoversClass(\Hyperf\Event\ConfigProvider::class)]
#[CoversClass(ConfigProvider::class)]
class ConfigProviderTest extends TestCase
{
public function testInvoke()
Expand Down
1 change: 1 addition & 0 deletions tests/Event/Alpha.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\Event\Event;

use Hyperf\Event\Stoppable;
Expand Down
1 change: 1 addition & 0 deletions tests/Event/Beta.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\Event\Event;

class Beta
Expand Down
1 change: 1 addition & 0 deletions tests/Event/PriorityEvent.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\Event\Event;

class PriorityEvent
Expand Down
8 changes: 3 additions & 5 deletions tests/EventDispatcherTest.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\Event;

use Hyperf\Config\Config;
Expand All @@ -25,6 26,7 @@
use HyperfTest\Event\Listener\PriorityListener;
use Mockery;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerInterface;
use Psr\EventDispatcher\EventDispatcherInterface;
Expand All @@ -35,11 37,7 @@
* @internal
* @coversNothing
*/
#[\PHPUnit\Framework\Attributes\CoversClass(\Hyperf\Event\EventDispatcher::class)]
/**
* @internal
* @coversNothing
*/
#[CoversClass(EventDispatcher::class)]
class EventDispatcherTest extends TestCase
{
use MockeryPHPUnitIntegration;
Expand Down
1 change: 1 addition & 0 deletions tests/Listener/AlphaListener.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\Event\Listener;

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

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

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

use Hyperf\Event\ListenerProvider;
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\Event;

use Hyperf\Config\Config;
Expand Down

0 comments on commit 8d00868

Please sign in to comment.