src/CoreBundle/Entity/AbstractResource.php
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['resource_file:read', 'resource_node:read', 'document:read', 'media_object_read', 'message:read'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\JoinColumn(name: 'resource_node_id', referencedColumnName: 'id', onDelete: 'CASCADE')]
- Exclude checks
Multi-line function call not indented correctly; expected 16 spaces but found 20 Open
Open
&& $session === $element->getSession()
- Exclude checks
Missing function doc comment Open
Open
public function setParentResourceNode(?int $resourceNode): self
- Exclude checks
Missing function doc comment Open
Open
public function getUploadFile(): ?UploadedFile
- Exclude checks
CASE statements must be defined using a colon Open
Open
case 'GROUP':
- Exclude checks
Scope keyword "static" must be followed by a single space Open
Open
public function addLink(ResourceLink $link): static
- Exclude checks
Missing function doc comment Open
Open
public function addResourceToUserList(
- Exclude checks
Scope keyword "static" must be followed by a single space Open
Open
public function setResourceLinkArray(array $links): static
- Exclude checks
Missing function doc comment Open
Open
public function getFirstResourceLink(): ?ResourceLink
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiProperty(types: ['https://schema.org/contentUrl'])]
- Exclude checks
Missing function doc comment Open
Open
public function getResourceLinkEntityList(): array
- Exclude checks
Missing function doc comment Open
Open
public function getResourceNode(): ?ResourceNode
- Exclude checks
Missing function doc comment Open
Open
public function addResourceToGroupList(
- Exclude checks
Missing function doc comment Open
Open
public function hasUploadFile(): bool
- Exclude checks
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiProperty(types: ['https://schema.org/contentUrl'])]
- Exclude checks
Missing function doc comment Open
Open
abstract public function setResourceName(string $name);
- Exclude checks
Missing function doc comment Open
Open
public function getParent()
- Exclude checks
Missing function doc comment Open
Open
public function getParentResourceNode(): ?int
- Exclude checks
Missing function doc comment Open
Open
public function getUsersAndGroupSubscribedToResource(): array
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiProperty(types: ['https://schema.org/contentUrl'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\OneToOne(targetEntity: ResourceNode::class, cascade: ['persist'])]
- Exclude checks
Missing function doc comment Open
Open
public function setResourceNode(?ResourceNode $resourceNode): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['c_tool_intro:write', 'resource_node:write', 'c_student_publication:write', 'calendar_event:write'])]
- Exclude checks
CASE statements must be defined using a colon Open
Open
case 'USER':
- Exclude checks
Missing function doc comment Open
Open
abstract public function getResourceName(): string;
- Exclude checks
CASE statements must be defined using a colon Open
Open
case ResourceLink::VISIBILITY_DRAFT:
- Exclude checks
Missing function doc comment Open
Open
public function hasParentResourceNode(): bool
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\EntityListeners([ResourceListener::class])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['resource_file:read', 'resource_node:read', 'document:read', 'document:write', 'media_object_read'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Missing function doc comment Open
Open
public function getFirstResourceLinkFromCourseSession(Course $course, ?Session $session = null): ?ResourceLink
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
CASE statements must be defined using a colon Open
Open
case ResourceLink::VISIBILITY_PENDING:
- Exclude checks
Missing function doc comment Open
Open
public function isUserSubscribedToResource(User $user): bool
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
abstract class AbstractResource
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups([
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\HasLifecycleCallbacks]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Assert\Valid]
- Exclude checks
Missing function doc comment Open
Open
public function hasResourceNode(): bool
- Exclude checks
Scope keyword "static" must be followed by a single space Open
Open
public function setParent(ResourceInterface $parent): static
- Exclude checks
Missing function doc comment Open
Open
public function setUploadFile(?UploadedFile $file): self
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['resource_file:read', 'resource_node:read', 'document:read', 'media_object_read', 'message:read'])]
- Exclude checks
Missing function doc comment Open
Open
public function addGroupLink(Course $course, CGroup $group, ?Session $session = null): static
- Exclude checks
Missing function doc comment Open
Open
public function getResourceLinkListFromEntity(): ?array
- Exclude checks
Missing function doc comment Open
Open
public function isVisible(Course $course, ?Session $session = null): bool
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ApiProperty(types: ['https://schema.org/image'])]
- Exclude checks
Scope keyword "static" must be followed by a single space Open
Open
public function addGroupLink(Course $course, CGroup $group, ?Session $session = null): static
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Groups(['resource_node:read', 'document:read'])]
- Exclude checks
Missing function doc comment Open
Open
public function setResourceLinkArray(array $links): static
- Exclude checks
Missing function doc comment Open
Open
public function setResourceLinkListFromEntity(): void
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[ORM\MappedSuperclass]
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn ($key, $element) => $course === $element->getCourse()
- Exclude checks
Missing function doc comment Open
Open
public function setParent(ResourceInterface $parent): static
- Exclude checks
Missing function doc comment Open
Open
public function addUserLink(
- Exclude checks
Missing function doc comment Open
Open
public function getResourceLinkArray(): array
- Exclude checks
Multi-line function call not indented correctly; expected 16 spaces but found 20 Open
Open
&& $session === $element->getSession()
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
fn ($key, $element) => $course === $element->getCourse()
- Exclude checks