Your project must not use PHP super globals
- Read doc
- Productivity
- Critical
More information: https://insight.symfony.com/what-we-analyse/symfony.use_super_globals
- public function __invoke(SendContactEmail $message): void
- {
- $email = (new Email())
- ->from($message->getEmail())
- ->to($_ENV['EMAIL_TO'])
- ->subject("Portfolio contact from {$message->getName()}")
- ->html("
- <h2>New contact from your portfolio</h2>
- <p><strong>Name:</strong> {$message->getName()}</p>
- <p><strong>Email:</strong> {$message->getEmail()}</p>
Your project files must be encoded in UTF-8
- Read doc
- Reputation
- Critical
More information: https://insight.symfony.com/what-we-analyse/web.non_utf8_encoding
Your project must provide a favicon in its public directory
- Read doc
- Reputation
- Critical
More information: https://insight.symfony.com/what-we-analyse/web.missing_favicon
-
public
- images
- index.php
- robots.txt
- site.webmanifest
Your project error pages must be customised 2
- Read doc
- Reputation
- Critical
More information: https://insight.symfony.com/what-we-analyse/symfony.configuration.error_pages_should_be_customised
Your project should use return types 2
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.missing_return_typehint
- {
- $this->companyName = $companyName;
- return $this;
- }
- public function getTasks(): Collection { return $this->tasks; }
- public function addTask(Task $task): static
- {
- if (!$this->tasks->contains($task)) {
- $this->tasks->add($task);
- {
- $this->image = $image;
- return $this;
- }
- public function getTechnologies(): Collection { return $this->technologies; }
- public function addTechnology(Technology $technology): static
- {
- if (!$this->technologies->contains($technology)) {
- $this->technologies->add($technology);
Your project must not contain invalid function or method calls
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.invalid_call
- public function __invoke(SendContactEmail $message): void
- {
- $email = (new Email())
- ->from($message->getEmail())
- ->to($_ENV['EMAIL_TO'])
- ->subject("Portfolio contact from {$message->getName()}")
- ->html("
- <h2>New contact from your portfolio</h2>
- <p><strong>Name:</strong> {$message->getName()}</p>
- <p><strong>Email:</strong> {$message->getEmail()}</p>
Text files should end with a valid new line character.
- Read doc
- Productivity
- Info
More information: https://insight.symfony.com/what-we-analyse/missing_e_o_l