Skip to content

Commit 8c3eef5

Browse files
committed
typos
1 parent 5fb935d commit 8c3eef5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/RedisSimpleLockFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class RedisSimpleLockFactory implements TtlFactory
1212
private $client;
1313
private $defaultTtl;
1414
private $logger;
15-
private $ignoredSapis;
15+
private $ignoredSAPIs;
1616

17-
public function __construct(Client $client, $defaultTtl = 10000, LoggerInterface $logger = null, array $ignoredSapis = [])
17+
public function __construct(Client $client, $defaultTtl = 10000, LoggerInterface $logger = null, array $ignoredSAPIs = [])
1818
{
1919
$this->client = $client;
2020
$this->defaultTtl = $defaultTtl;
2121
$this->logger = $logger ?: new NullLogger;
22-
$this->ignoredSapis = $ignoredSapis;
22+
$this->ignoredSAPIs = $ignoredSAPIs;
2323
}
2424

2525
/**
@@ -32,6 +32,6 @@ public function __construct(Client $client, $defaultTtl = 10000, LoggerInterface
3232
*/
3333
public function create($identifier, $ttl = null)
3434
{
35-
return new RedisSimpleLock($identifier, $this->client, $ttl ?: $this->defaultTtl, $this->logger, $this->ignoredSapis);
35+
return new RedisSimpleLock($identifier, $this->client, $ttl ?: $this->defaultTtl, $this->logger, $this->ignoredSAPIs);
3636
}
3737
}

tests/RedisSimpleLockFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protected function setUp()
1313
$this->redisClient->flushdb();
1414
}
1515

16-
public function testCreateIgnoredSapisLock()
16+
public function testCreateIgnoredSAPIsLock()
1717
{
1818
$factory = new RedisSimpleLockFactory($this->redisClient, 50, null, [php_sapi_name()]);
1919
$lock = $factory->create('lock identifier');

0 commit comments

Comments
 (0)