Skip to content

Commit d63bb12

Browse files
committed
Full PSR-12 compliance is now enforced by PHPCS
1 parent 0e9aab0 commit d63bb12

File tree

147 files changed

+245
-213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+245
-213
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
## 9.1.0
22
##### xx april 2022
3+
- __Core__
4+
- Deprecated `\Phpfastcache\Config\Config::class`
35
- __Drivers__
46
- **Added `Solr` driver support**
57
- __Cluster__
68
- Fixed #855 // ClusterReplication drivers are saving erroneous expiration date in low-level backends
79
- __Misc__
10+
- Full PSR-12 compliance is now enforced by PHPCS
811
- Multiple typo fixes (@mbiebl)
912
- Updated composer suggestions and CI builder dependencies
1013

lib/Phpfastcache/Api.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @author Georges.L (Geolim4) <contact@geolim4.com>
1212
* @author Contributors https://github.com/PHPSocialNetwork/phpfastcache/graphs/contributors
1313
*/
14+
1415
declare(strict_types=1);
1516

1617
namespace Phpfastcache;

lib/Phpfastcache/CacheContract.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @author Georges.L (Geolim4) <contact@geolim4.com>
1212
* @author Contributors https://github.com/PHPSocialNetwork/phpfastcache/graphs/contributors
1313
*/
14+
1415
declare(strict_types=1);
1516

1617
namespace Phpfastcache;

lib/Phpfastcache/CacheManager.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @author Georges.L (Geolim4) <contact@geolim4.com>
1212
* @author Contributors https://github.com/PHPSocialNetwork/phpfastcache/graphs/contributors
1313
*/
14+
1415
declare(strict_types=1);
1516

1617
namespace Phpfastcache;
@@ -32,10 +33,10 @@
3233
*/
3334
class CacheManager
3435
{
35-
public const CORE_DRIVER_NAMESPACE = 'Phpfastcache\Drivers\\';
36-
3736
use ClassNamespaceResolverTrait;
3837

38+
public const CORE_DRIVER_NAMESPACE = 'Phpfastcache\Drivers\\';
39+
3940
protected static ConfigurationOptionInterface $config;
4041

4142
protected static string $namespacePath;

lib/Phpfastcache/Cluster/AggregatablePoolInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @author Georges.L (Geolim4) <contact@geolim4.com>
1212
*
1313
*/
14+
1415
declare(strict_types=1);
1516

1617
namespace Phpfastcache\Cluster;
@@ -19,5 +20,4 @@
1920

2021
interface AggregatablePoolInterface extends CacheItemPoolInterface
2122
{
22-
2323
}

lib/Phpfastcache/Cluster/AggregatorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @author Georges.L (Geolim4) <contact@geolim4.com>
1212
*
1313
*/
14+
1415
declare(strict_types=1);
1516

1617
namespace Phpfastcache\Cluster;
@@ -19,7 +20,6 @@
1920

2021
interface AggregatorInterface
2122
{
22-
2323
/**
2424
* Full replication mechanism
2525
*

lib/Phpfastcache/Cluster/ClusterAggregator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @author Georges.L (Geolim4) <contact@geolim4.com>
1212
*
1313
*/
14+
1415
declare(strict_types=1);
1516

1617
namespace Phpfastcache\Cluster;

lib/Phpfastcache/Cluster/ClusterPoolAbstract.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @author Georges.L (Geolim4) <contact@geolim4.com>
1212
*
1313
*/
14+
1415
declare(strict_types=1);
1516

1617
namespace Phpfastcache\Cluster;
@@ -106,7 +107,7 @@ public function getClusterPools(): array
106107
/**
107108
* @inheritDoc
108109
*/
109-
public function getConfigs() : array
110+
public function getConfigs(): array
110111
{
111112
$configs = [];
112113

@@ -242,7 +243,7 @@ public function getStats(): DriverStatistic
242243
return $stats;
243244
}
244245

245-
public function getConfig() : ConfigurationOption
246+
public function getConfig(): ConfigurationOption
246247
{
247248
return $this->config;
248249
}

lib/Phpfastcache/Cluster/ClusterPoolInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @author Georges.L (Geolim4) <contact@geolim4.com>
1212
*
1313
*/
14+
1415
declare(strict_types=1);
1516

1617
namespace Phpfastcache\Cluster;

lib/Phpfastcache/Cluster/ClusterPoolTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @author Georges.L (Geolim4) <contact@geolim4.com>
1212
*
1313
*/
14+
1415
declare(strict_types=1);
1516

1617
namespace Phpfastcache\Cluster;
@@ -20,7 +21,6 @@
2021

2122
trait ClusterPoolTrait
2223
{
23-
2424
protected function driverCheck(): bool
2525
{
2626
return true;

0 commit comments

Comments
 (0)