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 cb06cab commit e5638f8
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Annotation/Signal.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\Signal\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\Signal;

use Hyperf\Signal\Listener\SignalDeregisterListener;
Expand Down
1 change: 1 addition & 0 deletions src/Handler/CoroutineServerStopHandler.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\Signal\Handler;

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

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

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

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

interface SignalHandlerInterface
Expand Down
3 changes: 2 additions & 1 deletion src/SignalManager.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\Signal;

use Hyperf\Contract\ConfigInterface;
Expand Down Expand Up @@ -39,7 +40,7 @@ public function __construct(protected ContainerInterface $container)
public function init()
{
foreach ($this->getQueue() as $class) {
/** @var SignalHandlerInterface $handler */
/** @var SignalHandler $handler */
$handler = $this->container->get($class);
foreach ($handler->listen() as [$process, $signal]) {
if ($process & SignalHandler::WORKER) {
Expand Down
1 change: 1 addition & 0 deletions tests/SignalManagerTest.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\Signal;

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

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

use Hyperf\Context\Context;
Expand Down

0 comments on commit e5638f8

Please sign in to comment.