* use php-cs-fixer instead of phpcodesniffer * updated scrutinizer config * adjusted code yules to all files * updated CONTRIBUTING guidelines
This commit is contained in:
@@ -31,7 +31,6 @@ use App\Repository\Query\ProjectQuery;
|
||||
*/
|
||||
class ProjectController extends AbstractController
|
||||
{
|
||||
|
||||
/**
|
||||
* @return \App\Repository\ProjectRepository
|
||||
*/
|
||||
@@ -110,7 +109,7 @@ class ProjectController extends AbstractController
|
||||
|
||||
$deleteForm->handleRequest($request);
|
||||
|
||||
if ($stats->getRecordAmount() == 0 || ($deleteForm->isSubmitted() && $deleteForm->isValid())) {
|
||||
if (0 == $stats->getRecordAmount() || ($deleteForm->isSubmitted() && $deleteForm->isValid())) {
|
||||
$entityManager = $this->getDoctrine()->getManager();
|
||||
$entityManager->remove($project);
|
||||
$entityManager->flush();
|
||||
|
||||
Reference in New Issue
Block a user