diff --git a/src/Client/MomentoClientFactory.php b/src/Client/MomentoClientFactory.php index 39dfde7..c74b79c 100644 --- a/src/Client/MomentoClientFactory.php +++ b/src/Client/MomentoClientFactory.php @@ -55,7 +55,7 @@ class MomentoClientFactory { private $logFile; /** - * MomentoClientFactory constructor. + * Constructs a new \Drupal\momento_cache\Client\MomentoClientFactory object. */ public function __construct() { $settings = Settings::get('momento_cache', []); diff --git a/src/MomentoCacheBackend.php b/src/MomentoCacheBackend.php index 8c244f9..844fbf4 100644 --- a/src/MomentoCacheBackend.php +++ b/src/MomentoCacheBackend.php @@ -79,13 +79,9 @@ class MomentoCacheBackend implements CacheBackendInterface { private $logFile; /** - * MomentoCacheBackend constructor. + * Constructs a new Drupal\momento_cache\MomentoCacheBackend object. */ - public function __construct( - $bin, - $client, - CacheTagsChecksumInterface $checksum_provider - ) { + public function __construct($bin, $client, CacheTagsChecksumInterface $checksum_provider) { $this->maxTtl = intdiv(PHP_INT_MAX, 1000); $this->client = $client; $this->bin = $bin; diff --git a/src/MomentoCacheBackendFactory.php b/src/MomentoCacheBackendFactory.php index 10a87ac..1a54380 100644 --- a/src/MomentoCacheBackendFactory.php +++ b/src/MomentoCacheBackendFactory.php @@ -48,18 +48,14 @@ class MomentoCacheBackendFactory implements CacheFactoryInterface { private $backends = []; /** - * MomentoCacheBackendFactory constructor. + * Constructs a new \Drupal\momento_cache\MomentoCacheBackendFactory object. */ - public function __construct( - MomentoClientFactory $momento_factory, - CacheTagsChecksumInterface $checksum_provider - ) { + public function __construct(MomentoClientFactory $momento_factory, CacheTagsChecksumInterface $checksum_provider) { $this->momentoFactory = $momento_factory; $this->checksumProvider = $checksum_provider; $this->client = $this->momentoFactory->get(); $settings = Settings::get('momento_cache', []); - static::$cacheName = array_key_exists('cache_name', $settings) ? - $settings['cache_name'] : getenv("MOMENTO_CACHE_NAME"); + static::$cacheName = array_key_exists('cache_name', $settings) ? $settings['cache_name'] : getenv("MOMENTO_CACHE_NAME"); } /**