SonarQube code smells resolve #36
continuous-integration/drone/push Build is passing Details

LoginModification
Alexis 2 years ago
parent f5d9267200
commit f4f1db606f

@ -140,7 +140,8 @@ class SplClassLoader
*/
public function loadClass(string $className): void
{
if (null === $this->namespace || str_starts_with($className, $this->namespace . $this->namespaceSeparator)) {
$concatenateNamespace = $this->namespace . $this->namespaceSeparator;
if (null === $this->namespace || str_starts_with($className, $concatenateNamespace)) {
$fileName = '';
$namespace = '';
if (false !== ($lastNsPos = strripos($className, $this->namespaceSeparator))) {

Loading…
Cancel
Save