diff --git a/libraries/src/HTML/HTMLHelper.php b/libraries/src/HTML/HTMLHelper.php
index bf004ac822944..6d2626b977eef 100644
--- a/libraries/src/HTML/HTMLHelper.php
+++ b/libraries/src/HTML/HTMLHelper.php
@@ -347,7 +347,7 @@ public static function iframe($url, $name, $attribs = null, $noFrames = '')
$attribs = ArrayHelper::toString(self::escapeAttributesArray($attribs));
}
- $url = htmlspecialchars((string) $url, ENT_QUOTES, 'UTF-8', false);
+ $url = htmlspecialchars((string) $url, ENT_QUOTES, 'UTF-8', false);
$name = htmlspecialchars((string) $name, ENT_QUOTES, 'UTF-8', false);
return '';
diff --git a/libraries/src/MVC/Controller/ApiController.php b/libraries/src/MVC/Controller/ApiController.php
index 9ddd5722ae775..e1c138d1c246c 100644
--- a/libraries/src/MVC/Controller/ApiController.php
+++ b/libraries/src/MVC/Controller/ApiController.php
@@ -9,6 +9,7 @@
namespace Joomla\CMS\MVC\Controller;
+use Doctrine\Inflector\InflectorFactory;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Application\CMSWebApplicationInterface;
use Joomla\CMS\Component\ComponentHelper;
@@ -515,7 +516,7 @@ protected function save($recordKey = null)
*/
protected function allowEdit($data = [], $key = 'id')
{
- $user = $this->app->getIdentity();
+ $user = $this->app->getIdentity();
$recordId = isset($data[$key]) ? (int) $data[$key] : 0;
if (!$user->authorise('core.manage', $this->option)) {
@@ -528,7 +529,7 @@ protected function allowEdit($data = [], $key = 'id')
}
$inflector = InflectorFactory::create()->build();
- $asset = $this->option . '.' . $inflector->singularize($this->contentType) . '.' . $recordId;
+ $asset = $this->option . '.' . $inflector->singularize($this->contentType) . '.' . $recordId;
// Check edit on the record asset (explicit or inherited)
if ($user->authorise('core.edit', $asset)) {