improved code styles #158 (#172)

* use php-cs-fixer instead of phpcodesniffer
* updated scrutinizer config
* adjusted code yules to all files
* updated CONTRIBUTING guidelines
This commit is contained in:
Kevin Papst
2018-06-22 21:09:10 +02:00
committed by GitHub
parent 773d27bb0e
commit cd7cbeae88
142 changed files with 775 additions and 467 deletions

View File

@@ -10,7 +10,6 @@
namespace App\Voter;
use App\Entity\User;
use App\Voter\AbstractVoter;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use App\Entity\Project;
@@ -19,11 +18,11 @@ use App\Entity\Project;
*/
class ProjectVoter extends AbstractVoter
{
const VIEW = 'view';
const EDIT = 'edit';
const DELETE = 'delete';
public const VIEW = 'view';
public const EDIT = 'edit';
public const DELETE = 'delete';
const ALLOWED_ATTRIBUTES = [
public const ALLOWED_ATTRIBUTES = [
self::VIEW,
self::EDIT,
self::DELETE