DurandSacha/Symfony-Snowtricks

View on GitHub

Showing 6 of 15 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
 
 
Severity: Major
Found in src/Migrations/Version20190923212323.php and 1 other location - About 2 hrs to fix
src/Migrations/Version20190923212323.php on lines 37..52

Similar blocks of code found in 2 locations. Consider refactoring.
Open

public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
 
 
Severity: Major
Found in src/Migrations/Version20190923212323.php and 1 other location - About 2 hrs to fix
src/Migrations/Version20190923212323.php on lines 20..35

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php
 
declare(strict_types=1);
 
namespace DoctrineMigrations;
Severity: Major
Found in src/Migrations/Version20191010233810.php and 1 other location - About 1 hr to fix
src/Migrations/Version20191010233915.php on lines 1..35

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php
 
declare(strict_types=1);
 
namespace DoctrineMigrations;
Severity: Major
Found in src/Migrations/Version20191010233915.php and 1 other location - About 1 hr to fix
src/Migrations/Version20191010233810.php on lines 1..35

Similar blocks of code found in 2 locations. Consider refactoring.
Open

public function embed_delete($id)
{
$entityManager = $this->getDoctrine()->getManager();
 
/* Delete Media */
Severity: Minor
Found in src/Controller/MediaController.php and 1 other location - About 55 mins to fix
src/Controller/MediaController.php on lines 34..47

Similar blocks of code found in 2 locations. Consider refactoring.
Open

public function image_delete($id)
{
$entityManager = $this->getDoctrine()->getManager();
 
/* Delete Media */
Severity: Minor
Found in src/Controller/MediaController.php and 1 other location - About 55 mins to fix
src/Controller/MediaController.php on lines 56..69
Severity
Category
Status
Source
Language