mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 19:34:31 +02:00
Applied rector suggestions
This commit is contained in:
parent
4106bcef5f
commit
20f32c7f12
170 changed files with 808 additions and 761 deletions
|
@ -91,16 +91,14 @@ class PermissionManagerTest extends WebTestCase
|
|||
$this->group->method('getParent')->willReturn($parent_group);
|
||||
}
|
||||
|
||||
public function getPermissionNames(): array
|
||||
public function getPermissionNames(): \Iterator
|
||||
{
|
||||
//List some permission names
|
||||
return [
|
||||
['parts'],
|
||||
['system'],
|
||||
['footprints'],
|
||||
['suppliers'],
|
||||
['tools']
|
||||
];
|
||||
yield ['parts'];
|
||||
yield ['system'];
|
||||
yield ['footprints'];
|
||||
yield ['suppliers'];
|
||||
yield ['tools'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue