Passed
Push — master ( 582587...3b42e9 )
by Anthony
04:10 queued 11s
created
Entity/Page.php 2 patches
Indentation   +233 added lines, -233 removed lines patch added patch discarded remove patch
@@ -14,80 +14,80 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class Page
16 16
 {
17
-    /**
18
-     * @var integer
19
-     *
20
-     * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
21
-     * @ORM\Id
22
-     * @ORM\GeneratedValue(strategy="IDENTITY")
23
-     */
24
-    private $id;
25
-
26
-    /**
27
-     * @var string
28
-     *
29
-     * @ORM\Column(name="guid", type="string", length=255, nullable=false)
30
-     */
31
-    private $guid;
32
-
33
-    /**
34
-     * @var string
35
-     *
36
-     * @ORM\Column(name="title_tag", type="string", length=70, nullable=true)
37
-     */
38
-    private $titleTag;
39
-
40
-    /**
41
-     * @var string
42
-     *
43
-     * @ORM\Column(name="description_tag", type="string", length=160, nullable=true)
44
-     */
45
-    private $descriptionTag;
46
-
47
-    /**
48
-     * @var string
49
-     *
50
-     * @ORM\Column(name="title", type="string", length=255, nullable=false)
51
-     */
52
-    private $title;
53
-
54
-    /**
55
-     * @var string
56
-     *
57
-     * @ORM\Column(name="content", type="text", nullable=true)
58
-     */
59
-    private $content;
60
-
61
-    /**
62
-     * @var integer
63
-     *
64
-     * @ORM\Column(name="active", type="integer", nullable=false)
65
-     */
66
-    private $active;
67
-
68
-    /**
69
-     * @var integer
70
-     *
71
-     * @ORM\Column(name="order", type="integer", nullable=false)
72
-     */
73
-    private $order;
74
-
75
-    /**
76
-     * @var integer
77
-     *
78
-     * @ORM\Column(name="displayed", type="integer", nullable=false)
79
-     */
80
-    private $displayed;
81
-
82
-    /**
83
-     * @var \Page
84
-     *
85
-     * @ORM\ManyToOne(targetEntity="Page")
86
-     * @ORM\JoinColumns({
87
-     *   @ORM\JoinColumn(name="parent", referencedColumnName="id")
88
-     * })
89
-     */
90
-    private $parent;
17
+				/**
18
+				 * @var integer
19
+				 *
20
+				 * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
21
+				 * @ORM\Id
22
+				 * @ORM\GeneratedValue(strategy="IDENTITY")
23
+				 */
24
+				private $id;
25
+
26
+				/**
27
+				 * @var string
28
+				 *
29
+				 * @ORM\Column(name="guid", type="string", length=255, nullable=false)
30
+				 */
31
+				private $guid;
32
+
33
+				/**
34
+				 * @var string
35
+				 *
36
+				 * @ORM\Column(name="title_tag", type="string", length=70, nullable=true)
37
+				 */
38
+				private $titleTag;
39
+
40
+				/**
41
+				 * @var string
42
+				 *
43
+				 * @ORM\Column(name="description_tag", type="string", length=160, nullable=true)
44
+				 */
45
+				private $descriptionTag;
46
+
47
+				/**
48
+				 * @var string
49
+				 *
50
+				 * @ORM\Column(name="title", type="string", length=255, nullable=false)
51
+				 */
52
+				private $title;
53
+
54
+				/**
55
+				 * @var string
56
+				 *
57
+				 * @ORM\Column(name="content", type="text", nullable=true)
58
+				 */
59
+				private $content;
60
+
61
+				/**
62
+				 * @var integer
63
+				 *
64
+				 * @ORM\Column(name="active", type="integer", nullable=false)
65
+				 */
66
+				private $active;
67
+
68
+				/**
69
+				 * @var integer
70
+				 *
71
+				 * @ORM\Column(name="order", type="integer", nullable=false)
72
+				 */
73
+				private $order;
74
+
75
+				/**
76
+				 * @var integer
77
+				 *
78
+				 * @ORM\Column(name="displayed", type="integer", nullable=false)
79
+				 */
80
+				private $displayed;
81
+
82
+				/**
83
+				 * @var \Page
84
+				 *
85
+				 * @ORM\ManyToOne(targetEntity="Page")
86
+				 * @ORM\JoinColumns({
87
+				 *   @ORM\JoinColumn(name="parent", referencedColumnName="id")
88
+				 * })
89
+				 */
90
+				private $parent;
91 91
 	
92 92
 	/**
93 93
 	 * @var \DateTime
@@ -105,165 +105,165 @@  discard block
 block discarded – undo
105 105
 	 */
106 106
 	private $updateDate;
107 107
 
108
-    /**
109
-     * @return int
110
-     */
111
-    public function getId()
112
-    {
113
-        return $this->id;
114
-    }
115
-
116
-    /**
117
-     * @param int $id
118
-     */
119
-    public function setId($id)
120
-    {
121
-        $this->id = $id;
122
-    }
123
-
124
-    /**
125
-     * @return string
126
-     */
127
-    public function getGuid()
128
-    {
129
-        return $this->guid;
130
-    }
131
-
132
-    /**
133
-     * @param string $guid
134
-     */
135
-    public function setGuid($guid)
136
-    {
137
-        $this->guid = $guid;
138
-    }
139
-
140
-    /**
141
-     * @return string
142
-     */
143
-    public function getTitleTag()
144
-    {
145
-        return $this->titleTag;
146
-    }
147
-
148
-    /**
149
-     * @param string $titleTag
150
-     */
151
-    public function setTitleTag($titleTag)
152
-    {
153
-        $this->titleTag = $titleTag;
154
-    }
155
-
156
-    /**
157
-     * @return string
158
-     */
159
-    public function getDescriptionTag()
160
-    {
161
-        return $this->descriptionTag;
162
-    }
163
-
164
-    /**
165
-     * @param string $descriptionTag
166
-     */
167
-    public function setDescriptionTag($descriptionTag)
168
-    {
169
-        $this->descriptionTag = $descriptionTag;
170
-    }
171
-
172
-    /**
173
-     * @return string
174
-     */
175
-    public function getTitle()
176
-    {
177
-        return $this->title;
178
-    }
179
-
180
-    /**
181
-     * @param string $title
182
-     */
183
-    public function setTitle($title)
184
-    {
185
-        $this->title = $title;
186
-    }
187
-
188
-    /**
189
-     * @return string
190
-     */
191
-    public function getContent()
192
-    {
193
-        return $this->content;
194
-    }
195
-
196
-    /**
197
-     * @param string $content
198
-     */
199
-    public function setContent($content)
200
-    {
201
-        $this->content = $content;
202
-    }
203
-
204
-    /**
205
-     * @return int
206
-     */
207
-    public function getActive()
208
-    {
209
-        return $this->active;
210
-    }
211
-
212
-    /**
213
-     * @param int $active
214
-     */
215
-    public function setActive($active)
216
-    {
217
-        $this->active = $active;
218
-    }
219
-
220
-    /**
221
-     * @return int
222
-     */
223
-    public function getOrder()
224
-    {
225
-        return $this->order;
226
-    }
227
-
228
-    /**
229
-     * @param int $order
230
-     */
231
-    public function setOrder($order)
232
-    {
233
-        $this->order = $order;
234
-    }
235
-
236
-    /**
237
-     * @return int
238
-     */
239
-    public function getDisplayed()
240
-    {
241
-        return $this->displayed;
242
-    }
243
-
244
-    /**
245
-     * @param int $displayed
246
-     */
247
-    public function setDisplayed($displayed)
248
-    {
249
-        $this->displayed = $displayed;
250
-    }
251
-
252
-    /**
253
-     * @return \Page
254
-     */
255
-    public function getParent()
256
-    {
257
-        return $this->parent;
258
-    }
259
-
260
-    /**
261
-     * @param \Page $parent
262
-     */
263
-    public function setParent($parent)
264
-    {
265
-        $this->parent = $parent;
266
-    }
108
+				/**
109
+				 * @return int
110
+				 */
111
+				public function getId()
112
+				{
113
+								return $this->id;
114
+				}
115
+
116
+				/**
117
+				 * @param int $id
118
+				 */
119
+				public function setId($id)
120
+				{
121
+								$this->id = $id;
122
+				}
123
+
124
+				/**
125
+				 * @return string
126
+				 */
127
+				public function getGuid()
128
+				{
129
+								return $this->guid;
130
+				}
131
+
132
+				/**
133
+				 * @param string $guid
134
+				 */
135
+				public function setGuid($guid)
136
+				{
137
+								$this->guid = $guid;
138
+				}
139
+
140
+				/**
141
+				 * @return string
142
+				 */
143
+				public function getTitleTag()
144
+				{
145
+								return $this->titleTag;
146
+				}
147
+
148
+				/**
149
+				 * @param string $titleTag
150
+				 */
151
+				public function setTitleTag($titleTag)
152
+				{
153
+								$this->titleTag = $titleTag;
154
+				}
155
+
156
+				/**
157
+				 * @return string
158
+				 */
159
+				public function getDescriptionTag()
160
+				{
161
+								return $this->descriptionTag;
162
+				}
163
+
164
+				/**
165
+				 * @param string $descriptionTag
166
+				 */
167
+				public function setDescriptionTag($descriptionTag)
168
+				{
169
+								$this->descriptionTag = $descriptionTag;
170
+				}
171
+
172
+				/**
173
+				 * @return string
174
+				 */
175
+				public function getTitle()
176
+				{
177
+								return $this->title;
178
+				}
179
+
180
+				/**
181
+				 * @param string $title
182
+				 */
183
+				public function setTitle($title)
184
+				{
185
+								$this->title = $title;
186
+				}
187
+
188
+				/**
189
+				 * @return string
190
+				 */
191
+				public function getContent()
192
+				{
193
+								return $this->content;
194
+				}
195
+
196
+				/**
197
+				 * @param string $content
198
+				 */
199
+				public function setContent($content)
200
+				{
201
+								$this->content = $content;
202
+				}
203
+
204
+				/**
205
+				 * @return int
206
+				 */
207
+				public function getActive()
208
+				{
209
+								return $this->active;
210
+				}
211
+
212
+				/**
213
+				 * @param int $active
214
+				 */
215
+				public function setActive($active)
216
+				{
217
+								$this->active = $active;
218
+				}
219
+
220
+				/**
221
+				 * @return int
222
+				 */
223
+				public function getOrder()
224
+				{
225
+								return $this->order;
226
+				}
227
+
228
+				/**
229
+				 * @param int $order
230
+				 */
231
+				public function setOrder($order)
232
+				{
233
+								$this->order = $order;
234
+				}
235
+
236
+				/**
237
+				 * @return int
238
+				 */
239
+				public function getDisplayed()
240
+				{
241
+								return $this->displayed;
242
+				}
243
+
244
+				/**
245
+				 * @param int $displayed
246
+				 */
247
+				public function setDisplayed($displayed)
248
+				{
249
+								$this->displayed = $displayed;
250
+				}
251
+
252
+				/**
253
+				 * @return \Page
254
+				 */
255
+				public function getParent()
256
+				{
257
+								return $this->parent;
258
+				}
259
+
260
+				/**
261
+				 * @param \Page $parent
262
+				 */
263
+				public function setParent($parent)
264
+				{
265
+								$this->parent = $parent;
266
+				}
267 267
 	
268 268
 	/**
269 269
 	 * @return \DateTime
Please login to merge, or discard this patch.
Braces   +23 added lines, -46 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@  discard block
 block discarded – undo
12 12
  * @ORM\Entity
13 13
  * @ORM\EntityListeners({"Ribs\RibsAdminBundle\EventListener\GuidAwareListener"})
14 14
  */
15
-class Page
16
-{
15
+class Page {
17 16
     /**
18 17
      * @var integer
19 18
      *
@@ -108,160 +107,140 @@  discard block
 block discarded – undo
108 107
     /**
109 108
      * @return int
110 109
      */
111
-    public function getId()
112
-    {
110
+    public function getId() {
113 111
         return $this->id;
114 112
     }
115 113
 
116 114
     /**
117 115
      * @param int $id
118 116
      */
119
-    public function setId($id)
120
-    {
117
+    public function setId($id) {
121 118
         $this->id = $id;
122 119
     }
123 120
 
124 121
     /**
125 122
      * @return string
126 123
      */
127
-    public function getGuid()
128
-    {
124
+    public function getGuid() {
129 125
         return $this->guid;
130 126
     }
131 127
 
132 128
     /**
133 129
      * @param string $guid
134 130
      */
135
-    public function setGuid($guid)
136
-    {
131
+    public function setGuid($guid) {
137 132
         $this->guid = $guid;
138 133
     }
139 134
 
140 135
     /**
141 136
      * @return string
142 137
      */
143
-    public function getTitleTag()
144
-    {
138
+    public function getTitleTag() {
145 139
         return $this->titleTag;
146 140
     }
147 141
 
148 142
     /**
149 143
      * @param string $titleTag
150 144
      */
151
-    public function setTitleTag($titleTag)
152
-    {
145
+    public function setTitleTag($titleTag) {
153 146
         $this->titleTag = $titleTag;
154 147
     }
155 148
 
156 149
     /**
157 150
      * @return string
158 151
      */
159
-    public function getDescriptionTag()
160
-    {
152
+    public function getDescriptionTag() {
161 153
         return $this->descriptionTag;
162 154
     }
163 155
 
164 156
     /**
165 157
      * @param string $descriptionTag
166 158
      */
167
-    public function setDescriptionTag($descriptionTag)
168
-    {
159
+    public function setDescriptionTag($descriptionTag) {
169 160
         $this->descriptionTag = $descriptionTag;
170 161
     }
171 162
 
172 163
     /**
173 164
      * @return string
174 165
      */
175
-    public function getTitle()
176
-    {
166
+    public function getTitle() {
177 167
         return $this->title;
178 168
     }
179 169
 
180 170
     /**
181 171
      * @param string $title
182 172
      */
183
-    public function setTitle($title)
184
-    {
173
+    public function setTitle($title) {
185 174
         $this->title = $title;
186 175
     }
187 176
 
188 177
     /**
189 178
      * @return string
190 179
      */
191
-    public function getContent()
192
-    {
180
+    public function getContent() {
193 181
         return $this->content;
194 182
     }
195 183
 
196 184
     /**
197 185
      * @param string $content
198 186
      */
199
-    public function setContent($content)
200
-    {
187
+    public function setContent($content) {
201 188
         $this->content = $content;
202 189
     }
203 190
 
204 191
     /**
205 192
      * @return int
206 193
      */
207
-    public function getActive()
208
-    {
194
+    public function getActive() {
209 195
         return $this->active;
210 196
     }
211 197
 
212 198
     /**
213 199
      * @param int $active
214 200
      */
215
-    public function setActive($active)
216
-    {
201
+    public function setActive($active) {
217 202
         $this->active = $active;
218 203
     }
219 204
 
220 205
     /**
221 206
      * @return int
222 207
      */
223
-    public function getOrder()
224
-    {
208
+    public function getOrder() {
225 209
         return $this->order;
226 210
     }
227 211
 
228 212
     /**
229 213
      * @param int $order
230 214
      */
231
-    public function setOrder($order)
232
-    {
215
+    public function setOrder($order) {
233 216
         $this->order = $order;
234 217
     }
235 218
 
236 219
     /**
237 220
      * @return int
238 221
      */
239
-    public function getDisplayed()
240
-    {
222
+    public function getDisplayed() {
241 223
         return $this->displayed;
242 224
     }
243 225
 
244 226
     /**
245 227
      * @param int $displayed
246 228
      */
247
-    public function setDisplayed($displayed)
248
-    {
229
+    public function setDisplayed($displayed) {
249 230
         $this->displayed = $displayed;
250 231
     }
251 232
 
252 233
     /**
253 234
      * @return \Page
254 235
      */
255
-    public function getParent()
256
-    {
236
+    public function getParent() {
257 237
         return $this->parent;
258 238
     }
259 239
 
260 240
     /**
261 241
      * @param \Page $parent
262 242
      */
263
-    public function setParent($parent)
264
-    {
243
+    public function setParent($parent) {
265 244
         $this->parent = $parent;
266 245
     }
267 246
 	
@@ -276,8 +255,7 @@  discard block
 block discarded – undo
276 255
 	/**
277 256
 	 * @param \DateTime $creationDate
278 257
 	 */
279
-	public function setCreationDate(\DateTime $creationDate)
280
-	{
258
+	public function setCreationDate(\DateTime $creationDate) {
281 259
 		$this->creationDate = $creationDate;
282 260
 	}
283 261
 	
@@ -292,8 +270,7 @@  discard block
 block discarded – undo
292 270
 	/**
293 271
 	 * @param \DateTime $updateDate
294 272
 	 */
295
-	public function setUpdateDate(\DateTime $updateDate)
296
-	{
273
+	public function setUpdateDate(\DateTime $updateDate) {
297 274
 		$this->updateDate = $updateDate;
298 275
 	}
299 276
 }
Please login to merge, or discard this patch.
Entity/UserLogs.php 2 patches
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -13,26 +13,26 @@  discard block
 block discarded – undo
13 13
  */
14 14
 class UserLogs
15 15
 {
16
-    /**
17
-     * @var integer
18
-     *
19
-     * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
20
-     * @ORM\Id
21
-     * @ORM\GeneratedValue(strategy="NONE")
22
-     */
23
-    private $id;
16
+				/**
17
+				 * @var integer
18
+				 *
19
+				 * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
20
+				 * @ORM\Id
21
+				 * @ORM\GeneratedValue(strategy="NONE")
22
+				 */
23
+				private $id;
24 24
 
25
-    /**
26
-     * @var \User
27
-     *
28
-     * @ORM\Id
29
-     * @ORM\GeneratedValue(strategy="NONE")
30
-     * @ORM\OneToOne(targetEntity="User")
31
-     * @ORM\JoinColumns({
32
-     *   @ORM\JoinColumn(name="user_id", referencedColumnName="id")
33
-     * })
34
-     */
35
-    private $user;
25
+				/**
26
+				 * @var \User
27
+				 *
28
+				 * @ORM\Id
29
+				 * @ORM\GeneratedValue(strategy="NONE")
30
+				 * @ORM\OneToOne(targetEntity="User")
31
+				 * @ORM\JoinColumns({
32
+				 *   @ORM\JoinColumn(name="user_id", referencedColumnName="id")
33
+				 * })
34
+				 */
35
+				private $user;
36 36
 	
37 37
 	/**
38 38
 	 * @var \DateTime
@@ -50,37 +50,37 @@  discard block
 block discarded – undo
50 50
 	 */
51 51
 	private $updateDate;
52 52
 
53
-    /**
54
-     * @return int
55
-     */
56
-    public function getId()
57
-    {
58
-        return $this->id;
59
-    }
53
+				/**
54
+				 * @return int
55
+				 */
56
+				public function getId()
57
+				{
58
+								return $this->id;
59
+				}
60 60
 
61
-    /**
62
-     * @param int $id
63
-     */
64
-    public function setId($id)
65
-    {
66
-        $this->id = $id;
67
-    }
61
+				/**
62
+				 * @param int $id
63
+				 */
64
+				public function setId($id)
65
+				{
66
+								$this->id = $id;
67
+				}
68 68
 
69
-    /**
70
-     * @return \User
71
-     */
72
-    public function getUser()
73
-    {
74
-        return $this->user;
75
-    }
69
+				/**
70
+				 * @return \User
71
+				 */
72
+				public function getUser()
73
+				{
74
+								return $this->user;
75
+				}
76 76
 
77
-    /**
78
-     * @param \User $user
79
-     */
80
-    public function setUser($user)
81
-    {
82
-        $this->user = $user;
83
-    }
77
+				/**
78
+				 * @param \User $user
79
+				 */
80
+				public function setUser($user)
81
+				{
82
+								$this->user = $user;
83
+				}
84 84
 	
85 85
 	/**
86 86
 	 * @return \DateTime
Please login to merge, or discard this patch.
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
  * @ORM\Table(name="user_logs", indexes={@ORM\Index(name="fk_user_infos_user_idx", columns={"user_id"})})
12 12
  * @ORM\Entity
13 13
  */
14
-class UserLogs
15
-{
14
+class UserLogs {
16 15
     /**
17 16
      * @var integer
18 17
      *
@@ -53,32 +52,28 @@  discard block
 block discarded – undo
53 52
     /**
54 53
      * @return int
55 54
      */
56
-    public function getId()
57
-    {
55
+    public function getId() {
58 56
         return $this->id;
59 57
     }
60 58
 
61 59
     /**
62 60
      * @param int $id
63 61
      */
64
-    public function setId($id)
65
-    {
62
+    public function setId($id) {
66 63
         $this->id = $id;
67 64
     }
68 65
 
69 66
     /**
70 67
      * @return \User
71 68
      */
72
-    public function getUser()
73
-    {
69
+    public function getUser() {
74 70
         return $this->user;
75 71
     }
76 72
 
77 73
     /**
78 74
      * @param \User $user
79 75
      */
80
-    public function setUser($user)
81
-    {
76
+    public function setUser($user) {
82 77
         $this->user = $user;
83 78
     }
84 79
 	
@@ -93,8 +88,7 @@  discard block
 block discarded – undo
93 88
 	/**
94 89
 	 * @param \DateTime $creationDate
95 90
 	 */
96
-	public function setCreationDate(\DateTime $creationDate)
97
-	{
91
+	public function setCreationDate(\DateTime $creationDate) {
98 92
 		$this->creationDate = $creationDate;
99 93
 	}
100 94
 	
@@ -109,8 +103,7 @@  discard block
 block discarded – undo
109 103
 	/**
110 104
 	 * @param \DateTime $updateDate
111 105
 	 */
112
-	public function setUpdateDate(\DateTime $updateDate)
113
-	{
106
+	public function setUpdateDate(\DateTime $updateDate) {
114 107
 		$this->updateDate = $updateDate;
115 108
 	}
116 109
 }
Please login to merge, or discard this patch.
Entity/User.php 2 patches
Indentation   +239 added lines, -239 removed lines patch added patch discarded remove patch
@@ -14,21 +14,21 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class User
16 16
 {
17
-    /**
18
-     * @var integer
19
-     *
20
-     * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
21
-     * @ORM\Id
22
-     * @ORM\GeneratedValue(strategy="IDENTITY")
23
-     */
24
-    private $id;
25
-
26
-    /**
27
-     * @var string
28
-     *
29
-     * @ORM\Column(name="guid", type="string", length=255, nullable=false)
30
-     */
31
-    private $guid;
17
+				/**
18
+				 * @var integer
19
+				 *
20
+				 * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true})
21
+				 * @ORM\Id
22
+				 * @ORM\GeneratedValue(strategy="IDENTITY")
23
+				 */
24
+				private $id;
25
+
26
+				/**
27
+				 * @var string
28
+				 *
29
+				 * @ORM\Column(name="guid", type="string", length=255, nullable=false)
30
+				 */
31
+				private $guid;
32 32
 	
33 33
 	/**
34 34
 	 * @var AccessRight
@@ -36,63 +36,63 @@  discard block
 block discarded – undo
36 36
 	 * @ORM\ManyToOne(targetEntity="Ribs\RibsAdminBundle\Entity\AccessRight", inversedBy="users")
37 37
 	 * @ORM\JoinColumn(name="id_access_right", referencedColumnName="id", nullable=true)
38 38
 	 */
39
-    private $accessRightList;
39
+				private $accessRightList;
40 40
 	
41 41
 	/**
42 42
 	 * @var boolean
43 43
 	 *
44 44
 	 * @ORM\Column(name="admin", type="boolean", nullable=false, options={"default": false})
45 45
 	 */
46
-    private $admin;
47
-
48
-    /**
49
-     * @var string
50
-     *
51
-     * @ORM\Column(name="firstname", type="string", length=255, nullable=false)
52
-     */
53
-    private $firstname;
54
-
55
-    /**
56
-     * @var string
57
-     *
58
-     * @ORM\Column(name="lastname", type="string", length=255, nullable=false)
59
-     */
60
-    private $lastname;
61
-
62
-    /**
63
-     * @var string
64
-     *
65
-     * @ORM\Column(name="adress", type="string", length=255, nullable=true)
66
-     */
67
-    private $adress;
68
-
69
-    /**
70
-     * @var string
71
-     *
72
-     * @ORM\Column(name="postal_code", type="string", length=100, nullable=true)
73
-     */
74
-    private $postalCode;
75
-
76
-    /**
77
-     * @var string
78
-     *
79
-     * @ORM\Column(name="country", type="string", length=100, nullable=true)
80
-     */
81
-    private $country;
82
-
83
-    /**
84
-     * @var string
85
-     *
86
-     * @ORM\Column(name="state", type="string", length=255, nullable=true)
87
-     */
88
-    private $state;
89
-
90
-    /**
91
-     * @var string
92
-     *
93
-     * @ORM\Column(name="access_rights", type="text", nullable=true)
94
-     */
95
-    private $accessRights;
46
+				private $admin;
47
+
48
+				/**
49
+				 * @var string
50
+				 *
51
+				 * @ORM\Column(name="firstname", type="string", length=255, nullable=false)
52
+				 */
53
+				private $firstname;
54
+
55
+				/**
56
+				 * @var string
57
+				 *
58
+				 * @ORM\Column(name="lastname", type="string", length=255, nullable=false)
59
+				 */
60
+				private $lastname;
61
+
62
+				/**
63
+				 * @var string
64
+				 *
65
+				 * @ORM\Column(name="adress", type="string", length=255, nullable=true)
66
+				 */
67
+				private $adress;
68
+
69
+				/**
70
+				 * @var string
71
+				 *
72
+				 * @ORM\Column(name="postal_code", type="string", length=100, nullable=true)
73
+				 */
74
+				private $postalCode;
75
+
76
+				/**
77
+				 * @var string
78
+				 *
79
+				 * @ORM\Column(name="country", type="string", length=100, nullable=true)
80
+				 */
81
+				private $country;
82
+
83
+				/**
84
+				 * @var string
85
+				 *
86
+				 * @ORM\Column(name="state", type="string", length=255, nullable=true)
87
+				 */
88
+				private $state;
89
+
90
+				/**
91
+				 * @var string
92
+				 *
93
+				 * @ORM\Column(name="access_rights", type="text", nullable=true)
94
+				 */
95
+				private $accessRights;
96 96
 	
97 97
 	/**
98 98
 	 * @var boolean
@@ -117,37 +117,37 @@  discard block
 block discarded – undo
117 117
 	 */
118 118
 	private $updateDate;
119 119
 
120
-    /**
121
-     * @return int
122
-     */
123
-    public function getId()
124
-    {
125
-        return $this->id;
126
-    }
127
-
128
-    /**
129
-     * @param int $id
130
-     */
131
-    public function setId($id)
132
-    {
133
-        $this->id = $id;
134
-    }
135
-
136
-    /**
137
-     * @return string
138
-     */
139
-    public function getGuid()
140
-    {
141
-        return $this->guid;
142
-    }
143
-
144
-    /**
145
-     * @param string $guid
146
-     */
147
-    public function setGuid($guid)
148
-    {
149
-        $this->guid = $guid;
150
-    }
120
+				/**
121
+				 * @return int
122
+				 */
123
+				public function getId()
124
+				{
125
+								return $this->id;
126
+				}
127
+
128
+				/**
129
+				 * @param int $id
130
+				 */
131
+				public function setId($id)
132
+				{
133
+								$this->id = $id;
134
+				}
135
+
136
+				/**
137
+				 * @return string
138
+				 */
139
+				public function getGuid()
140
+				{
141
+								return $this->guid;
142
+				}
143
+
144
+				/**
145
+				 * @param string $guid
146
+				 */
147
+				public function setGuid($guid)
148
+				{
149
+								$this->guid = $guid;
150
+				}
151 151
 	
152 152
 	/**
153 153
 	 * @return AccessRight
@@ -181,133 +181,133 @@  discard block
 block discarded – undo
181 181
 		$this->admin = $admin;
182 182
 	}
183 183
 
184
-    /**
185
-     * @return string
186
-     */
187
-    public function getFirstname()
188
-    {
189
-        return $this->firstname;
190
-    }
191
-
192
-    /**
193
-     * @param string $firstname
194
-     */
195
-    public function setFirstname($firstname)
196
-    {
197
-        $this->firstname = $firstname;
198
-    }
199
-
200
-    /**
201
-     * @return string
202
-     */
203
-    public function getLastname()
204
-    {
205
-        return $this->lastname;
206
-    }
207
-
208
-    /**
209
-     * @param string $lastname
210
-     */
211
-    public function setLastname($lastname)
212
-    {
213
-        $this->lastname = $lastname;
214
-    }
215
-
216
-    /**
217
-     * @return string
218
-     */
219
-    public function getAdress()
220
-    {
221
-        return $this->adress;
222
-    }
223
-
224
-    /**
225
-     * @param string $adress
226
-     */
227
-    public function setAdress($adress)
228
-    {
229
-        $this->adress = $adress;
230
-    }
231
-
232
-    /**
233
-     * @return string
234
-     */
235
-    public function getPostalCode()
236
-    {
237
-        return $this->postalCode;
238
-    }
239
-
240
-    /**
241
-     * @param string $postalCode
242
-     */
243
-    public function setPostalCode($postalCode)
244
-    {
245
-        $this->postalCode = $postalCode;
246
-    }
247
-
248
-    /**
249
-     * @return string
250
-     */
251
-    public function getCountry()
252
-    {
253
-        return $this->country;
254
-    }
255
-
256
-    /**
257
-     * @param string $country
258
-     */
259
-    public function setCountry($country)
260
-    {
261
-        $this->country = $country;
262
-    }
263
-
264
-    /**
265
-     * @return string
266
-     */
267
-    public function getState()
268
-    {
269
-        return $this->state;
270
-    }
271
-
272
-    /**
273
-     * @param string $state
274
-     */
275
-    public function setState($state)
276
-    {
277
-        $this->state = $state;
278
-    }
279
-
280
-    /**
281
-     * @return string
282
-     */
283
-    public function getAccessRights()
284
-    {
285
-        return $this->accessRights;
286
-    }
287
-
288
-    /**
289
-     * @param string $accessRights
290
-     */
291
-    public function setAccessRights($accessRights)
292
-    {
293
-        $this->accessRights = $accessRights;
294
-    }
295
-
296
-    /**
297
-     * @return \DateTime
298
-     */
299
-    public function getCreationDate()
300
-    {
301
-        return $this->creationDate;
302
-    }
303
-
304
-    /**
305
-     * @param \DateTime $creationDate
306
-     */
307
-    public function setCreationDate($creationDate)
308
-    {
309
-        $this->creationDate = $creationDate;
310
-    }
184
+				/**
185
+				 * @return string
186
+				 */
187
+				public function getFirstname()
188
+				{
189
+								return $this->firstname;
190
+				}
191
+
192
+				/**
193
+				 * @param string $firstname
194
+				 */
195
+				public function setFirstname($firstname)
196
+				{
197
+								$this->firstname = $firstname;
198
+				}
199
+
200
+				/**
201
+				 * @return string
202
+				 */
203
+				public function getLastname()
204
+				{
205
+								return $this->lastname;
206
+				}
207
+
208
+				/**
209
+				 * @param string $lastname
210
+				 */
211
+				public function setLastname($lastname)
212
+				{
213
+								$this->lastname = $lastname;
214
+				}
215
+
216
+				/**
217
+				 * @return string
218
+				 */
219
+				public function getAdress()
220
+				{
221
+								return $this->adress;
222
+				}
223
+
224
+				/**
225
+				 * @param string $adress
226
+				 */
227
+				public function setAdress($adress)
228
+				{
229
+								$this->adress = $adress;
230
+				}
231
+
232
+				/**
233
+				 * @return string
234
+				 */
235
+				public function getPostalCode()
236
+				{
237
+								return $this->postalCode;
238
+				}
239
+
240
+				/**
241
+				 * @param string $postalCode
242
+				 */
243
+				public function setPostalCode($postalCode)
244
+				{
245
+								$this->postalCode = $postalCode;
246
+				}
247
+
248
+				/**
249
+				 * @return string
250
+				 */
251
+				public function getCountry()
252
+				{
253
+								return $this->country;
254
+				}
255
+
256
+				/**
257
+				 * @param string $country
258
+				 */
259
+				public function setCountry($country)
260
+				{
261
+								$this->country = $country;
262
+				}
263
+
264
+				/**
265
+				 * @return string
266
+				 */
267
+				public function getState()
268
+				{
269
+								return $this->state;
270
+				}
271
+
272
+				/**
273
+				 * @param string $state
274
+				 */
275
+				public function setState($state)
276
+				{
277
+								$this->state = $state;
278
+				}
279
+
280
+				/**
281
+				 * @return string
282
+				 */
283
+				public function getAccessRights()
284
+				{
285
+								return $this->accessRights;
286
+				}
287
+
288
+				/**
289
+				 * @param string $accessRights
290
+				 */
291
+				public function setAccessRights($accessRights)
292
+				{
293
+								$this->accessRights = $accessRights;
294
+				}
295
+
296
+				/**
297
+				 * @return \DateTime
298
+				 */
299
+				public function getCreationDate()
300
+				{
301
+								return $this->creationDate;
302
+				}
303
+
304
+				/**
305
+				 * @param \DateTime $creationDate
306
+				 */
307
+				public function setCreationDate($creationDate)
308
+				{
309
+								$this->creationDate = $creationDate;
310
+				}
311 311
 	
312 312
 	/**
313 313
 	 * @return boolean
@@ -325,21 +325,21 @@  discard block
 block discarded – undo
325 325
 		$this->archived = $archived;
326 326
 	}
327 327
 
328
-    /**
329
-     * @return \DateTime
330
-     */
331
-    public function getUpdateDate()
332
-    {
333
-        return $this->updateDate;
334
-    }
335
-
336
-    /**
337
-     * @param \DateTime $updateDate
338
-     */
339
-    public function setUpdateDate($updateDate)
340
-    {
341
-        $this->updateDate = $updateDate;
342
-    }
328
+				/**
329
+				 * @return \DateTime
330
+				 */
331
+				public function getUpdateDate()
332
+				{
333
+								return $this->updateDate;
334
+				}
335
+
336
+				/**
337
+				 * @param \DateTime $updateDate
338
+				 */
339
+				public function setUpdateDate($updateDate)
340
+				{
341
+								$this->updateDate = $updateDate;
342
+				}
343 343
 
344 344
 
345 345
 }
Please login to merge, or discard this patch.
Braces   +27 added lines, -54 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@  discard block
 block discarded – undo
12 12
  * @ORM\Entity
13 13
  * @ORM\EntityListeners({"Ribs\RibsAdminBundle\EventListener\GuidAwareListener"})
14 14
  */
15
-class User
16
-{
15
+class User {
17 16
     /**
18 17
      * @var integer
19 18
      *
@@ -120,48 +119,42 @@  discard block
 block discarded – undo
120 119
     /**
121 120
      * @return int
122 121
      */
123
-    public function getId()
124
-    {
122
+    public function getId() {
125 123
         return $this->id;
126 124
     }
127 125
 
128 126
     /**
129 127
      * @param int $id
130 128
      */
131
-    public function setId($id)
132
-    {
129
+    public function setId($id) {
133 130
         $this->id = $id;
134 131
     }
135 132
 
136 133
     /**
137 134
      * @return string
138 135
      */
139
-    public function getGuid()
140
-    {
136
+    public function getGuid() {
141 137
         return $this->guid;
142 138
     }
143 139
 
144 140
     /**
145 141
      * @param string $guid
146 142
      */
147
-    public function setGuid($guid)
148
-    {
143
+    public function setGuid($guid) {
149 144
         $this->guid = $guid;
150 145
     }
151 146
 	
152 147
 	/**
153 148
 	 * @return AccessRight
154 149
 	 */
155
-	public function getAccessRightList()
156
-	{
150
+	public function getAccessRightList() {
157 151
 		return $this->accessRightList;
158 152
 	}
159 153
 	
160 154
 	/**
161 155
 	 * @param AccessRight $accessRightList
162 156
 	 */
163
-	public function setAccessRightList(AccessRight $accessRightList)
164
-	{
157
+	public function setAccessRightList(AccessRight $accessRightList) {
165 158
 		$this->accessRightList = $accessRightList;
166 159
 	}
167 160
 	
@@ -176,136 +169,119 @@  discard block
 block discarded – undo
176 169
 	/**
177 170
 	 * @param bool $admin
178 171
 	 */
179
-	public function setAdmin(bool $admin)
180
-	{
172
+	public function setAdmin(bool $admin) {
181 173
 		$this->admin = $admin;
182 174
 	}
183 175
 
184 176
     /**
185 177
      * @return string
186 178
      */
187
-    public function getFirstname()
188
-    {
179
+    public function getFirstname() {
189 180
         return $this->firstname;
190 181
     }
191 182
 
192 183
     /**
193 184
      * @param string $firstname
194 185
      */
195
-    public function setFirstname($firstname)
196
-    {
186
+    public function setFirstname($firstname) {
197 187
         $this->firstname = $firstname;
198 188
     }
199 189
 
200 190
     /**
201 191
      * @return string
202 192
      */
203
-    public function getLastname()
204
-    {
193
+    public function getLastname() {
205 194
         return $this->lastname;
206 195
     }
207 196
 
208 197
     /**
209 198
      * @param string $lastname
210 199
      */
211
-    public function setLastname($lastname)
212
-    {
200
+    public function setLastname($lastname) {
213 201
         $this->lastname = $lastname;
214 202
     }
215 203
 
216 204
     /**
217 205
      * @return string
218 206
      */
219
-    public function getAdress()
220
-    {
207
+    public function getAdress() {
221 208
         return $this->adress;
222 209
     }
223 210
 
224 211
     /**
225 212
      * @param string $adress
226 213
      */
227
-    public function setAdress($adress)
228
-    {
214
+    public function setAdress($adress) {
229 215
         $this->adress = $adress;
230 216
     }
231 217
 
232 218
     /**
233 219
      * @return string
234 220
      */
235
-    public function getPostalCode()
236
-    {
221
+    public function getPostalCode() {
237 222
         return $this->postalCode;
238 223
     }
239 224
 
240 225
     /**
241 226
      * @param string $postalCode
242 227
      */
243
-    public function setPostalCode($postalCode)
244
-    {
228
+    public function setPostalCode($postalCode) {
245 229
         $this->postalCode = $postalCode;
246 230
     }
247 231
 
248 232
     /**
249 233
      * @return string
250 234
      */
251
-    public function getCountry()
252
-    {
235
+    public function getCountry() {
253 236
         return $this->country;
254 237
     }
255 238
 
256 239
     /**
257 240
      * @param string $country
258 241
      */
259
-    public function setCountry($country)
260
-    {
242
+    public function setCountry($country) {
261 243
         $this->country = $country;
262 244
     }
263 245
 
264 246
     /**
265 247
      * @return string
266 248
      */
267
-    public function getState()
268
-    {
249
+    public function getState() {
269 250
         return $this->state;
270 251
     }
271 252
 
272 253
     /**
273 254
      * @param string $state
274 255
      */
275
-    public function setState($state)
276
-    {
256
+    public function setState($state) {
277 257
         $this->state = $state;
278 258
     }
279 259
 
280 260
     /**
281 261
      * @return string
282 262
      */
283
-    public function getAccessRights()
284
-    {
263
+    public function getAccessRights() {
285 264
         return $this->accessRights;
286 265
     }
287 266
 
288 267
     /**
289 268
      * @param string $accessRights
290 269
      */
291
-    public function setAccessRights($accessRights)
292
-    {
270
+    public function setAccessRights($accessRights) {
293 271
         $this->accessRights = $accessRights;
294 272
     }
295 273
 
296 274
     /**
297 275
      * @return \DateTime
298 276
      */
299
-    public function getCreationDate()
300
-    {
277
+    public function getCreationDate() {
301 278
         return $this->creationDate;
302 279
     }
303 280
 
304 281
     /**
305 282
      * @param \DateTime $creationDate
306 283
      */
307
-    public function setCreationDate($creationDate)
308
-    {
284
+    public function setCreationDate($creationDate) {
309 285
         $this->creationDate = $creationDate;
310 286
     }
311 287
 	
@@ -320,24 +296,21 @@  discard block
 block discarded – undo
320 296
 	/**
321 297
 	 * @param boolean $archived
322 298
 	 */
323
-	public function setArchived(bool $archived)
324
-	{
299
+	public function setArchived(bool $archived) {
325 300
 		$this->archived = $archived;
326 301
 	}
327 302
 
328 303
     /**
329 304
      * @return \DateTime
330 305
      */
331
-    public function getUpdateDate()
332
-    {
306
+    public function getUpdateDate() {
333 307
         return $this->updateDate;
334 308
     }
335 309
 
336 310
     /**
337 311
      * @param \DateTime $updateDate
338 312
      */
339
-    public function setUpdateDate($updateDate)
340
-    {
313
+    public function setUpdateDate($updateDate) {
341 314
         $this->updateDate = $updateDate;
342 315
     }
343 316
 
Please login to merge, or discard this patch.
RibsAdminBundle.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,6 +4,5 @@
 block discarded – undo
4 4
 
5 5
 use Symfony\Component\HttpKernel\Bundle\Bundle;
6 6
 
7
-class RibsAdminBundle extends Bundle
8
-{
7
+class RibsAdminBundle extends Bundle {
9 8
 }
Please login to merge, or discard this patch.
Entity/Account.php 1 patch
Braces   +18 added lines, -36 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@  discard block
 block discarded – undo
48 48
 	 */
49 49
 	private $user;
50 50
 	
51
-	public function __construct()
52
-	{
51
+	public function __construct() {
53 52
 		$this->isActive = true;
54 53
 		// may not be needed, see section on salt below
55 54
 		// $this->salt = md5(uniqid('', true));
@@ -58,96 +57,84 @@  discard block
 block discarded – undo
58 57
 	/**
59 58
 	 * @return mixed
60 59
 	 */
61
-	public function getId()
62
-	{
60
+	public function getId() {
63 61
 		return $this->id;
64 62
 	}
65 63
 	
66 64
 	/**
67 65
 	 * @param mixed $id
68 66
 	 */
69
-	public function setId($id)
70
-	{
67
+	public function setId($id) {
71 68
 		$this->id = $id;
72 69
 	}
73 70
 	
74 71
 	/**
75 72
 	 * @return mixed
76 73
 	 */
77
-	public function getEmail()
78
-	{
74
+	public function getEmail() {
79 75
 		return $this->email;
80 76
 	}
81 77
 	
82 78
 	/**
83 79
 	 * @param mixed $email
84 80
 	 */
85
-	public function setEmail($email)
86
-	{
81
+	public function setEmail($email) {
87 82
 		$this->email = $email;
88 83
 	}
89 84
 	
90 85
 	/**
91 86
 	 * @return mixed
92 87
 	 */
93
-	public function getPassword()
94
-	{
88
+	public function getPassword() {
95 89
 		return $this->password;
96 90
 	}
97 91
 	
98 92
 	/**
99 93
 	 * @param mixed $password
100 94
 	 */
101
-	public function setPassword($password)
102
-	{
95
+	public function setPassword($password) {
103 96
 		$this->password = $password;
104 97
 	}
105 98
 	
106 99
 	/**
107 100
 	 * @return mixed
108 101
 	 */
109
-	public function getUsername()
110
-	{
102
+	public function getUsername() {
111 103
 		return $this->username;
112 104
 	}
113 105
 	
114 106
 	/**
115 107
 	 * @param mixed $username
116 108
 	 */
117
-	public function setUsername($username)
118
-	{
109
+	public function setUsername($username) {
119 110
 		$this->username = $username;
120 111
 	}
121 112
 	
122 113
 	/**
123 114
 	 * @return mixed
124 115
 	 */
125
-	public function getisActive()
126
-	{
116
+	public function getisActive() {
127 117
 		return $this->isActive;
128 118
 	}
129 119
 	
130 120
 	/**
131 121
 	 * @param mixed $isActive
132 122
 	 */
133
-	public function setIsActive($isActive)
134
-	{
123
+	public function setIsActive($isActive) {
135 124
 		$this->isActive = $isActive;
136 125
 	}
137 126
 	
138 127
 	/**
139 128
 	 * @return User
140 129
 	 */
141
-	public function getUser()
142
-	{
130
+	public function getUser() {
143 131
 		return $this->user;
144 132
 	}
145 133
 	
146 134
 	/**
147 135
 	 * @param User $user
148 136
 	 */
149
-	public function setUser($user)
150
-	{
137
+	public function setUser($user) {
151 138
 		$this->user = $user;
152 139
 	}
153 140
 	
@@ -167,8 +154,7 @@  discard block
 block discarded – undo
167 154
 	 *
168 155
 	 * @return (Role|string)[] The user roles
169 156
 	 */
170
-	public function getRoles()
171
-	{
157
+	public function getRoles() {
172 158
 		return ['ROLE_ADMIN'];
173 159
 	}
174 160
 	
@@ -179,8 +165,7 @@  discard block
 block discarded – undo
179 165
 	 *
180 166
 	 * @return string|null The salt
181 167
 	 */
182
-	public function getSalt()
183
-	{
168
+	public function getSalt() {
184 169
 		// you *may* need a real salt depending on your encoder
185 170
 		// see section on salt below
186 171
 		return null;
@@ -192,8 +177,7 @@  discard block
 block discarded – undo
192 177
 	 * This is important if, at any given point, sensitive information like
193 178
 	 * the plain-text password is stored on this object.
194 179
 	 */
195
-	public function eraseCredentials()
196
-	{
180
+	public function eraseCredentials() {
197 181
 	}
198 182
 	
199 183
 	/**
@@ -202,8 +186,7 @@  discard block
 block discarded – undo
202 186
 	 * @return string the string representation of the object or null
203 187
 	 * @since 5.1.0
204 188
 	 */
205
-	public function serialize()
206
-	{
189
+	public function serialize() {
207 190
 		return serialize([
208 191
 			$this->id,
209 192
 			$this->username,
@@ -222,8 +205,7 @@  discard block
 block discarded – undo
222 205
 	 * @return void
223 206
 	 * @since 5.1.0
224 207
 	 */
225
-	public function unserialize($serialized)
226
-	{
208
+	public function unserialize($serialized) {
227 209
 		list (
228 210
 			$this->id,
229 211
 			$this->username,
Please login to merge, or discard this patch.
Entity/AccessRight.php 1 patch
Braces   +17 added lines, -34 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
  * @ORM\Entity(repositoryClass="Ribs\RibsAdminBundle\Repository\AccessRightRepository")
15 15
  * @ORM\EntityListeners({"Ribs\RibsAdminBundle\EventListener\GuidAwareListener"})
16 16
  */
17
-class AccessRight
18
-{
17
+class AccessRight {
19 18
 	/**
20 19
 	 * @var integer
21 20
 	 *
@@ -72,112 +71,98 @@  discard block
 block discarded – undo
72 71
 	/**
73 72
 	 * AccessRight constructor.
74 73
 	 */
75
-	public function __construct()
76
-	{
74
+	public function __construct() {
77 75
 		$this->users = new ArrayCollection();
78 76
 	}
79 77
 	
80 78
 	/**
81 79
 	 * @return int
82 80
 	 */
83
-	public function getId()
84
-	{
81
+	public function getId() {
85 82
 		return $this->id;
86 83
 	}
87 84
 	
88 85
 	/**
89 86
 	 * @param int $id
90 87
 	 */
91
-	public function setId(int $id)
92
-	{
88
+	public function setId(int $id) {
93 89
 		$this->id = $id;
94 90
 	}
95 91
 	
96 92
 	/**
97 93
 	 * @return string
98 94
 	 */
99
-	public function getGuid()
100
-	{
95
+	public function getGuid() {
101 96
 		return $this->guid;
102 97
 	}
103 98
 	
104 99
 	/**
105 100
 	 * @param string $guid
106 101
 	 */
107
-	public function setGuid(string $guid)
108
-	{
102
+	public function setGuid(string $guid) {
109 103
 		$this->guid = $guid;
110 104
 	}
111 105
 	
112 106
 	/**
113 107
 	 * @return string
114 108
 	 */
115
-	public function getName()
116
-	{
109
+	public function getName() {
117 110
 		return $this->name;
118 111
 	}
119 112
 	
120 113
 	/**
121 114
 	 * @param string $name
122 115
 	 */
123
-	public function setName(string $name)
124
-	{
116
+	public function setName(string $name) {
125 117
 		$this->name = $name;
126 118
 	}
127 119
 	
128 120
 	/**
129 121
 	 * @return string
130 122
 	 */
131
-	public function getAccessRights()
132
-	{
123
+	public function getAccessRights() {
133 124
 		return $this->accessRights;
134 125
 	}
135 126
 	
136 127
 	/**
137 128
 	 * @param string $accessRights
138 129
 	 */
139
-	public function setAccessRights(string $accessRights)
140
-	{
130
+	public function setAccessRights(string $accessRights) {
141 131
 		$this->accessRights = $accessRights;
142 132
 	}
143 133
 	
144 134
 	/**
145 135
 	 * @return \DateTime
146 136
 	 */
147
-	public function getCreationDate()
148
-	{
137
+	public function getCreationDate() {
149 138
 		return $this->creationDate;
150 139
 	}
151 140
 	
152 141
 	/**
153 142
 	 * @param \DateTime $creationDate
154 143
 	 */
155
-	public function setCreationDate(\DateTime $creationDate)
156
-	{
144
+	public function setCreationDate(\DateTime $creationDate) {
157 145
 		$this->creationDate = $creationDate;
158 146
 	}
159 147
 	
160 148
 	/**
161 149
 	 * @return \DateTime
162 150
 	 */
163
-	public function getUpdateDate()
164
-	{
151
+	public function getUpdateDate() {
165 152
 		return $this->updateDate;
166 153
 	}
167 154
 	
168 155
 	/**
169 156
 	 * @param \DateTime $updateDate
170 157
 	 */
171
-	public function setUpdateDate(\DateTime $updateDate)
172
-	{
158
+	public function setUpdateDate(\DateTime $updateDate) {
173 159
 		$this->updateDate = $updateDate;
174 160
 	}
175 161
 	
176 162
 	/**
177 163
 	 * @return ArrayCollection
178 164
 	 */
179
-	public function getUsers()
180
-	{
165
+	public function getUsers() {
181 166
 		return $this->users;
182 167
 	}
183 168
 	
@@ -185,8 +170,7 @@  discard block
 block discarded – undo
185 170
 	 * @param User $user
186 171
 	 * @return $this
187 172
 	 */
188
-	public function addUser(User $user)
189
-	{
173
+	public function addUser(User $user) {
190 174
 		$this->users[] = $user;
191 175
 		
192 176
 		return $this;
@@ -195,8 +179,7 @@  discard block
 block discarded – undo
195 179
 	/**
196 180
 	 * @param User $user
197 181
 	 */
198
-	public function removeUser(User $user)
199
-	{
182
+	public function removeUser(User $user) {
200 183
 		$this->users->removeElement($user);
201 184
 	}
202 185
 }
203 186
\ No newline at end of file
Please login to merge, or discard this patch.
Form/Registration.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,10 +11,8 @@  discard block
 block discarded – undo
11 11
 use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
12 12
 use Symfony\Component\Form\Extension\Core\Type\PasswordType;
13 13
 
14
-class Registration extends AbstractType
15
-{
16
-	public function buildForm(FormBuilderInterface $builder, array $options)
17
-	{
14
+class Registration extends AbstractType {
15
+	public function buildForm(FormBuilderInterface $builder, array $options) {
18 16
 		$builder
19 17
 			->add('email', EmailType::class)
20 18
 			->add('username', TextType::class)
@@ -25,8 +23,7 @@  discard block
 block discarded – undo
25 23
 			]);
26 24
 	}
27 25
 	
28
-	public function configureOptions(OptionsResolver $resolver)
29
-	{
26
+	public function configureOptions(OptionsResolver $resolver) {
30 27
 		$resolver->setDefaults([
31 28
 			'data_class' => Account::class,
32 29
 		]);
Please login to merge, or discard this patch.
Repository/AccountRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use Doctrine\ORM\EntityRepository;
6 6
 use Ribs\RibsAdminBundle\Entity\User;
7 7
 
8
-class AccountRepository extends EntityRepository
9
-{
8
+class AccountRepository extends EntityRepository {
10 9
 	/**
11 10
 	 * @param User $current_account
12 11
 	 * @param bool $archived
Please login to merge, or discard this patch.
Repository/AccessRightRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,14 +5,12 @@
 block discarded – undo
5 5
 use Doctrine\ORM\EntityRepository;
6 6
 use Ribs\RibsAdminBundle\Entity\AccessRight;
7 7
 
8
-class AccessRightRepository extends EntityRepository
9
-{
8
+class AccessRightRepository extends EntityRepository {
10 9
 	/**
11 10
 	 * @param AccessRight $access_right
12 11
 	 * function that delete all user which are in a list of rights
13 12
 	 */
14
-	public function deleteAllUsersList(AccessRight $access_right)
15
-	{
13
+	public function deleteAllUsersList(AccessRight $access_right) {
16 14
 		$query = $this->getEntityManager()->getConnection()->prepare("UPDATE user SET id_access_right = NULL WHERE
17 15
  			id_access_right = :id_access_right
18 16
  		");
Please login to merge, or discard this patch.