Skip to content

Commit 0170df4

Browse files
committed
Merge branch 'task/multipleFactory' of github.com:splitio/php-client into task/multipleFactory
2 parents bffeba0 + 545a5de commit 0170df4

40 files changed

+57
-103
lines changed

src/SplitIO/Component/Cache/ImpressionCache.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
namespace SplitIO\Component\Cache;
33

44
use SplitIO\Component\Common\Context;
5-
use SplitIO\Component\Cache\KeyFactory;
65
use SplitIO\Sdk\QueueMetadataMessage;
76
use SplitIO\Component\Cache\Pool;
87

src/SplitIO/Component/Cache/SplitCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private static function getSplitNameFromCacheKey($key)
4444
}
4545

4646
/**
47-
* @return long
47+
* @return int
4848
*/
4949
public function getChangeNumber()
5050
{
@@ -64,7 +64,7 @@ public function getSplit($splitName)
6464

6565
/**
6666
* @param array $splitNames
67-
* @return string JSON representation
67+
* @return array
6868
*/
6969
public function getSplits($splitNames)
7070
{

src/SplitIO/Component/Cache/SplitCacheInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
interface SplitCacheInterface
55
{
66
/**
7-
* @return long
7+
* @return int
88
*/
99
public function getChangeNumber();
1010

src/SplitIO/Component/Cache/Storage/Adapter/PRedis.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
namespace SplitIO\Component\Cache\Storage\Adapter;
33

44
use SplitIO\Component\Cache\Storage\Exception\AdapterException;
5-
use SplitIO\Component\Cache\Item;
65
use SplitIO\Component\Utils as SplitIOUtils;
76
use SplitIO\Component\Common\Context;
87

src/SplitIO/Component/Cache/Storage/Adapter/SafeRedisWrapper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22
namespace SplitIO\Component\Cache\Storage\Adapter;
33

4-
use SplitIO\Component\Cache\Storage\Exception\AdapterException;
5-
use SplitIO\Component\Cache\Item;
6-
use SplitIO\Component\Utils as SplitIOUtils;
74
use SplitIO\Component\Common\Context;
85

96
/**

src/SplitIO/Component/Common/Context.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ class Context
1818
. "Make sure you definitely want this additional instance. We recommend keeping only one instance of "
1919
. "the factory at all times (Singleton pattern) and reusing it throughout your application.";
2020

21-
private \SplitIO\Component\Log\Logger $logger;
21+
private Logger $logger;
2222

2323
private array $factoryTracker = array();
2424

2525
private string $ipAddress = "";
2626

2727
/**
28-
* @var Singleton The reference to *Singleton* instance of this class
28+
* @var Context The reference to *Singleton* instance of this class
2929
*/
3030
private static $instance;
3131

src/SplitIO/Component/Initialization/LoggerFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class LoggerFactory
1616
* Builds defaultLogger
1717
*
1818
* @param $options
19-
* @return SplitIO\Component\Log\Handler
19+
* @return \SplitIO\Component\Log\Handler\LogHandlerInterface
2020
*/
2121
private static function buildAdapter(array $options)
2222
{
@@ -42,7 +42,7 @@ private static function buildAdapter(array $options)
4242
* Builds logger
4343
*
4444
* @param $options
45-
* @return SplitIO\Component\Log\Logger
45+
* @return \SplitIO\Component\Log\Logger
4646
*/
4747
public static function setupLogger(array $options)
4848
{

src/SplitIO/Component/Log/Logger.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
namespace SplitIO\Component\Log;
33

4-
use Psr\Log\LoggerInterface;
54
use Psr\Log\LogLevel;
65
use \SplitIO\Component\Log\Handler\LogHandlerInterface;
76
use SplitIO\Component\Log\Handler\VoidHandler;

src/SplitIO/Engine.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
namespace SplitIO;
33

44
use SplitIO\Grammar\Split as SplitGrammar;
5-
use SplitIO\Grammar\Condition;
65
use SplitIO\Engine\Splitter;
76
use SplitIO\Grammar\Condition\ConditionTypeEnum;
87
use SplitIO\Sdk\Impressions\ImpressionLabel;

src/SplitIO/Engine/Hash/HashFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class HashFactory
66
{
77
/**
88
* @param $algo
9-
* @return \SplitIO\Engine\HashInterface
9+
* @return \SplitIO\Engine\Hash\HashInterface
1010
*/
1111
public static function getHashAlgorithm($algo)
1212
{

0 commit comments

Comments
 (0)