diff --git a/.cspell-project-words.txt b/.cspell-project-words.txt new file mode 100644 index 0000000000000000000000000000000000000000..005f993ba5f1294e45b5c705ae13884ee9c166fe --- /dev/null +++ b/.cspell-project-words.txt @@ -0,0 +1,3 @@ +hollodotme +nnbsp +superglobal \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18e0af8b01af3c4cf02f62ee08e04f3a304c9dc2..6b363eb5fd27ebb517a0d6156e19dc9e13cdb6a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,3 +22,4 @@ phpstan (next major): {allow_failure: false} phpunit (max PHP version): {allow_failure: false} phpunit (next minor): {allow_failure: false} phpunit (next major): {allow_failure: false} +stylelint: {allow_failure: false} diff --git a/cache_pilot.install b/cache_pilot.install index 5a09a21de837fade61cfe618987e5e5dc7b36cf9..38cb21c1e7ee948bd8d2544b035ce5e5e9c0169a 100644 --- a/cache_pilot.install +++ b/cache_pilot.install @@ -1,10 +1,13 @@ <?php +/** + * @file + * Install, update and uninstall functions for the module. + */ + declare(strict_types=1); -use Drupal\cache_pilot\Cache\ApcuCache; use Drupal\cache_pilot\Client\Client; -use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\StringTranslation\TranslatableMarkup; /** @@ -16,7 +19,7 @@ function cache_pilot_requirements(string $phase): array { if ($phase === 'runtime') { $fast_cgi_client = \Drupal::service(Client::class); $is_connected = $fast_cgi_client->isConnected(); - $connection_dsn =\Drupal::configFactory()->get('cache_pilot.settings')->get('connection_dsn'); + $connection_dsn = \Drupal::configFactory()->get('cache_pilot.settings')->get('connection_dsn'); $requirements['cache_pilot_connection'] = [ 'title' => new TranslatableMarkup('Cache Pilot'), diff --git a/cache_pilot.module b/cache_pilot.module index 6ef379834f0d35a65203b2020183362bcd7fe17f..54fbeab044147664a72a3d98645606676baa7b77 100644 --- a/cache_pilot.module +++ b/cache_pilot.module @@ -1,5 +1,10 @@ <?php +/** + * @file + * Hook implementations and custom functions for the module. + */ + declare(strict_types=1); use Drupal\cache_pilot\Cache\ApcuCache; diff --git a/css/cache-pilot-fragmentation-bar.css b/css/cache-pilot-fragmentation-bar.css index 4b569591eb1b77b6da191c4d1e9f5d1a15e61d89..f9c1e1646272a7f496c553bd641f4e35fd33abb8 100644 --- a/css/cache-pilot-fragmentation-bar.css +++ b/css/cache-pilot-fragmentation-bar.css @@ -6,14 +6,14 @@ } .cache-pilot-fragmentation-bar__indicator { - border-radius: var(--progress-bar-default-size-radius, 1.5rem); - overflow: hidden; display: flex; + overflow: hidden; + border-radius: var(--progress-bar-default-size-radius, 1.5rem); } .cache-pilot-fragmentation-bar__fragment { - height: var(--progress-bar-default-size, 1.5rem); width: var(--fragment-percentage, 0%); + height: var(--progress-bar-default-size, 1.5rem); background: var(--fragment-background-color); } @@ -24,8 +24,8 @@ .cache-pilot-fragmentation-bar__color { width: 1rem; height: 1rem; - background: var(--fragment-background-color); border-radius: var(--progress-bar-default-size-radius, 1.5rem); + background: var(--fragment-background-color); } .cache-pilot-fragmentation-bar__label {