Skip to content

Commit e089f2b

Browse files
committed
linting fixes
1 parent c523a17 commit e089f2b

File tree

12 files changed

+31
-20
lines changed

12 files changed

+31
-20
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"require-dev": {
3232
"phpunit/phpunit": "^9.0.0",
3333
"squizlabs/php_codesniffer": "3.*",
34-
"rogervila/php-sonarqube-scanner": "1.1.0"
34+
"rogervila/php-sonarqube-scanner": "1.1.0",
35+
"mockery/mockery": "^1.5"
3536
},
3637

3738
"autoload": {

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<testsuite name="component">
2525
<directory suffix="Test.php">tests/Suite/Component/</directory>
2626
</testsuite>
27-
<testsuite name="dynamic_configurations">
27+
<testsuite name="dynamic_configurations">
2828
<directory suffix="Test.php">tests/Suite/DynamicConfigurations/</directory>
2929
</testsuite>
3030
<testsuite name="engine">

src/SplitIO/Component/Cache/EventsCache.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class EventsCache
1717
/**
1818
* @param \SplitIO\Component\Cache\Pool $cache
1919
*/
20-
public function __construct(Pool $cache) {
20+
public function __construct(Pool $cache)
21+
{
2122
$this->cache = $cache;
2223
}
2324

src/SplitIO/Component/Cache/ImpressionCache.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ class ImpressionCache
1919
/**
2020
* @param \SplitIO\Component\Cache\Pool $cache
2121
*/
22-
public function __construct(Pool $cache) {
22+
public function __construct(Pool $cache)
23+
{
2324
$this->cache = $cache;
2425
}
2526

src/SplitIO/Component/Cache/SegmentCache.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class SegmentCache implements SegmentCacheInterface
1717
/**
1818
* @param \SplitIO\Component\Cache\Pool $cache
1919
*/
20-
public function __construct(Pool $cache) {
20+
public function __construct(Pool $cache)
21+
{
2122
$this->cache = $cache;
2223
}
2324

src/SplitIO/Component/Cache/SplitCache.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ class SplitCache implements SplitCacheInterface
1919
/**
2020
* @param \SplitIO\Component\Cache\Pool $cache
2121
*/
22-
public function __construct(Pool $cache) {
22+
public function __construct(Pool $cache)
23+
{
2324
$this->cache = $cache;
2425
}
2526

src/SplitIO/Component/Common/Di.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,4 @@ public static function getLogger()
120120
{
121121
return self::get(self::KEY_LOG);
122122
}
123-
124123
}

src/SplitIO/Engine.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ class Engine
2222
* @param array|null $context
2323
* @return array
2424
*/
25-
public static function getTreatment($matchingKey, $bucketingKey, SplitGrammar $split, array $attributes = null, array $context = null)
26-
{
25+
public static function getTreatment(
26+
$matchingKey,
27+
$bucketingKey,
28+
SplitGrammar $split,
29+
array $attributes = null,
30+
array $context = null
31+
) {
2732
if ($bucketingKey === null) {
2833
$bucketingKey = $matchingKey;
2934
}

src/SplitIO/Sdk/Client.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@ class Client implements ClientInterface
2626
/**
2727
* @var \SplitIO\Component\Cache\SplitCache
2828
*/
29-
private $splitCache;
29+
private $splitCache;
3030

3131
/**
3232
* @var \SplitIO\Component\Cache\SegmentCache
3333
*/
34-
private $segmentCache;
34+
private $segmentCache;
3535

3636
/**
3737
* @var \SplitIO\Component\Cache\ImpressionCache
3838
*/
39-
private $impressionCache;
39+
private $impressionCache;
4040

4141
/**
4242
* @var \SplitIO\Component\Cache\EventCache
4343
*/
44-
private $eventCache;
44+
private $eventCache;
4545

4646
/**
4747
* @var \SplitIO\Sdk\Validator\InputValidator
4848
*/
49-
private $inputValidator;
49+
private $inputValidator;
5050

5151
/**
5252
* @param array $options

src/SplitIO/Sdk/Evaluator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ class Evaluator
1616
/**
1717
* @var \SplitIO\Component\Cache\SplitCache
1818
*/
19-
private $splitCache;
19+
private $splitCache;
2020

2121
/**
2222
* @var \SplitIO\Component\Cache\SegmentCache
2323
*/
24-
private $segmentCache;
24+
private $segmentCache;
2525

2626
public function __construct(SplitCache $splitCache, SegmentCache $segmentCache)
2727
{

src/SplitIO/Sdk/Manager/SplitManager.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ class SplitManager implements SplitManagerInterface
1414
/**
1515
* @var \SplitIO\Component\Cache\SplitCache
1616
*/
17-
private $splitCache;
17+
private $splitCache;
1818

19-
public function __construct(SplitCache $splitCache) {
19+
public function __construct(SplitCache $splitCache)
20+
{
2021
$this->splitCache = $splitCache;
2122
}
2223

src/SplitIO/Sdk/Validator/InputValidator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ class InputValidator
1818
/**
1919
* @var \SplitIO\Component\Cache\SplitCache
2020
*/
21-
private $splitCache;
21+
private $splitCache;
2222

23-
public function __construct(SplitCache $splitCache) {
23+
public function __construct(SplitCache $splitCache)
24+
{
2425
$this->splitCache = $splitCache;
2526
}
2627

0 commit comments

Comments
 (0)