Skip to content

Commit

Permalink
remove nette/utils
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Mar 18, 2024
1 parent 60a32a5 commit 479cfcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"description": "Contracts for production code of RuleDocGenerator",
"license": "MIT",
"require": {
"php": ">=8.1",
"nette/utils": "^3.2 || ^4.0"
"php": ">=8.1"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3",
Expand Down
4 changes: 2 additions & 2 deletions src/ValueObject/RuleDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Symplify\RuleDocGenerator\ValueObject;

use Nette\Utils\Strings;
use Symplify\RuleDocGenerator\Contract\CodeSampleInterface;
use Symplify\RuleDocGenerator\Exception\PoorDocumentationException;
use Symplify\RuleDocGenerator\Exception\ShouldNotHappenException;
Expand Down Expand Up @@ -77,7 +76,8 @@ public function getRuleShortClass(): string
throw new ShouldNotHappenException();
}

return (string) Strings::after($this->ruleClass, '\\', -1);
// get short class name
return basename(str_replace('\\', '/', $this->ruleClass));
}

/**
Expand Down

0 comments on commit 479cfcf

Please sign in to comment.