From 080a96ccd6608caa97200dba5328a714f46d09d0 Mon Sep 17 00:00:00 2001 From: Niklan <niklanrus@gmail.com> Date: Wed, 9 Apr 2025 17:43:23 +0500 Subject: [PATCH] Fix CI --- .cspell-project-words.txt | 3 +++ .gitlab-ci.yml | 1 + cache_pilot.install | 9 ++++++--- cache_pilot.module | 5 +++++ css/cache-pilot-fragmentation-bar.css | 8 ++++---- 5 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 .cspell-project-words.txt diff --git a/.cspell-project-words.txt b/.cspell-project-words.txt new file mode 100644 index 0000000..005f993 --- /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 18e0af8..6b363eb 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 5a09a21..38cb21c 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 6ef3798..54fbeab 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 4b56959..f9c1e16 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 { -- GitLab