diff --git a/docs.Dockerfile b/docs.Dockerfile index cb30b3edf..f5613cace 100644 --- a/docs.Dockerfile +++ b/docs.Dockerfile @@ -1,5 +1,5 @@ # Generate the HTML output. -FROM markstory/cakephp-docs-builder as builder +FROM ghcr.io/cakephp/docs-builder as builder RUN pip install git+https://github.com/sphinx-contrib/video.git@master @@ -15,7 +15,7 @@ RUN cd /data/docs-builder \ && cp /data/docs/static/* /data/website/html/_static/ # Build a small nginx container with just the static site in it. -FROM markstory/cakephp-docs-builder:runtime as runtime +FROM ghcr.io/cakephp/docs-builder:runtime as runtime # Configure search index script ENV LANGS="en fr ja pt" diff --git a/src/Cache/Engine/DebugEngine.php b/src/Cache/Engine/DebugEngine.php index 54ab6b9e9..46a839f50 100644 --- a/src/Cache/Engine/DebugEngine.php +++ b/src/Cache/Engine/DebugEngine.php @@ -336,6 +336,7 @@ public function __toString(): string { /** @psalm-suppress RedundantPropertyInitializationCheck */ if (isset($this->_engine)) { + // phpcs:ignore SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable [$ns, $class] = namespaceSplit(get_class($this->_engine)); return str_replace('Engine', '', $class); diff --git a/src/DebugPanel.php b/src/DebugPanel.php index 04673cc86..567b066ff 100644 --- a/src/DebugPanel.php +++ b/src/DebugPanel.php @@ -47,6 +47,7 @@ class DebugPanel implements EventListenerInterface */ public function title(): string { + // phpcs:ignore SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable [$ns, $name] = namespaceSplit(static::class); $name = substr($name, 0, strlen('Panel') * -1); @@ -60,6 +61,7 @@ public function title(): string */ public function elementName(): string { + // phpcs:ignore SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable [$ns, $name] = namespaceSplit(static::class); if ($this->plugin) { return $this->plugin . '.' . Inflector::underscore($name); diff --git a/tests/TestCase/Controller/RequestsControllerTest.php b/tests/TestCase/Controller/RequestsControllerTest.php index 783ec8151..eb7580b5f 100644 --- a/tests/TestCase/Controller/RequestsControllerTest.php +++ b/tests/TestCase/Controller/RequestsControllerTest.php @@ -57,7 +57,7 @@ public function setUp(): void public function testView() { $request = $this->makeRequest(); - $panel = $this->makePanel($request); + $this->makePanel($request); $this->configRequest(['headers' => ['Accept' => 'application/json']]); $this->get("/debug-kit/toolbar/{$request->id}"); diff --git a/tests/TestCase/ToolbarServiceTest.php b/tests/TestCase/ToolbarServiceTest.php index d06f69dc1..c2b74b2d8 100644 --- a/tests/TestCase/ToolbarServiceTest.php +++ b/tests/TestCase/ToolbarServiceTest.php @@ -322,10 +322,6 @@ public function testInjectScriptsLastBodyTag() */ public function testInjectScriptsFileBodies() { - $request = new Request([ - 'url' => '/articles', - 'params' => ['plugin' => null], - ]); $response = new Response([ 'statusCode' => 200, 'type' => 'text/html', @@ -348,10 +344,6 @@ public function testInjectScriptsFileBodies() */ public function testInjectScriptsStreamBodies() { - $request = new Request([ - 'url' => '/articles', - 'params' => ['plugin' => null], - ]); $response = new Response([ 'statusCode' => 200, 'type' => 'text/html', diff --git a/tests/bootstrap.php b/tests/bootstrap.php index ceb4e3973..e708ffdf5 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -42,6 +42,8 @@ define('LOGS', TMP); require_once CORE_PATH . 'config/bootstrap.php'; +require_once CAKE . 'Core/functions_global.php'; +require_once CAKE . 'Collection/functions_global.php'; date_default_timezone_set('UTC'); mb_internal_encoding('UTF-8');