From 7b889ef86dc7fe819a2303955837a62e62920eb8 Mon Sep 17 00:00:00 2001
From: Nicolas Raidelet <nicolas.raidelet@irstea.fr>
Date: Tue, 28 Nov 2017 11:18:56 +0100
Subject: [PATCH] =?UTF-8?q?Corrections=20effectu=C3=A9es=20par=20php-cs-fi?=
 =?UTF-8?q?xer?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/Command/GenerateCommand.php                        |  2 +-
 src/Command/RenderCommand.php                          |  2 +-
 src/DependencyInjection/Builder/ClassFilterBuilder.php |  2 +-
 .../Builder/GraphDefinitionBuilder.php                 |  2 +-
 src/DependencyInjection/Configuration.php              |  2 +-
 src/DependencyInjection/IrsteaPlantUmlExtension.php    |  2 +-
 src/Doctrine/AbstractDoctrineDecorator.php             |  2 +-
 src/Doctrine/AssociationDecorator.php                  |  2 +-
 src/Doctrine/DoctrineNamespace.php                     |  6 +++---
 src/Doctrine/EntityDecorator.php                       |  2 +-
 src/Doctrine/EntityFinder.php                          |  2 +-
 src/Doctrine/Field.php                                 |  2 +-
 src/Doctrine/FieldDecorator.php                        |  2 +-
 src/Finder/ClassFinder.php                             |  2 +-
 src/Finder/FilteringFinder.php                         |  2 +-
 src/Finder/FinderInterface.php                         |  2 +-
 src/IrsteaPlantUmlBundle.php                           |  2 +-
 src/Model/Arrow/BaseArrow.php                          |  2 +-
 src/Model/Arrow/ExtendsClass.php                       |  2 +-
 src/Model/Arrow/ImplementsInterface.php                |  2 +-
 src/Model/Arrow/UsesTrait.php                          |  2 +-
 src/Model/ArrowInterface.php                           |  2 +-
 src/Model/ClassFilterInterface.php                     |  2 +-
 src/Model/ClassVisitor.php                             |  2 +-
 src/Model/ClassVisitorInterface.php                    |  2 +-
 src/Model/Decorator/AbstractRelationDecorator.php      |  2 +-
 src/Model/Decorator/AttributeDecorator.php             |  2 +-
 src/Model/Decorator/CompositeDecorator.php             |  2 +-
 src/Model/Decorator/FilteringDecorator.php             |  2 +-
 src/Model/Decorator/InheritableItemDecoratorTrait.php  |  2 +-
 src/Model/Decorator/InheritanceDecorator.php           |  2 +-
 src/Model/Decorator/InterfaceDecorator.php             |  2 +-
 src/Model/Decorator/MethodDecorator.php                |  2 +-
 src/Model/Decorator/NullDecorator.php                  |  2 +-
 src/Model/Decorator/TraitDecorator.php                 |  2 +-
 src/Model/DecoratorInterface.php                       |  2 +-
 src/Model/Filter/AbstractListFilter.php                |  2 +-
 src/Model/Filter/AcceptAllFilter.php                   |  2 +-
 src/Model/Filter/ClassFilter.php                       |  4 ++--
 src/Model/Filter/Composite/AbstractCompositeFilter.php |  2 +-
 src/Model/Filter/Composite/AllFilter.php               |  2 +-
 src/Model/Filter/Composite/AnyFilter.php               |  2 +-
 src/Model/Filter/DirectoryFilter.php                   |  4 ++--
 src/Model/Filter/NamespaceFilter.php                   |  4 ++--
 src/Model/Graph.php                                    |  2 +-
 src/Model/GraphInterface.php                           |  2 +-
 src/Model/NamespaceInterface.php                       |  2 +-
 src/Model/Namespace_/AbstractNamespace.php             |  2 +-
 src/Model/Namespace_/BundleNamespace.php               |  6 +++---
 src/Model/Namespace_/FlatNamespace.php                 |  6 +++---
 src/Model/Namespace_/MappedNamespace.php               |  4 ++--
 src/Model/Namespace_/Php/AbstractNamespace.php         |  2 +-
 src/Model/Namespace_/Php/Namespace_.php                |  2 +-
 src/Model/Namespace_/Php/RootNamespace.php             |  4 ++--
 src/Model/Node/BaseNode.php                            |  2 +-
 src/Model/Node/Class_.php                              |  2 +-
 src/Model/Node/Interface_.php                          |  2 +-
 src/Model/Node/Member/AttributeInterface.php           |  2 +-
 src/Model/Node/Member/Member.php                       |  2 +-
 src/Model/Node/Member/MemberInterface.php              | 10 +++++-----
 src/Model/Node/Member/MethodInterface.php              |  2 +-
 src/Model/Node/Trait_.php                              |  2 +-
 src/Model/NodeInterface.php                            |  2 +-
 src/Model/ToConfigInterface.php                        |  2 +-
 src/Model/TypedSymbol.php                              |  2 +-
 src/Utils/Singleton.php                                |  2 +-
 src/Writer/AbstractWriter.php                          |  2 +-
 src/Writer/OutputWriter.php                            |  2 +-
 src/Writer/StreamWriter.php                            |  2 +-
 src/Writer/WritableArrowInterface.php                  |  2 +-
 src/Writer/WritableInterface.php                       |  2 +-
 src/Writer/WritableNodeInterface.php                   |  2 +-
 src/Writer/WriterInterface.php                         |  2 +-
 73 files changed, 88 insertions(+), 88 deletions(-)

diff --git a/src/Command/GenerateCommand.php b/src/Command/GenerateCommand.php
index 725a0d8..106b1e3 100644
--- a/src/Command/GenerateCommand.php
+++ b/src/Command/GenerateCommand.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Command/RenderCommand.php b/src/Command/RenderCommand.php
index 660d924..790b8d9 100644
--- a/src/Command/RenderCommand.php
+++ b/src/Command/RenderCommand.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/DependencyInjection/Builder/ClassFilterBuilder.php b/src/DependencyInjection/Builder/ClassFilterBuilder.php
index 091a8fb..08dae59 100644
--- a/src/DependencyInjection/Builder/ClassFilterBuilder.php
+++ b/src/DependencyInjection/Builder/ClassFilterBuilder.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/DependencyInjection/Builder/GraphDefinitionBuilder.php b/src/DependencyInjection/Builder/GraphDefinitionBuilder.php
index b3d2ea3..3ce8f60 100644
--- a/src/DependencyInjection/Builder/GraphDefinitionBuilder.php
+++ b/src/DependencyInjection/Builder/GraphDefinitionBuilder.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php
index 7ca09e5..7e43004 100644
--- a/src/DependencyInjection/Configuration.php
+++ b/src/DependencyInjection/Configuration.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/DependencyInjection/IrsteaPlantUmlExtension.php b/src/DependencyInjection/IrsteaPlantUmlExtension.php
index 99ff84b..e75f6f6 100644
--- a/src/DependencyInjection/IrsteaPlantUmlExtension.php
+++ b/src/DependencyInjection/IrsteaPlantUmlExtension.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Doctrine/AbstractDoctrineDecorator.php b/src/Doctrine/AbstractDoctrineDecorator.php
index 5412c57..c06ce29 100644
--- a/src/Doctrine/AbstractDoctrineDecorator.php
+++ b/src/Doctrine/AbstractDoctrineDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Doctrine/AssociationDecorator.php b/src/Doctrine/AssociationDecorator.php
index c34e610..103f9ff 100644
--- a/src/Doctrine/AssociationDecorator.php
+++ b/src/Doctrine/AssociationDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Doctrine/DoctrineNamespace.php b/src/Doctrine/DoctrineNamespace.php
index ebd61d3..1020ada 100644
--- a/src/Doctrine/DoctrineNamespace.php
+++ b/src/Doctrine/DoctrineNamespace.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
@@ -11,8 +11,8 @@ namespace Irstea\PlantUmlBundle\Doctrine;
  */
 class DoctrineNamespace extends \Irstea\PlantUmlBundle\Model\Namespace_\MappedNamespace
 {
-    const CONF_TYPE = 'entities';
-    const SEPARATOR = '::';
+    public const CONF_TYPE = 'entities';
+    public const SEPARATOR = '::';
 
     public function __construct(\Doctrine\ORM\EntityManagerInterface $em)
     {
diff --git a/src/Doctrine/EntityDecorator.php b/src/Doctrine/EntityDecorator.php
index 6ae6b49..2e9cee3 100644
--- a/src/Doctrine/EntityDecorator.php
+++ b/src/Doctrine/EntityDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Doctrine/EntityFinder.php b/src/Doctrine/EntityFinder.php
index 723d48f..a04ac90 100644
--- a/src/Doctrine/EntityFinder.php
+++ b/src/Doctrine/EntityFinder.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Doctrine/Field.php b/src/Doctrine/Field.php
index f74c8c9..78a3973 100644
--- a/src/Doctrine/Field.php
+++ b/src/Doctrine/Field.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Doctrine/FieldDecorator.php b/src/Doctrine/FieldDecorator.php
index 327433f..59f6fca 100644
--- a/src/Doctrine/FieldDecorator.php
+++ b/src/Doctrine/FieldDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Finder/ClassFinder.php b/src/Finder/ClassFinder.php
index 410a974..11fc155 100644
--- a/src/Finder/ClassFinder.php
+++ b/src/Finder/ClassFinder.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Finder/FilteringFinder.php b/src/Finder/FilteringFinder.php
index 64facb6..7cfa5ea 100644
--- a/src/Finder/FilteringFinder.php
+++ b/src/Finder/FilteringFinder.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Finder/FinderInterface.php b/src/Finder/FinderInterface.php
index 84e03d7..e40377a 100644
--- a/src/Finder/FinderInterface.php
+++ b/src/Finder/FinderInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/IrsteaPlantUmlBundle.php b/src/IrsteaPlantUmlBundle.php
index 635d532..5e3bc8b 100644
--- a/src/IrsteaPlantUmlBundle.php
+++ b/src/IrsteaPlantUmlBundle.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Arrow/BaseArrow.php b/src/Model/Arrow/BaseArrow.php
index c63ab5b..ad05543 100644
--- a/src/Model/Arrow/BaseArrow.php
+++ b/src/Model/Arrow/BaseArrow.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Arrow/ExtendsClass.php b/src/Model/Arrow/ExtendsClass.php
index 2399fad..9cbec00 100644
--- a/src/Model/Arrow/ExtendsClass.php
+++ b/src/Model/Arrow/ExtendsClass.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Arrow/ImplementsInterface.php b/src/Model/Arrow/ImplementsInterface.php
index 1dae75e..605096f 100644
--- a/src/Model/Arrow/ImplementsInterface.php
+++ b/src/Model/Arrow/ImplementsInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Arrow/UsesTrait.php b/src/Model/Arrow/UsesTrait.php
index 9e15858..0d222e7 100644
--- a/src/Model/Arrow/UsesTrait.php
+++ b/src/Model/Arrow/UsesTrait.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/ArrowInterface.php b/src/Model/ArrowInterface.php
index 83b0d86..986bb7c 100644
--- a/src/Model/ArrowInterface.php
+++ b/src/Model/ArrowInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/ClassFilterInterface.php b/src/Model/ClassFilterInterface.php
index 7c0ea75..af7d799 100644
--- a/src/Model/ClassFilterInterface.php
+++ b/src/Model/ClassFilterInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/ClassVisitor.php b/src/Model/ClassVisitor.php
index 289f3fe..50796c9 100644
--- a/src/Model/ClassVisitor.php
+++ b/src/Model/ClassVisitor.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/ClassVisitorInterface.php b/src/Model/ClassVisitorInterface.php
index d784fa3..e834718 100644
--- a/src/Model/ClassVisitorInterface.php
+++ b/src/Model/ClassVisitorInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Decorator/AbstractRelationDecorator.php b/src/Model/Decorator/AbstractRelationDecorator.php
index 9de1612..82ac148 100644
--- a/src/Model/Decorator/AbstractRelationDecorator.php
+++ b/src/Model/Decorator/AbstractRelationDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Decorator/AttributeDecorator.php b/src/Model/Decorator/AttributeDecorator.php
index b8c97d5..1860117 100644
--- a/src/Model/Decorator/AttributeDecorator.php
+++ b/src/Model/Decorator/AttributeDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Decorator/CompositeDecorator.php b/src/Model/Decorator/CompositeDecorator.php
index 8e2f6db..f164dd8 100644
--- a/src/Model/Decorator/CompositeDecorator.php
+++ b/src/Model/Decorator/CompositeDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Decorator/FilteringDecorator.php b/src/Model/Decorator/FilteringDecorator.php
index b08da45..f7201e3 100644
--- a/src/Model/Decorator/FilteringDecorator.php
+++ b/src/Model/Decorator/FilteringDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Decorator/InheritableItemDecoratorTrait.php b/src/Model/Decorator/InheritableItemDecoratorTrait.php
index 08c366a..ab3d226 100644
--- a/src/Model/Decorator/InheritableItemDecoratorTrait.php
+++ b/src/Model/Decorator/InheritableItemDecoratorTrait.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Decorator/InheritanceDecorator.php b/src/Model/Decorator/InheritanceDecorator.php
index ea20986..d39868d 100644
--- a/src/Model/Decorator/InheritanceDecorator.php
+++ b/src/Model/Decorator/InheritanceDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Decorator/InterfaceDecorator.php b/src/Model/Decorator/InterfaceDecorator.php
index 6086905..247d287 100644
--- a/src/Model/Decorator/InterfaceDecorator.php
+++ b/src/Model/Decorator/InterfaceDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Decorator/MethodDecorator.php b/src/Model/Decorator/MethodDecorator.php
index e3a5993..943330b 100644
--- a/src/Model/Decorator/MethodDecorator.php
+++ b/src/Model/Decorator/MethodDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Decorator/NullDecorator.php b/src/Model/Decorator/NullDecorator.php
index ccd2701..9db54c6 100644
--- a/src/Model/Decorator/NullDecorator.php
+++ b/src/Model/Decorator/NullDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Decorator/TraitDecorator.php b/src/Model/Decorator/TraitDecorator.php
index 2cc27a2..6873a96 100644
--- a/src/Model/Decorator/TraitDecorator.php
+++ b/src/Model/Decorator/TraitDecorator.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/DecoratorInterface.php b/src/Model/DecoratorInterface.php
index 0851b44..433bcab 100644
--- a/src/Model/DecoratorInterface.php
+++ b/src/Model/DecoratorInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Filter/AbstractListFilter.php b/src/Model/Filter/AbstractListFilter.php
index 93a4fca..b3ddf7c 100644
--- a/src/Model/Filter/AbstractListFilter.php
+++ b/src/Model/Filter/AbstractListFilter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Filter/AcceptAllFilter.php b/src/Model/Filter/AcceptAllFilter.php
index 2d620ff..a6aeb76 100644
--- a/src/Model/Filter/AcceptAllFilter.php
+++ b/src/Model/Filter/AcceptAllFilter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Filter/ClassFilter.php b/src/Model/Filter/ClassFilter.php
index b63db80..b26469e 100644
--- a/src/Model/Filter/ClassFilter.php
+++ b/src/Model/Filter/ClassFilter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
@@ -13,7 +13,7 @@ use ReflectionClass;
  */
 class ClassFilter extends AbstractListFilter
 {
-    const CONF_TYPE = 'classes';
+    public const CONF_TYPE = 'classes';
 
     protected function extract(ReflectionClass $class)
     {
diff --git a/src/Model/Filter/Composite/AbstractCompositeFilter.php b/src/Model/Filter/Composite/AbstractCompositeFilter.php
index b468447..07be377 100644
--- a/src/Model/Filter/Composite/AbstractCompositeFilter.php
+++ b/src/Model/Filter/Composite/AbstractCompositeFilter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Filter/Composite/AllFilter.php b/src/Model/Filter/Composite/AllFilter.php
index 35cbfc8..c2f7507 100644
--- a/src/Model/Filter/Composite/AllFilter.php
+++ b/src/Model/Filter/Composite/AllFilter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Filter/Composite/AnyFilter.php b/src/Model/Filter/Composite/AnyFilter.php
index e53b972..180abf4 100644
--- a/src/Model/Filter/Composite/AnyFilter.php
+++ b/src/Model/Filter/Composite/AnyFilter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Filter/DirectoryFilter.php b/src/Model/Filter/DirectoryFilter.php
index 7ac087d..2b0b2be 100644
--- a/src/Model/Filter/DirectoryFilter.php
+++ b/src/Model/Filter/DirectoryFilter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
@@ -13,7 +13,7 @@ use ReflectionClass;
  */
 class DirectoryFilter extends AbstractListFilter
 {
-    const CONF_TYPE = 'directories';
+    public const CONF_TYPE = 'directories';
 
     protected function extract(ReflectionClass $class)
     {
diff --git a/src/Model/Filter/NamespaceFilter.php b/src/Model/Filter/NamespaceFilter.php
index e329085..a0d766d 100644
--- a/src/Model/Filter/NamespaceFilter.php
+++ b/src/Model/Filter/NamespaceFilter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
@@ -13,7 +13,7 @@ use ReflectionClass;
  */
 class NamespaceFilter extends AbstractListFilter
 {
-    const CONF_TYPE = 'namespaces';
+    public const CONF_TYPE = 'namespaces';
 
     protected function extract(ReflectionClass $class)
     {
diff --git a/src/Model/Graph.php b/src/Model/Graph.php
index 22ca964..f7dddc8 100644
--- a/src/Model/Graph.php
+++ b/src/Model/Graph.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/GraphInterface.php b/src/Model/GraphInterface.php
index 95444dd..9dc76ed 100644
--- a/src/Model/GraphInterface.php
+++ b/src/Model/GraphInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/NamespaceInterface.php b/src/Model/NamespaceInterface.php
index 9a76931..2b378e1 100644
--- a/src/Model/NamespaceInterface.php
+++ b/src/Model/NamespaceInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Namespace_/AbstractNamespace.php b/src/Model/Namespace_/AbstractNamespace.php
index 2e280bb..1f8bc8b 100644
--- a/src/Model/Namespace_/AbstractNamespace.php
+++ b/src/Model/Namespace_/AbstractNamespace.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Namespace_/BundleNamespace.php b/src/Model/Namespace_/BundleNamespace.php
index 7885c30..d2bb35d 100644
--- a/src/Model/Namespace_/BundleNamespace.php
+++ b/src/Model/Namespace_/BundleNamespace.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
@@ -11,8 +11,8 @@ namespace Irstea\PlantUmlBundle\Model\Namespace_;
  */
 class BundleNamespace extends MappedNamespace
 {
-    const CONF_TYPE = 'bundles';
-    const SEPARATOR = '::';
+    public const CONF_TYPE = 'bundles';
+    public const SEPARATOR = '::';
 
     public function __construct(array $bundles)
     {
diff --git a/src/Model/Namespace_/FlatNamespace.php b/src/Model/Namespace_/FlatNamespace.php
index ea0f771..7052a4a 100644
--- a/src/Model/Namespace_/FlatNamespace.php
+++ b/src/Model/Namespace_/FlatNamespace.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
@@ -14,8 +14,8 @@ use Irstea\PlantUmlBundle\Writer\WriterInterface;
  */
 class FlatNamespace extends AbstractNamespace
 {
-    const CONF_TYPE = 'flat';
-    const SEPARATOR = 'none';
+    public const CONF_TYPE = 'flat';
+    public const SEPARATOR = 'none';
 
     /**
      * @var ArrowInterface[]
diff --git a/src/Model/Namespace_/MappedNamespace.php b/src/Model/Namespace_/MappedNamespace.php
index 89d4e22..92157f5 100644
--- a/src/Model/Namespace_/MappedNamespace.php
+++ b/src/Model/Namespace_/MappedNamespace.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
@@ -11,7 +11,7 @@ namespace Irstea\PlantUmlBundle\Model\Namespace_;
  */
 class MappedNamespace extends FlatNamespace
 {
-    const SEPARATOR = '::';
+    public const SEPARATOR = '::';
 
     /**
      * @var string[]
diff --git a/src/Model/Namespace_/Php/AbstractNamespace.php b/src/Model/Namespace_/Php/AbstractNamespace.php
index e88d5f9..1633106 100644
--- a/src/Model/Namespace_/Php/AbstractNamespace.php
+++ b/src/Model/Namespace_/Php/AbstractNamespace.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Namespace_/Php/Namespace_.php b/src/Model/Namespace_/Php/Namespace_.php
index 9d6076f..bfca7b3 100644
--- a/src/Model/Namespace_/Php/Namespace_.php
+++ b/src/Model/Namespace_/Php/Namespace_.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Namespace_/Php/RootNamespace.php b/src/Model/Namespace_/Php/RootNamespace.php
index ba25390..37f8504 100644
--- a/src/Model/Namespace_/Php/RootNamespace.php
+++ b/src/Model/Namespace_/Php/RootNamespace.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
@@ -14,7 +14,7 @@ use Irstea\PlantUmlBundle\Writer\WriterInterface;
  */
 class RootNamespace extends AbstractNamespace
 {
-    const CONF_TYPE = 'php';
+    public const CONF_TYPE = 'php';
 
     /**
      * @var ArrowInterface[]
diff --git a/src/Model/Node/BaseNode.php b/src/Model/Node/BaseNode.php
index 181a3ed..e58f407 100644
--- a/src/Model/Node/BaseNode.php
+++ b/src/Model/Node/BaseNode.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Node/Class_.php b/src/Model/Node/Class_.php
index 70ebf2e..62e419a 100644
--- a/src/Model/Node/Class_.php
+++ b/src/Model/Node/Class_.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Node/Interface_.php b/src/Model/Node/Interface_.php
index 77efa2e..2beb24f 100644
--- a/src/Model/Node/Interface_.php
+++ b/src/Model/Node/Interface_.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Node/Member/AttributeInterface.php b/src/Model/Node/Member/AttributeInterface.php
index e4a7565..00c2ca1 100644
--- a/src/Model/Node/Member/AttributeInterface.php
+++ b/src/Model/Node/Member/AttributeInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Node/Member/Member.php b/src/Model/Node/Member/Member.php
index e9992cb..d53b13b 100644
--- a/src/Model/Node/Member/Member.php
+++ b/src/Model/Node/Member/Member.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Node/Member/MemberInterface.php b/src/Model/Node/Member/MemberInterface.php
index 15d4c32..7edcd0a 100644
--- a/src/Model/Node/Member/MemberInterface.php
+++ b/src/Model/Node/Member/MemberInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
@@ -10,8 +10,8 @@ use Irstea\PlantUmlBundle\Writer\WritableInterface;
 
 interface MemberInterface extends WritableInterface
 {
-    const PRIVATE_ = '-';
-    const PROTECTED_ = '#';
-    const PUBLIC_ = '+';
-    const UNKNOWN = '';
+    public const PRIVATE_ = '-';
+    public const PROTECTED_ = '#';
+    public const PUBLIC_ = '+';
+    public const UNKNOWN = '';
 }
diff --git a/src/Model/Node/Member/MethodInterface.php b/src/Model/Node/Member/MethodInterface.php
index 413e6ff..d8ac5db 100644
--- a/src/Model/Node/Member/MethodInterface.php
+++ b/src/Model/Node/Member/MethodInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/Node/Trait_.php b/src/Model/Node/Trait_.php
index 6282f38..fba1de7 100644
--- a/src/Model/Node/Trait_.php
+++ b/src/Model/Node/Trait_.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/NodeInterface.php b/src/Model/NodeInterface.php
index d740bdb..00237f9 100644
--- a/src/Model/NodeInterface.php
+++ b/src/Model/NodeInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/ToConfigInterface.php b/src/Model/ToConfigInterface.php
index c20ab79..a3141a2 100644
--- a/src/Model/ToConfigInterface.php
+++ b/src/Model/ToConfigInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Model/TypedSymbol.php b/src/Model/TypedSymbol.php
index f74c765..e1fbbce 100644
--- a/src/Model/TypedSymbol.php
+++ b/src/Model/TypedSymbol.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Utils/Singleton.php b/src/Utils/Singleton.php
index 6f36a97..153cedf 100644
--- a/src/Utils/Singleton.php
+++ b/src/Utils/Singleton.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Writer/AbstractWriter.php b/src/Writer/AbstractWriter.php
index d93b17b..2d54d67 100644
--- a/src/Writer/AbstractWriter.php
+++ b/src/Writer/AbstractWriter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Writer/OutputWriter.php b/src/Writer/OutputWriter.php
index 1917616..445ef73 100644
--- a/src/Writer/OutputWriter.php
+++ b/src/Writer/OutputWriter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Writer/StreamWriter.php b/src/Writer/StreamWriter.php
index 564591b..e4e6a22 100644
--- a/src/Writer/StreamWriter.php
+++ b/src/Writer/StreamWriter.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Writer/WritableArrowInterface.php b/src/Writer/WritableArrowInterface.php
index 2bf1d75..93ddcb4 100644
--- a/src/Writer/WritableArrowInterface.php
+++ b/src/Writer/WritableArrowInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Writer/WritableInterface.php b/src/Writer/WritableInterface.php
index 38775e3..cac071a 100644
--- a/src/Writer/WritableInterface.php
+++ b/src/Writer/WritableInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Writer/WritableNodeInterface.php b/src/Writer/WritableNodeInterface.php
index 9196671..8e03b38 100644
--- a/src/Writer/WritableNodeInterface.php
+++ b/src/Writer/WritableNodeInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
diff --git a/src/Writer/WriterInterface.php b/src/Writer/WriterInterface.php
index 003d8e5..6546b8b 100644
--- a/src/Writer/WriterInterface.php
+++ b/src/Writer/WriterInterface.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
 /*
  * Copyright (C) 2016-2017 IRSTEA
  * All rights reserved.
-- 
GitLab