This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
It seems like you call parent on a different method (addObject() instead of addRole()). Are you sure this is correct? If so, you might want to change this to $this->addObject().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
It seems like you call parent on a different method (removeObjects() instead of removeRoles()). Are you sure this is correct? If so, you might want to change this to $this->removeObjects().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
It seems like you call parent on a different method (removeObject() instead of removeRole()). Are you sure this is correct? If so, you might want to change this to $this->removeObject().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
It seems like $roleName defined by parameter $roleName on line 40 can also be of type object; however, SimpleAcl\Object\ObjectAggregate::removeObject() does only seem to accept object<SimpleAcl\BaseObject>|string, maybe add an additional type check?
This check looks at variables that have been passed in as parameters and are passed out again
to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
It seems like you call parent on a different method (setObjects() instead of setRoles()). Are you sure this is correct? If so, you might want to change this to $this->setObjects().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
The doc-type array()|Role[] could not be parsed: Expected "|" or "end of type", but got "(" at position 5. (view supported doc-types)
This check marks PHPDoc comments that could not be parsed by our parser. To see
which comment annotations we can parse, please refer to our documentation on
supported doc-types.
It seems like you call parent on a different method (getObjects() instead of getRoles()). Are you sure this is correct? If so, you might want to change this to $this->getObjects().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
It seems like you call parent on a different method (getObjectNames() instead of getRolesNames()). Are you sure this is correct? If so, you might want to change this to $this->getObjectNames().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
It seems like you call parent on a different method (getObject() instead of getRole()). Are you sure this is correct? If so, you might want to change this to $this->getObject().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.