Skip to content

Commit

Permalink
fix: remove constructor doc comments (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishtigupta authored Mar 26, 2024
1 parent 29d4479 commit afa32f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Client/MomentoClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', []);
Expand Down
8 changes: 2 additions & 6 deletions src/MomentoCacheBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 3 additions & 7 deletions src/MomentoCacheBackendFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

/**
Expand Down

0 comments on commit afa32f1

Please sign in to comment.