Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Mar 13, 2024
1 parent cee450c commit 163ba34
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions BasePlugin.php
Expand Up @@ -140,9 +140,8 @@ public function getName(): string
}
$parts = explode('\\', static::class);
array_pop($parts);
$this->name = implode('/', $parts);

return $this->name;
return $this->name = implode('/', $parts);
}

/**
Expand All @@ -160,9 +159,8 @@ public function getPath(): string
if (str_ends_with($path, 'src')) {
$path = substr($path, 0, -3);
}
$this->path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;

return $this->path;
return $this->path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
}

/**
Expand Down

0 comments on commit 163ba34

Please sign in to comment.