Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 2c5ec60

Browse files
author
Teddy Roncin
committed
🚨 (src) Linted folder src
1 parent 7b353c7 commit 2c5ec60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+600
-4
lines changed

src/DataFixtures/GroupSeeder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class GroupSeeder extends Fixture implements DependentFixtureInterface
1717
* @var int The minimum number of groups which will have the isVisible property set to true
1818
*/
1919
protected int $minimumVisibleGroupCount;
20+
2021
/**
2122
* @var int The maximum number of groups which will have the isVisible property set to true
2223
*/

src/Entity/Asso.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* The main entity that represents all Assos.
2525
*
2626
* @ORM\Entity(repositoryClass=AssoRepository::class)
27+
*
2728
* @ORM\Table(name="assos")
2829
*/
2930
#[
@@ -58,9 +59,13 @@ class Asso
5859
{
5960
/**
6061
* @ORM\Id
62+
*
6163
* @ORM\Column(type="uuid", unique=true)
64+
*
6265
* @ORM\GeneratedValue(strategy="CUSTOM")
66+
*
6367
* @ORM\CustomIdGenerator(class=UuidGenerator::class)
68+
*
6469
* @Assert\Uuid
6570
*/
6671
#[Groups([
@@ -73,15 +78,20 @@ class Asso
7378
* The login used for the CAS.
7479
*
7580
* @ORM\Column(type="string", length=50, unique=true)
81+
*
7682
* @Assert\Type("string")
83+
*
7784
* @Assert\Length(min=1, max=50)
85+
*
7886
* @Assert\Regex("/^[a-z_0-9]{1,50}$/")
7987
*/
8088
private $login;
8189

8290
/**
8391
* @ORM\Column(type="string", length=100, unique=true)
92+
*
8493
* @Assert\Type("string")
94+
*
8595
* @Assert\Length(min=1, max=100)
8696
*/
8797
#[Groups([
@@ -116,8 +126,11 @@ class Asso
116126
* The email address of the association.
117127
*
118128
* @ORM\Column(type="string", length=100)
129+
*
119130
* @Assert\Type("string")
131+
*
120132
* @Assert\Length(min=1, max=100)
133+
*
121134
* @Assert\Email
122135
*/
123136
#[Groups([
@@ -129,8 +142,11 @@ class Asso
129142
* The phone number of the association.
130143
*
131144
* @ORM\Column(type="string", length=30, nullable=true)
145+
*
132146
* @Assert\Type("string")
147+
*
133148
* @Assert\Length(min=0, max=30)
149+
*
134150
* @Assert\Regex("/^0[0-9]{9}$/")
135151
*/
136152
#[Groups([
@@ -142,8 +158,11 @@ class Asso
142158
* The website of the association. It is optional.
143159
*
144160
* @ORM\Column(type="string", length=100, nullable=true)
161+
*
145162
* @Assert\Type("string")
163+
*
146164
* @Assert\Length(min=0, max=100)
165+
*
147166
* @Assert\Url
148167
*/
149168
#[Groups([
@@ -155,7 +174,9 @@ class Asso
155174
* Link to the logo of the association. It is optional.
156175
*
157176
* @ORM\Column(type="string", length=100, nullable=true)
177+
*
158178
* @Assert\Type("string")
179+
*
159180
* @Assert\Length(min=0, max=100)
160181
*/
161182
#[Groups([
@@ -166,6 +187,7 @@ class Asso
166187

167188
/**
168189
* @ORM\Column(type="datetime")
190+
*
169191
* @Assert\Type("\DateTimeInterface")
170192
*/
171193
#[Groups([
@@ -175,12 +197,14 @@ class Asso
175197

176198
/**
177199
* @ORM\Column(type="datetime")
200+
*
178201
* @Assert\Type("\DateTimeInterface")
179202
*/
180203
private $updatedAt;
181204

182205
/**
183206
* @ORM\Column(type="datetime", nullable=true)
207+
*
184208
* @Assert\Type("\DateTimeInterface")
185209
*/
186210
private $deletedAt;
@@ -189,6 +213,7 @@ class Asso
189213
* The relation to all Keywords of this Asso.
190214
*
191215
* @ORM\ManyToMany(targetEntity=AssoKeyword::class, inversedBy="assos")
216+
*
192217
* @ORM\JoinTable(
193218
* name="assos_keywords",
194219
* joinColumns={@ORM\JoinColumn(name="asso_id", referencedColumnName="id")},

src/Entity/AssoKeyword.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@
1111

1212
/**
1313
* @ORM\Entity(repositoryClass=AssoKeywordRepository::class)
14+
*
1415
* @ORM\Table(name="asso_keywords")
1516
*/
1617
class AssoKeyword
1718
{
1819
/**
1920
* @ORM\Id
21+
*
2022
* @ORM\Column(type="string", length=30, unique=true)
23+
*
2124
* @Assert\Type("string")
25+
*
2226
* @Assert\Length(min=1, max=30)
27+
*
2328
* @Assert\Regex("/^[a-z]{1,30}$/")
2429
*/
2530
#[Groups([

src/Entity/AssoMembership.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@
1313

1414
/**
1515
* @ORM\Entity(repositoryClass=AssoMembershipRepository::class)
16+
*
1617
* @ORM\Table(name="asso_memberships")
1718
*/
1819
class AssoMembership
1920
{
2021
/**
2122
* @ORM\Id
23+
*
2224
* @ORM\Column(type="uuid", unique=true)
25+
*
2326
* @ORM\GeneratedValue(strategy="CUSTOM")
27+
*
2428
* @ORM\CustomIdGenerator(class=UuidGenerator::class)
29+
*
2530
* @Assert\Uuid
2631
*/
2732
private $id;
@@ -30,6 +35,7 @@ class AssoMembership
3035
* The relation to the User that is subscribed to an Asso.
3136
*
3237
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="assoMembership")
38+
*
3339
* @ORM\JoinColumn(nullable=false)
3440
*/
3541
#[Groups([
@@ -41,6 +47,7 @@ class AssoMembership
4147
* The Asso in which the User is subscribed.
4248
*
4349
* @ORM\ManyToOne(targetEntity=Asso::class, inversedBy="assoMemberships")
50+
*
4451
* @ORM\JoinColumn(nullable=false)
4552
*/
4653
private $asso;
@@ -49,6 +56,7 @@ class AssoMembership
4956
* The relation to the roles accorded to the User in an Asso.
5057
*
5158
* @ORM\ManyToMany(targetEntity=AssoMembershipRole::class)
59+
*
5260
* @ORM\JoinTable(
5361
* name="asso_memberships_roles",
5462
* joinColumns={@ORM\JoinColumn(name="member_id", referencedColumnName="id")},
@@ -61,6 +69,7 @@ class AssoMembership
6169
* The relation to the permissions accorded to the User in an Asso.
6270
*
6371
* @ORM\ManyToMany(targetEntity=AssoMembershipPermission::class)
72+
*
6473
* @ORM\JoinTable(
6574
* name="asso_memberships_permissions",
6675
* joinColumns={@ORM\JoinColumn(name="member_id", referencedColumnName="id")},
@@ -81,6 +90,7 @@ class AssoMembership
8190

8291
/**
8392
* @ORM\Column(type="datetime")
93+
*
8494
* @Assert\Type("\DateTimeInterface")
8595
*/
8696
private $createdAt;

src/Entity/AssoMembershipPermission.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/**
1010
* @ORM\Entity(repositoryClass=AssoMemberPermissionRepository::class)
11+
*
1112
* @ORM\Table(name="asso_membership_permissions")
1213
*/
1314
class AssoMembershipPermission
@@ -16,9 +17,13 @@ class AssoMembershipPermission
1617
* The permission accorded in the association (e.g. "daymail", "events", "edit_desc").
1718
*
1819
* @ORM\Id
20+
*
1921
* @ORM\Column(type="string", length=50)
22+
*
2023
* @Assert\Type("string")
24+
*
2125
* @Assert\Length(min=1, max=50)
26+
*
2227
* @Assert\Regex("/^[a-z_]{1,50}/")
2328
*/
2429
private $name;

src/Entity/AssoMembershipRole.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
/**
1111
* @ORM\Entity(repositoryClass=AssoMemberRoleRepository::class)
12+
*
1213
* @ORM\Table(name="asso_membership_roles")
1314
*/
1415
class AssoMembershipRole
@@ -17,9 +18,13 @@ class AssoMembershipRole
1718
* The name of the role in the association (e.g. "president"), not necessary for members.
1819
*
1920
* @ORM\Id
21+
*
2022
* @ORM\Column(type="string", length=255)
23+
*
2124
* @Assert\Type("string")
25+
*
2226
* @Assert\Length(min=1, max=255)
27+
*
2328
* @Assert\Regex("/^[a-z_]{1,255}/")
2429
*/
2530
private $name;

src/Entity/AssoMessage.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@
1111

1212
/**
1313
* @ORM\Entity(repositoryClass=AssoMessageRepository::class)
14+
*
1415
* @ORM\Table(name="asso_messages")
1516
*/
1617
class AssoMessage
1718
{
1819
/**
1920
* @ORM\Id
21+
*
2022
* @ORM\Column(type="uuid", unique=true)
23+
*
2124
* @ORM\GeneratedValue(strategy="CUSTOM")
25+
*
2226
* @ORM\CustomIdGenerator(class=UuidGenerator::class)
27+
*
2328
* @Assert\Uuid
2429
*/
2530
private $id;
@@ -28,6 +33,7 @@ class AssoMessage
2833
* The relation to the Asso that sent this AssoMessage.
2934
*
3035
* @ORM\ManyToOne(targetEntity=Asso::class, inversedBy="assoMessages")
36+
*
3137
* @ORM\JoinColumn(name="asso_id", nullable=false)
3238
*/
3339
private $asso;
@@ -52,6 +58,7 @@ class AssoMessage
5258
* The date of the event presented in the message.
5359
*
5460
* @ORM\Column(type="datetime")
61+
*
5562
* @Assert\Type("\DateTimeInterface")
5663
*/
5764
private $date;
@@ -60,6 +67,7 @@ class AssoMessage
6067
* Whether the message should be displayed on mobile or not.
6168
*
6269
* @ORM\Column(type="boolean")
70+
*
6371
* @Assert\Type("bool")
6472
*/
6573
private $sendToMobile;
@@ -68,12 +76,14 @@ class AssoMessage
6876
* Whether the message should be send in the daymails or not.
6977
*
7078
* @ORM\Column(type="boolean")
79+
*
7180
* @Assert\Type("bool")
7281
*/
7382
private $sendAsDaymail;
7483

7584
/**
7685
* @ORM\Column(type="datetime")
86+
*
7787
* @Assert\Type("\DateTimeInterface")
7888
*/
7989
private $createdAt;

src/Entity/Badge.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@
1313

1414
/**
1515
* @ORM\Entity(repositoryClass=BadgeRepository::class)
16+
*
1617
* @ORM\Table(name="badges")
1718
*/
1819
class Badge
1920
{
2021
/**
2122
* @ORM\Id
23+
*
2224
* @ORM\Column(type="uuid", unique=true)
25+
*
2326
* @ORM\GeneratedValue(strategy="CUSTOM")
27+
*
2428
* @ORM\CustomIdGenerator(class=UuidGenerator::class)
29+
*
2530
* @Assert\Uuid
2631
*/
2732
private $id;
@@ -30,7 +35,9 @@ class Badge
3035
* The Serie is a group of Badge with the same idea (e.g. Badges that deal with being an asso member).
3136
*
3237
* @ORM\Column(type="string", length=50, nullable=true)
38+
*
3339
* @Assert\Type("string")
40+
*
3441
* @Assert\Length(max=50)
3542
*/
3643
private $serie;
@@ -39,14 +46,18 @@ class Badge
3946
* The Level is serves to determine which badge of a serie is more advanced.
4047
*
4148
* @ORM\Column(type="smallint", nullable=true)
49+
*
4250
* @Assert\Type("int")
51+
*
4352
* @Assert\Positive
4453
*/
4554
private $level;
4655

4756
/**
4857
* @ORM\Column(type="string", length=100)
58+
*
4959
* @Assert\Type("string")
60+
*
5061
* @Assert\Length(min=1, max=100)
5162
*/
5263
private $name;
@@ -55,7 +66,9 @@ class Badge
5566
* The path to the picture of the badge.
5667
*
5768
* @ORM\Column(type="string", length=255)
69+
*
5870
* @Assert\Type("string")
71+
*
5972
* @Assert\Length(min=1, max=255)
6073
*/
6174
private $picture;
@@ -70,12 +83,14 @@ class Badge
7083

7184
/**
7285
* @ORM\Column(type="datetime")
86+
*
7387
* @Assert\Type("\DateTimeInterface")
7488
*/
7589
private $createdAt;
7690

7791
/**
7892
* @ORM\Column(type="datetime", nullable=true)
93+
*
7994
* @Assert\Type("\DateTimeInterface")
8095
*/
8196
private $deletedAt;
@@ -84,6 +99,7 @@ class Badge
8499
* The relation that allow to add many Badges to many Users.
85100
*
86101
* @ORM\ManyToMany(targetEntity=User::class, inversedBy="badges")
102+
*
87103
* @ORM\JoinTable(
88104
* name="users_badges",
89105
* joinColumns={@ORM\JoinColumn(name="badge_id", referencedColumnName="id")},

0 commit comments

Comments
 (0)