Skip to content

Commit

Permalink
Apply rector
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Jun 20, 2023
1 parent 781bbb4 commit 4c96dde
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/Commands/CommitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ final class CommitCommand extends Command
/**
* @var \App\ConfigManager
*/
protected $configManager;
private $configManager;

/**
* @var \App\GeneratorManager
*/
protected $generatorManager;
private $generatorManager;

public function __construct(GeneratorManager $generatorManager)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Commands/ConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ final class ConfigCommand extends Command
/**
* @var \App\ConfigManager
*/
protected $configManager;
private $configManager;

public function __construct()
{
Expand Down
4 changes: 2 additions & 2 deletions app/GeneratorManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ protected function createDriver($driver)
throw new \InvalidArgumentException("Driver [$driver] not supported.");
}

protected function createOpenAIDriver(array $config): OpenAIGenerator
private function createOpenAIDriver(array $config): OpenAIGenerator
{
return new OpenAIGenerator($config);
}

protected function createOpenAIChatDriver(array $config): OpenAIChatGenerator
private function createOpenAIChatDriver(array $config): OpenAIChatGenerator
{
return new OpenAIChatGenerator($config);
}
Expand Down
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
// SetList::GMAGICK_TO_IMAGICK,
// SetList::MYSQL_TO_MYSQLI,
SetList::NAMING,
// SetList::PRIVATIZATION,
SetList::PRIVATIZATION,
SetList::TYPE_DECLARATION,
SetList::EARLY_RETURN,
SetList::INSTANCEOF,
Expand Down

0 comments on commit 4c96dde

Please sign in to comment.