chamilo/chamilo-lms

View on GitHub
src/LtiBundle/Entity/ExternalTool.php

Summary

Maintainability
A
0 mins
Test Coverage

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'custom_params', type: 'text', nullable: true)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\JoinColumn(name: 'parent_id', referencedColumnName: 'id')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'version', type: 'string', options: ['default' => 'lti1p1'])]

Scope keyword "static" must be followed by a single space
Open

    public function setGradebookEval(?GradebookEvaluation $gradebookEval): static

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'id', type: 'integer')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Id]

You must use "/**" style comments for a class comment
Open

class ExternalTool extends AbstractResource implements ResourceInterface, ResourceToRootInterface, Stringable

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'launch_url', type: 'string')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\JoinColumn(name: 'c_id', referencedColumnName: 'id')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\ManyToOne(targetEntity: self::class, inversedBy: 'children')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'redirect_url', type: 'string', nullable: true)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'description', type: 'text', nullable: true)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'advantage_services', type: 'json', nullable: true)]

Scope keyword "static" must be followed by a single space
Open

    public function setCustomParams(?string $customParams): static

Scope keyword "static" must be followed by a single space
Open

    public function setPrivacy(bool $shareName = false, bool $shareEmail = false, bool $sharePicture = false): static

Add a single space around assignment operators
Open

declare(strict_types=1);

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'title', type: 'string')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\ManyToOne(targetEntity: GradebookEvaluation::class)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\OneToMany(targetEntity: LineItem::class, mappedBy: 'tool')]

Missing function doc comment
Open

    public function getDescription(): ?string

Missing function doc comment
Open

    public function setPrivacy(bool $shareName = false, bool $shareEmail = false, bool $sharePicture = false): static

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'shared_secret', type: 'string', nullable: true)]

Missing function doc comment
Open

    public function setCustomParams(?string $customParams): static

Missing function doc comment
Open

    public function isGlobal(): bool

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ORM\Entity]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\GeneratedValue]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\ManyToOne(targetEntity: Course::class)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\JoinColumn(name: 'gradebook_eval_id', referencedColumnName: 'id', onDelete: 'SET NULL')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'replacement_params', type: 'json')]

Missing function doc comment
Open

    public function setDescription(?string $description): static

Missing function doc comment
Open

    public function getCourse(): ?Course

Missing function doc comment
Open

    public function setGradebookEval(?GradebookEvaluation $gradebookEval): static

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\OneToMany(targetEntity: self::class, mappedBy: 'parent')]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'login_url', type: 'string', nullable: true)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'launch_presentation', type: 'json')]

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public function getTitle(): string

Missing function doc comment
Open

    public function setTitle(string $title): static

Missing function doc comment
Open

    public function getId(): int

Missing function doc comment
Open

    public function getCustomParamsAsArray(): array

Missing function doc comment
Open

    public function setActiveDeepLinking(bool $activeDeepLinking): static

Scope keyword "static" must be followed by a single space
Open

    public function setDescription(?string $description): static

Missing function doc comment
Open

    public function setCourse(?Course $course = null): static

Missing function doc comment
Open

    public function getPrivacy(): ?string

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'consumer_key', type: 'string', nullable: true)]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'privacy', type: 'text', nullable: true, options: ['default' => null])]

Scope keyword "static" must be followed by a single space
Open

    public function setLaunchUrl(string $launchUrl): static

Missing function doc comment
Open

    public function encodeCustomParams(array $params): ?string

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[ORM\Table(name: 'lti_external_tool')]

Missing function doc comment
Open

    public function getLaunchUrl(): string

Missing function doc comment
Open

    public function setLaunchUrl(string $launchUrl): static

Scope keyword "static" must be followed by a single space
Open

    public function setCourse(?Course $course = null): static

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'active_deep_linking', type: 'boolean', nullable: false, options: ['default' => false])]

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[ORM\Column(name: 'client_id', type: 'string', nullable: true)]

Scope keyword "static" must be followed by a single space
Open

    public function setTitle(string $title): static

Missing function doc comment
Open

    public function parseCustomParams(): array

Missing function doc comment
Open

    public function isActiveDeepLinking(): bool

Scope keyword "static" must be followed by a single space
Open

    public function setActiveDeepLinking(bool $activeDeepLinking): static

Missing function doc comment
Open

    public function getGradebookEval(): ?GradebookEvaluation

Missing function doc comment
Open

    public function isSharingName(): bool

Missing function doc comment
Open

    public function __toString(): string

Missing function doc comment
Open

    public function getCustomParams(): ?string

Missing function doc comment
Open

    public function unserializePrivacy(): array

Missing function doc comment
Open

    public function setClientId(?string $clientId): static

Missing function doc comment
Open

    public function setAdvantageServices(array $advantageServices): static

Missing function doc comment
Open

    public function getChildren(): Collection

Missing function doc comment
Open

    public function setLoginUrl(?string $loginUrl): static

Missing function doc comment
Open

    public function setLineItems(Collection $lineItems): static

Missing function doc comment
Open

    public function getResourceName(): string

Scope keyword "static" must be followed by a single space
Open

    public function setResourceName(string $title): static

Missing function doc comment
Open

    public function isSharingPicture(): bool

Missing function doc comment
Open

    public function getLineItems(

Missing function doc comment
Open

    public function setChildren(Collection $children): static

Scope keyword "static" must be followed by a single space
Open

    public function setClientId(?string $clientId): static

Missing function doc comment
Open

    public function getToolParent(): ?self

Missing function doc comment
Open

    public function setSharedSecret(?string $sharedSecret): static

Missing function doc comment
Open

    public function setConsumerKey(?string $consumerKey): static

Missing function doc comment
Open

    public function getAdvantageServices(): array

Scope keyword "static" must be followed by a single space
Open

    public function setToolParent(self $parent): static

Missing function doc comment
Open

    public function getRedirectUrl(): ?string

Missing function doc comment
Open

    public function getVersionName(): string

Missing function doc comment
Open

    public function setDocumenTarget(string $target): static

Missing function doc comment
Open

    public function getLoginUrl(): ?string

Scope keyword "static" must be followed by a single space
Open

    public function setLoginUrl(?string $loginUrl): static

Scope keyword "static" must be followed by a single space
Open

    public function setDocumenTarget(string $target): static

Scope keyword "static" must be followed by a single space
Open

    public function addLineItem(LineItem $lineItem): static

Missing function doc comment
Open

    public function getChildrenInCourses(array $coursesId): Collection

Missing function doc comment
Open

    public function addLineItem(LineItem $lineItem): static

Missing function doc comment
Open

    public function getVersion(): string

Scope keyword "static" must be followed by a single space
Open

    public function setReplacementForUserId(string $replacement): static

Missing function doc comment
Open

    public function getReplacementForUserId(): ?string

Missing function doc comment
Open

    public function getSharedSecret(): ?string

Scope keyword "static" must be followed by a single space
Open

    public function setRedirectUrl(?string $redirectUrl): static

Missing function doc comment
Open

    public function getClientId(): ?string

Scope keyword "static" must be followed by a single space
Open

    public function setSharedSecret(?string $sharedSecret): static

Missing function doc comment
Open

    public function setVersion(string $version): static

Missing function doc comment
Open

    public function getDocumentTarget()

Missing function doc comment
Open

    public function setResourceName(string $title): static

Missing function doc comment
Open

    public function setToolParent(self $parent): static

Scope keyword "static" must be followed by a single space
Open

    public function setAdvantageServices(array $advantageServices): static

Missing function doc comment
Open

    public function setReplacementForUserId(string $replacement): static

Space before opening parenthesis of function call prohibited
Open

            fn (self $child) => \in_array($child->getCourse()->getId(), $coursesId, true)

Scope keyword "static" must be followed by a single space
Open

    public function setChildren(Collection $children): static

Missing function doc comment
Open

    public function getConsumerKey(): ?string

Scope keyword "static" must be followed by a single space
Open

    public function setLineItems(Collection $lineItems): static

Scope keyword "static" must be followed by a single space
Open

    public function setConsumerKey(?string $consumerKey): static

Missing function doc comment
Open

    public function isSharingEmail(): bool

Missing function doc comment
Open

    public function setRedirectUrl(?string $redirectUrl): static

Missing function doc comment
Open

    public function getLaunchPresentation(): array

Missing function doc comment
Open

    public function getResourceIdentifier(): int

Scope keyword "static" must be followed by a single space
Open

    public function setVersion(string $version): static

Only one argument is allowed per line in a multi-line function call
Open

            fn (self $child) => \in_array($child->getCourse()->getId(), $coursesId, true)

Only one argument is allowed per line in a multi-line function call
Open

            fn (self $child) => \in_array($child->getCourse()->getId(), $coursesId, true)

Space before opening parenthesis of function call prohibited
Open

            fn (self $child) => \in_array($child->getCourse()->getId(), $coursesId, true)

Expected 0 spaces after opening bracket; newline found
Open

            if (

There are no issues that match your filters.

Category
Status