Skip to content

Commit a515bfe

Browse files
committed
use namespaced functions
1 parent b92e78b commit a515bfe

26 files changed

+39
-3
lines changed

src/Cache/Engine/DebugEngine.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Cake\Cache\CacheEngine;
1818
use Cake\Cache\CacheRegistry;
1919
use Psr\Log\LoggerInterface;
20+
use function Cake\Core\namespaceSplit;
2021

2122
/**
2223
* A spying proxy for cache engines.

src/Controller/MailPreviewController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use DebugKit\Mailer\PreviewResult;
2727
use DebugKit\Mailer\SentMailResult;
2828
use Psr\Http\Message\ResponseInterface;
29+
use function Cake\Collection\collection;
2930

3031
/**
3132
* Provides access to the MailPreview classes for visually debugging email sending

src/DebugPanel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Cake\Event\EventInterface;
1919
use Cake\Event\EventListenerInterface;
2020
use Cake\Utility\Inflector;
21+
use function Cake\Core\namespaceSplit;
2122

2223
/**
2324
* Base class for debug panels.

src/DebugTimer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
namespace DebugKit;
1717

1818
use Cake\Error\Debugger;
19+
use function Cake\Core\env;
1920

2021
/**
2122
* Contains methods for Profiling and creating timers.

src/ToolbarService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use DebugKit\Panel\PanelRegistry;
2828
use Exception;
2929
use Psr\Http\Message\ResponseInterface;
30+
use function Cake\Core\env;
3031

3132
/**
3233
* Used to create the panels and inject a toolbar into

src/View/Helper/CredentialsHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
use Cake\Utility\Hash;
1919
use Cake\View\Helper;
20+
use function Cake\Core\h;
2021

2122
/**
2223
* CredentialsHelper

templates/Dashboard/index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/**
33
* @var \App\View\AppView $this
44
*/
5+
6+
use function Cake\Core\h;
57
?>
68
<h1>Debug Kit Dashboard</h1>
79

templates/MailPreview/email.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<?php
2+
use function Cake\Core\h;
3+
?>
14
<style>
25
html, body {
36
height: 100%;

templates/MailPreview/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<?php
2+
use function Cake\Core\h;
3+
?>
14
<?php foreach ($mailPreviews as $plugin => $previews) : ?>
25
<h3><?= $plugin ?></h3>
36
<?php foreach ($previews as $preview) : ?>

templates/Panels/view.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @var \DebugKit\View\AjaxView $this
44
* @var \DebugKit\Model\Entity\Panel $panel
55
*/
6+
use function Cake\Core\h;
67
?>
78
<h2 class="c-panel__title"><?= h($panel->title) ?></h2>
89
<div class="c-panel__content">

0 commit comments

Comments
 (0)