Merged Pull Request Introduce code formatting with PHP-CS-Fixer

This commit is contained in:
Kevin Frantz
2018-09-13 03:29:34 +02:00
42 changed files with 553 additions and 299 deletions

View File

@@ -1,4 +1,5 @@
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
@@ -6,7 +7,6 @@ use FOS\UserBundle\Model\User as BaseUser;
use App\Entity\Attribut\NodeAttribut;
/**
*
* @author kevinfrantz
* @ORM\Table(name="source_user")
* @ORM\Entity(repositoryClass="App\Repository\UserRepository")
@@ -14,24 +14,24 @@ use App\Entity\Attribut\NodeAttribut;
class User extends BaseUser implements SourceInterface
{
use NodeAttribut;
/**
* @ORM\Column(name="is_active", type="boolean")
*/
private $isActive;
/**
* @ORM\Id()
* @ORM\GeneratedValue
* @ORM\Column(type="integer")(strategy="AUTO")
*/
protected $id;
public function setId(int $id): void
{
$this->id = $id;
}
public function getId(): int
{
return $this->id;
@@ -39,8 +39,8 @@ class User extends BaseUser implements SourceInterface
public function __construct()
{
parent::__construct ();
/**
parent::__construct();
/*
* @todo Remove this later
* @var \App\Entity\User $isActive
*/