tydoo / oc-symfony-p5 Goto Github PK
View Code? Open in Web Editor NEWFormation Développeur d'application - PHP/Symfony OpenClassrooms - Projet 5
Formation Développeur d'application - PHP/Symfony OpenClassrooms - Projet 5
in src/Controller/PagesController.php, line 89
Method App\Controller\PagesController::checkEmail() has parameter $email with no type specified.
#[Route('/contact/done', name: 'contact_done', methods: ['GET'])]
public function contact_done(): Response {
return new Response('contact_done.html.twig');
}
private function checkEmail($email): bool {
$pattern = '/^\S+@\S+\.\S+$/';
if (preg_match($pattern, $email)) {
return true;
} else {
Posted from SymfonyInsight
in src/Twig/CategoriesExtension.php, line 17
Method App\Twig\CategoriesExtension::getCategories() has no return type specified.
return [
'allCategories' => $this->getCategories(),
];
}
private function getCategories() {
return (new CategoryRepository())->findAll();
}
}
Posted from SymfonyInsight
The web root doesn't contain a
site.webmanifest
file. The web app manifest provides information about a web application in a JSON text file, necessary for be presented to the user similarly to a native app
public/
├── artwork/
├── favicon/
├── images/
├── CV.BOYER.Thomas_signed.pdf
├── favicon.ico
├── index.php
└── robots.txt
Posted from SymfonyInsight
in src/Controller/BlogController.php, line 31
Result of method Core\AbstractController::createNotFoundException() (void) is used.
#[Route(path: '/article/{id}', name: 'article', methods: ['GET', 'POST'])]
public function article(int $id): Response {
$article = $this->blogPostRepository->find($id);
if (!$article) {
throw $this->createNotFoundException('Article non trouvé');
}
$converter = new GithubFlavoredMarkdownConverter([
'html_input' => 'strip',
'allow_unsafe_links' => true,
Posted from SymfonyInsight
in core/Interface/LevelInterface.php, line 3
This name (Core\Interface) is a PHP keyword. It cannot be used as a constant, function name, class, interface or trait name.
<?php
namespace Core\Interface;
interface LevelInterface {
public function getName(): string;
/**
Posted from SymfonyInsight
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.