Skip to content

Commit a8a9a7e

Browse files
authored
Merge pull request #14 from SpacePossum/master_tweaks
tweaks
2 parents 84f84f2 + 0f81435 commit a8a9a7e

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.php_cs.dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ return Symfony\CS\Config\Config::create()
1616
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
1717
// and extra fixers:
1818
->fixers(array(
19+
'combine_consecutive_unsets',
1920
'ereg_to_preg',
2021
'header_comment',
2122
'newline_after_open_tag',
23+
'no_useless_else',
2224
'no_useless_return',
2325
'ordered_use',
26+
'short_array_syntax',
27+
'phpdoc_order',
2428
'php_unit_construct',
29+
'php_unit_dedicate_assert',
2530
'php_unit_strict',
26-
'short_array_syntax',
2731
'strict',
2832
'strict_param',
2933
'-empty_return',

src/Caching/Clients/MemcacheLoggingProxy.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace GeckoPackages\Silex\Services\Caching\Clients;
1313

14+
use GeckoPackages\Silex\Services\Caching\NullStopWatch;
1415
use Psr\Log\LoggerInterface;
1516
use Symfony\Component\Stopwatch\Stopwatch;
1617

@@ -95,6 +96,8 @@ public function getPrefix()
9596
if ($this->originalClient instanceof Memcached) {
9697
return $this->__call('getPrefix', []);
9798
}
99+
100+
return false;
98101
}
99102

100103
/**
@@ -107,5 +110,7 @@ public function setPrefix($prefix)
107110
if ($this->originalClient instanceof Memcached) {
108111
return $this->__call('setPrefix', [$prefix]);
109112
}
113+
114+
return false;
110115
}
111116
}

src/Caching/Clients/NullStopWatch.php renamed to src/Caching/NullStopWatch.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@
99
* with this source code in the file LICENSE.
1010
*/
1111

12-
namespace GeckoPackages\Silex\Services\Caching\Clients;
12+
namespace GeckoPackages\Silex\Services\Caching;
1313

1414
final class NullStopWatch
1515
{
1616
public function start($name, $category = null)
1717
{
18-
//
1918
}
2019

2120
public function stop($name)
2221
{
23-
//
2422
}
2523
}

tests/Caching/Tests/TestLogger.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public function debug($message, array $context = [])
4848
*/
4949
public function error($message, array $context = [])
5050
{
51-
$this->errorLog[] = [$message, $context];
5251
}
5352

5453
/**

0 commit comments

Comments
 (0)