original_string: protected function can(string $action, ?Authorizable $user = null): bool
      {
          return ! \is_null($user)
                      ? $this->acl->canAs($user, $action)
                      : $this->acl->can($action);
      }
code: protected function can(string $action, ?Authorizable $user = null): bool
      {
          return ! \is_null($user)
                      ? $this->acl->canAs($user, $action)
                      : $this->acl->can($action);
      }
code_tokens: protected function can ( string $ action , ? Authorizable $ user = null ) : bool { return ! \ is_null ( $ user ) ? $ this -> acl -> canAs ( $ user , $ action ) : $ this -> acl -> can ( $ action ) ; }
docstring: Resolve if authorization can.
  
  @param  string  $action
  @param  \Orchestra\Contracts\Authorization\Authorizable|null  $user
  
  @return bool
docstring_tokens: Resolve if authorization can .