open-orchestra/open-orchestra-cms-bundle

View on GitHub
Backoffice/Security/Authorization/Voter/NodeNotHydratedVoter.php

Summary

Maintainability
A
0 mins
Test Coverage

Returning type bool but isCreator() is declared to return string
Open

        return array_key_exists('createdBy', $subject) &&

Parameter $user has undeclared type \OpenOrchestra\UserBundle\Model\UserInterface
Open

    protected function isCreator($subject, UserInterface $user)

Call to method getUsername from undeclared class \OpenOrchestra\UserBundle\Model\UserInterface
Open

               $subject['createdBy'] === $user->getUsername();

There are no issues that match your filters.

Category
Status