for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ntb\RestAPI;
/**
* Implements the IPermission interface and uses the Silverstripe permission system.
* @author Christian Blank <[email protected]>
*/
class SilverstripePermission implements IPermissionChecks {
* @param \Member $member
* @return bool
boolean|string|null
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
public function isAdmin($member) {
return \Permission::checkMember($member, 'ADMIN');
}
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.