Skip to content

Commit

Permalink
style(php-cs-fixer): fix coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions authored and github-actions[bot] committed Oct 28, 2024
1 parent a1d6236 commit ca4f27d
Show file tree
Hide file tree
Showing 19 changed files with 5 additions and 37 deletions.
1 change: 0 additions & 1 deletion src/Exception/Client/WorkflowException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
class WorkflowException extends TemporalException
{
private WorkflowExecution $execution;

private ?string $type;

public function __construct(
Expand Down
1 change: 0 additions & 1 deletion src/Exception/Client/WorkflowQueryRejectedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
class WorkflowQueryRejectedException extends WorkflowQueryException
{
private int $queryRejectCondition;

private int $workflowExecutionStatus;

public function __construct(
Expand Down
2 changes: 0 additions & 2 deletions src/Exception/WorkflowExecutionFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
class WorkflowExecutionFailedException extends TemporalException
{
private Failure $failure;

private int $lastWorkflowTaskCompletedEventId;

private int $retryState;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Internal/Client/WorkflowStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ static function (TerminateInput $input) use ($serviceClient, $clientOptions, $de
/**
*
*
* @param null|mixed $type
* @throws \Throwable
*/
public function getResult($type = null, int $timeout = null): mixed
Expand Down
2 changes: 0 additions & 2 deletions src/Internal/Declaration/Prototype/ActivityPrototype.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
final class ActivityPrototype extends Prototype
{
private ?MethodRetry $methodRetry = null;

private ?ActivityInstance $instance = null;

private ?\Closure $factory = null;
private bool $isLocalActivity;

Expand Down
2 changes: 0 additions & 2 deletions src/Internal/Declaration/Prototype/Prototype.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
abstract class Prototype implements PrototypeInterface
{
protected string $name;

protected ?\ReflectionMethod $handler;

private \ReflectionClass $class;

public function __construct(string $name, ?\ReflectionMethod $handler, \ReflectionClass $class)
Expand Down
2 changes: 0 additions & 2 deletions src/Internal/Declaration/Prototype/WorkflowPrototype.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ final class WorkflowPrototype extends Prototype
private array $updateValidators = [];

private ?CronSchedule $cronSchedule = null;

private ?MethodRetry $methodRetry = null;

private ?ReturnType $returnType = null;

public function getCronSchedule(): ?CronSchedule
Expand Down
2 changes: 0 additions & 2 deletions src/Internal/Marshaller/Mapper/AttributeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
class AttributeMapper implements MapperInterface
{
private \ReflectionClass $class;

private ReaderInterface $reader;

/**
Expand All @@ -40,7 +39,6 @@ class AttributeMapper implements MapperInterface
private array $setters = [];

private Scope $scope;

private TypeFactoryInterface $factory;

public function __construct(\ReflectionClass $class, TypeFactoryInterface $factory, ReaderInterface $reader)
Expand Down
1 change: 0 additions & 1 deletion src/Internal/Marshaller/Marshaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Marshaller implements MarshallerInterface
private array $mappers = [];

private TypeFactory $type;

private MapperFactoryInterface $mapper;

/**
Expand Down
4 changes: 0 additions & 4 deletions src/Internal/Transport/CompletableResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,9 @@ class CompletableResult implements CompletableResultInterface
private $value;

private WorkflowContextInterface $context;

private LoopInterface $loop;

private PromiseInterface $promise;

private Deferred $deferred;

private string $layer;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Internal/Transport/Router/GetWorkerInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
final class GetWorkerInfo extends Route
{
private RepositoryInterface $queues;

private MarshallerInterface $marshaller;

public function __construct(RepositoryInterface $queues, MarshallerInterface $marshaller)
Expand Down
2 changes: 0 additions & 2 deletions src/Internal/Workflow/ActivityProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ final class ActivityProxy extends Proxy
private array $activities;

private string $class;

private ActivityOptionsInterface $options;

private WorkflowContextInterface $ctx;

/**
Expand Down
4 changes: 0 additions & 4 deletions src/Internal/Workflow/ContinueAsNewProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,9 @@ class ContinueAsNewProxy extends Proxy
'Workflow "%s" has already been called within this "continue as new" stub';

private string $class;

private WorkflowPrototype $workflow;

private ContinueAsNewOptions $options;

private WorkflowContextInterface $context;

private bool $isContinued = false;

public function __construct(
Expand Down
1 change: 0 additions & 1 deletion src/Internal/Workflow/ExternalWorkflowProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class ExternalWorkflowProxy extends Proxy
private string $class;

private WorkflowPrototype $workflow;

private ExternalWorkflowStubInterface $stub;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Promise.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ static function (iterable $array) use (
*
* If `$promiseOrValue` is a promise, it will be returned as is.
*
* @param null|mixed $promiseOrValue
*/
public static function resolve($promiseOrValue = null): PromiseInterface
{
Expand All @@ -292,6 +293,7 @@ public static function resolve($promiseOrValue = null): PromiseInterface
* throwing an exception. For example, it allows you to propagate a rejection with
* the value of another promise.
*
* @param null|mixed $promiseOrValue
* @return PromiseInterface<never>
*/
public static function reject($promiseOrValue = null): PromiseInterface
Expand Down
1 change: 0 additions & 1 deletion src/Worker/Transport/Codec/ProtoCodec.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
final class ProtoCodec implements CodecInterface
{
private Decoder $parser;

private Encoder $encoder;

public function __construct(DataConverterInterface $dataConverter)
Expand Down
3 changes: 2 additions & 1 deletion src/Worker/Transport/RPCConnectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
interface RPCConnectionInterface
{
/**
* @return mixed
*
* @param mixed $payload
* @return mixed
* @throws TransportException
*/
public function call(string $method, $payload);
Expand Down
4 changes: 0 additions & 4 deletions src/Worker/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@ class Worker implements WorkerInterface, EventListenerInterface, DispatcherInter
use EventEmitterTrait;

private string $name;

private WorkerOptions $options;

private RouterInterface $router;

private ServiceContainer $services;

private RPCConnectionInterface $rpc;

public function __construct(
Expand Down
6 changes: 0 additions & 6 deletions src/WorkerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ class WorkerFactory implements WorkerFactoryInterface, LoopInterface
private const HEADER_TASK_QUEUE = 'taskQueue';

protected DataConverterInterface $converter;

protected ReaderInterface $reader;

protected RouterInterface $router;

/**
Expand All @@ -111,13 +109,9 @@ class WorkerFactory implements WorkerFactoryInterface, LoopInterface
protected RepositoryInterface $queues;

protected CodecInterface $codec;

protected ClientInterface $client;

protected ServerInterface $server;

protected QueueInterface $responses;

protected RPCConnectionInterface $rpc;

/**
Expand Down

0 comments on commit ca4f27d

Please sign in to comment.