Skip to content

Commit 40c6cb3

Browse files
refactor(Command): modify and refactor CreatorRedisRepository
1 parent 055d02a commit 40c6cb3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Creators/CreatorRedisRepository.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace Eghamat24\DatabaseRepository\Creators;
44

5-
use Illuminate\Support\Str;
6-
use Eghamat24\DatabaseRepository\CustomMySqlQueries;
7-
85
class CreatorRedisRepository implements IClassCreator
96
{
107
public function __construct(
@@ -38,7 +35,7 @@ public function getClassName(): string
3835

3936
public function getExtendSection(): string
4037
{
41-
return "extends RedisRepository";
38+
return 'extends RedisRepository';
4239
}
4340

4441
public function createAttributes(): array
@@ -54,9 +51,9 @@ public function createFunctions(): array
5451
return $functions;
5552
}
5653

57-
public function getConstructRedis(string $constructStub)
54+
public function getConstructRedis(string $constructStub): array|string
5855
{
59-
return str_replace("{{Strategy}}", $this->strategyName, $constructStub);
56+
return str_replace('{{Strategy}}', $this->strategyName, $constructStub);
6057
}
6158

6259
}

0 commit comments

Comments
 (0)