Passed
Push — master ( 3ea9d6...c45a1b )
by Anthony
01:51
created
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   +26 added lines, -52 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,32 +119,28 @@  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
 	
@@ -160,8 +155,7 @@  discard block
 block discarded – undo
160 155
 	/**
161 156
 	 * @param AccessRight $accessRightList
162 157
 	 */
163
-	public function setAccessRightList(AccessRight $accessRightList)
164
-	{
158
+	public function setAccessRightList(AccessRight $accessRightList) {
165 159
 		$this->accessRightList = $accessRightList;
166 160
 	}
167 161
 	
@@ -176,136 +170,119 @@  discard block
 block discarded – undo
176 170
 	/**
177 171
 	 * @param bool $admin
178 172
 	 */
179
-	public function setAdmin(bool $admin)
180
-	{
173
+	public function setAdmin(bool $admin) {
181 174
 		$this->admin = $admin;
182 175
 	}
183 176
 
184 177
     /**
185 178
      * @return string
186 179
      */
187
-    public function getFirstname()
188
-    {
180
+    public function getFirstname() {
189 181
         return $this->firstname;
190 182
     }
191 183
 
192 184
     /**
193 185
      * @param string $firstname
194 186
      */
195
-    public function setFirstname($firstname)
196
-    {
187
+    public function setFirstname($firstname) {
197 188
         $this->firstname = $firstname;
198 189
     }
199 190
 
200 191
     /**
201 192
      * @return string
202 193
      */
203
-    public function getLastname()
204
-    {
194
+    public function getLastname() {
205 195
         return $this->lastname;
206 196
     }
207 197
 
208 198
     /**
209 199
      * @param string $lastname
210 200
      */
211
-    public function setLastname($lastname)
212
-    {
201
+    public function setLastname($lastname) {
213 202
         $this->lastname = $lastname;
214 203
     }
215 204
 
216 205
     /**
217 206
      * @return string
218 207
      */
219
-    public function getAdress()
220
-    {
208
+    public function getAdress() {
221 209
         return $this->adress;
222 210
     }
223 211
 
224 212
     /**
225 213
      * @param string $adress
226 214
      */
227
-    public function setAdress($adress)
228
-    {
215
+    public function setAdress($adress) {
229 216
         $this->adress = $adress;
230 217
     }
231 218
 
232 219
     /**
233 220
      * @return string
234 221
      */
235
-    public function getPostalCode()
236
-    {
222
+    public function getPostalCode() {
237 223
         return $this->postalCode;
238 224
     }
239 225
 
240 226
     /**
241 227
      * @param string $postalCode
242 228
      */
243
-    public function setPostalCode($postalCode)
244
-    {
229
+    public function setPostalCode($postalCode) {
245 230
         $this->postalCode = $postalCode;
246 231
     }
247 232
 
248 233
     /**
249 234
      * @return string
250 235
      */
251
-    public function getCountry()
252
-    {
236
+    public function getCountry() {
253 237
         return $this->country;
254 238
     }
255 239
 
256 240
     /**
257 241
      * @param string $country
258 242
      */
259
-    public function setCountry($country)
260
-    {
243
+    public function setCountry($country) {
261 244
         $this->country = $country;
262 245
     }
263 246
 
264 247
     /**
265 248
      * @return string
266 249
      */
267
-    public function getState()
268
-    {
250
+    public function getState() {
269 251
         return $this->state;
270 252
     }
271 253
 
272 254
     /**
273 255
      * @param string $state
274 256
      */
275
-    public function setState($state)
276
-    {
257
+    public function setState($state) {
277 258
         $this->state = $state;
278 259
     }
279 260
 
280 261
     /**
281 262
      * @return string
282 263
      */
283
-    public function getAccessRights()
284
-    {
264
+    public function getAccessRights() {
285 265
         return $this->accessRights;
286 266
     }
287 267
 
288 268
     /**
289 269
      * @param string $accessRights
290 270
      */
291
-    public function setAccessRights($accessRights)
292
-    {
271
+    public function setAccessRights($accessRights) {
293 272
         $this->accessRights = $accessRights;
294 273
     }
295 274
 
296 275
     /**
297 276
      * @return \DateTime
298 277
      */
299
-    public function getCreationDate()
300
-    {
278
+    public function getCreationDate() {
301 279
         return $this->creationDate;
302 280
     }
303 281
 
304 282
     /**
305 283
      * @param \DateTime $creationDate
306 284
      */
307
-    public function setCreationDate($creationDate)
308
-    {
285
+    public function setCreationDate($creationDate) {
309 286
         $this->creationDate = $creationDate;
310 287
     }
311 288
 	
@@ -320,24 +297,21 @@  discard block
 block discarded – undo
320 297
 	/**
321 298
 	 * @param boolean $archived
322 299
 	 */
323
-	public function setArchived(bool $archived)
324
-	{
300
+	public function setArchived(bool $archived) {
325 301
 		$this->archived = $archived;
326 302
 	}
327 303
 
328 304
     /**
329 305
      * @return \DateTime
330 306
      */
331
-    public function getUpdateDate()
332
-    {
307
+    public function getUpdateDate() {
333 308
         return $this->updateDate;
334 309
     }
335 310
 
336 311
     /**
337 312
      * @param \DateTime $updateDate
338 313
      */
339
-    public function setUpdateDate($updateDate)
340
-    {
314
+    public function setUpdateDate($updateDate) {
341 315
         $this->updateDate = $updateDate;
342 316
     }
343 317
 
Please login to merge, or discard this patch.