Passed
Push — master ( 3c74da...895b59 )
by Anthony
01:52
created
Repository/FosUserRepository.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 FosUserRepository extends EntityRepository
9
-{
8
+class FosUserRepository extends EntityRepository {
10 9
 	/**
11 10
 	 * @param User $current_account
12 11
 	 * @return array function that return a list of all users that are not archived and different of current accout
Please login to merge, or discard this patch.
Entity/FosUser.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@  discard block
 block discarded – undo
9 9
  * @ORM\Entity(repositoryClass="Ribs\RibsAdminBundle\Repository\FosUserRepository")
10 10
  * @ORM\Table(name="fos_user")
11 11
  */
12
-class FosUser extends BaseUser
13
-{
12
+class FosUser extends BaseUser {
14 13
 	/**
15 14
 	 * @ORM\Id
16 15
 	 * @ORM\Column(type="integer")
@@ -29,8 +28,7 @@  discard block
 block discarded – undo
29 28
 	private $user;
30 29
 	
31 30
 	
32
-	public function __construct()
33
-	{
31
+	public function __construct() {
34 32
 		parent::__construct();
35 33
 		// your own logic
36 34
 	}
@@ -38,16 +36,14 @@  discard block
 block discarded – undo
38 36
 	/**
39 37
 	 * @return User
40 38
 	 */
41
-	public function getUser()
42
-	{
39
+	public function getUser() {
43 40
 		return $this->user;
44 41
 	}
45 42
 	
46 43
 	/**
47 44
 	 * @param User $user
48 45
 	 */
49
-	public function setUser($user)
50
-	{
46
+	public function setUser($user) {
51 47
 		$this->user = $user;
52 48
 	}
53 49
 	
Please login to merge, or discard this patch.
Controller/AccountsController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
 use Symfony\Component\HttpFoundation\Response;
8 8
 use Symfony\Component\Routing\Annotation\Route;
9 9
 
10
-class AccountsController extends Controller
11
-{
10
+class AccountsController extends Controller {
12 11
 	//-------------------------------------------- DISPLAY VIEWS ---------------------------------------------------------------//
13 12
 	/**
14 13
 	 * @Route("/accounts", name="ribsadmin_accounts")
Please login to merge, or discard this patch.
Entity/User.php 2 patches
Indentation   +252 added lines, -252 removed lines patch added patch discarded remove patch
@@ -12,70 +12,70 @@  discard block
 block discarded – undo
12 12
  */
13 13
 class User
14 14
 {
15
-    /**
16
-     * @var integer
17
-     *
18
-     * @ORM\Column(name="id", type="integer", nullable=false)
19
-     * @ORM\Id
20
-     * @ORM\GeneratedValue(strategy="IDENTITY")
21
-     */
22
-    private $id;
23
-
24
-    /**
25
-     * @var string
26
-     *
27
-     * @ORM\Column(name="guid", type="string", length=255, nullable=false)
28
-     */
29
-    private $guid;
30
-
31
-    /**
32
-     * @var string
33
-     *
34
-     * @ORM\Column(name="firstname", type="string", length=255, nullable=false)
35
-     */
36
-    private $firstname;
37
-
38
-    /**
39
-     * @var string
40
-     *
41
-     * @ORM\Column(name="lastname", type="string", length=255, nullable=false)
42
-     */
43
-    private $lastname;
44
-
45
-    /**
46
-     * @var string
47
-     *
48
-     * @ORM\Column(name="adress", type="string", length=255, nullable=true)
49
-     */
50
-    private $adress;
51
-
52
-    /**
53
-     * @var string
54
-     *
55
-     * @ORM\Column(name="postal_code", type="string", length=100, nullable=true)
56
-     */
57
-    private $postalCode;
58
-
59
-    /**
60
-     * @var string
61
-     *
62
-     * @ORM\Column(name="country", type="string", length=100, nullable=true)
63
-     */
64
-    private $country;
65
-
66
-    /**
67
-     * @var string
68
-     *
69
-     * @ORM\Column(name="state", type="string", length=255, nullable=true)
70
-     */
71
-    private $state;
72
-
73
-    /**
74
-     * @var string
75
-     *
76
-     * @ORM\Column(name="access_rights", type="text", nullable=true)
77
-     */
78
-    private $accessRights;
15
+				/**
16
+				 * @var integer
17
+				 *
18
+				 * @ORM\Column(name="id", type="integer", nullable=false)
19
+				 * @ORM\Id
20
+				 * @ORM\GeneratedValue(strategy="IDENTITY")
21
+				 */
22
+				private $id;
23
+
24
+				/**
25
+				 * @var string
26
+				 *
27
+				 * @ORM\Column(name="guid", type="string", length=255, nullable=false)
28
+				 */
29
+				private $guid;
30
+
31
+				/**
32
+				 * @var string
33
+				 *
34
+				 * @ORM\Column(name="firstname", type="string", length=255, nullable=false)
35
+				 */
36
+				private $firstname;
37
+
38
+				/**
39
+				 * @var string
40
+				 *
41
+				 * @ORM\Column(name="lastname", type="string", length=255, nullable=false)
42
+				 */
43
+				private $lastname;
44
+
45
+				/**
46
+				 * @var string
47
+				 *
48
+				 * @ORM\Column(name="adress", type="string", length=255, nullable=true)
49
+				 */
50
+				private $adress;
51
+
52
+				/**
53
+				 * @var string
54
+				 *
55
+				 * @ORM\Column(name="postal_code", type="string", length=100, nullable=true)
56
+				 */
57
+				private $postalCode;
58
+
59
+				/**
60
+				 * @var string
61
+				 *
62
+				 * @ORM\Column(name="country", type="string", length=100, nullable=true)
63
+				 */
64
+				private $country;
65
+
66
+				/**
67
+				 * @var string
68
+				 *
69
+				 * @ORM\Column(name="state", type="string", length=255, nullable=true)
70
+				 */
71
+				private $state;
72
+
73
+				/**
74
+				 * @var string
75
+				 *
76
+				 * @ORM\Column(name="access_rights", type="text", nullable=true)
77
+				 */
78
+				private $accessRights;
79 79
 	
80 80
 	/**
81 81
 	 * @var boolean
@@ -84,179 +84,179 @@  discard block
 block discarded – undo
84 84
 	 */
85 85
 	private $archived;
86 86
 
87
-    /**
88
-     * @var \DateTime
89
-     *
90
-     * @ORM\Column(name="creation_date", type="date", nullable=true)
91
-     */
92
-    private $creationDate;
93
-
94
-    /**
95
-     * @var \DateTime
96
-     *
97
-     * @ORM\Column(name="update_date", type="date", nullable=true)
98
-     */
99
-    private $updateDate;
100
-
101
-    /**
102
-     * @return int
103
-     */
104
-    public function getId()
105
-    {
106
-        return $this->id;
107
-    }
108
-
109
-    /**
110
-     * @param int $id
111
-     */
112
-    public function setId($id)
113
-    {
114
-        $this->id = $id;
115
-    }
116
-
117
-    /**
118
-     * @return string
119
-     */
120
-    public function getGuid()
121
-    {
122
-        return $this->guid;
123
-    }
124
-
125
-    /**
126
-     * @param string $guid
127
-     */
128
-    public function setGuid($guid)
129
-    {
130
-        $this->guid = $guid;
131
-    }
132
-
133
-    /**
134
-     * @return string
135
-     */
136
-    public function getFirstname()
137
-    {
138
-        return $this->firstname;
139
-    }
140
-
141
-    /**
142
-     * @param string $firstname
143
-     */
144
-    public function setFirstname($firstname)
145
-    {
146
-        $this->firstname = $firstname;
147
-    }
148
-
149
-    /**
150
-     * @return string
151
-     */
152
-    public function getLastname()
153
-    {
154
-        return $this->lastname;
155
-    }
156
-
157
-    /**
158
-     * @param string $lastname
159
-     */
160
-    public function setLastname($lastname)
161
-    {
162
-        $this->lastname = $lastname;
163
-    }
164
-
165
-    /**
166
-     * @return string
167
-     */
168
-    public function getAdress()
169
-    {
170
-        return $this->adress;
171
-    }
172
-
173
-    /**
174
-     * @param string $adress
175
-     */
176
-    public function setAdress($adress)
177
-    {
178
-        $this->adress = $adress;
179
-    }
180
-
181
-    /**
182
-     * @return string
183
-     */
184
-    public function getPostalCode()
185
-    {
186
-        return $this->postalCode;
187
-    }
188
-
189
-    /**
190
-     * @param string $postalCode
191
-     */
192
-    public function setPostalCode($postalCode)
193
-    {
194
-        $this->postalCode = $postalCode;
195
-    }
196
-
197
-    /**
198
-     * @return string
199
-     */
200
-    public function getCountry()
201
-    {
202
-        return $this->country;
203
-    }
204
-
205
-    /**
206
-     * @param string $country
207
-     */
208
-    public function setCountry($country)
209
-    {
210
-        $this->country = $country;
211
-    }
212
-
213
-    /**
214
-     * @return string
215
-     */
216
-    public function getState()
217
-    {
218
-        return $this->state;
219
-    }
220
-
221
-    /**
222
-     * @param string $state
223
-     */
224
-    public function setState($state)
225
-    {
226
-        $this->state = $state;
227
-    }
228
-
229
-    /**
230
-     * @return string
231
-     */
232
-    public function getAccessRights()
233
-    {
234
-        return $this->accessRights;
235
-    }
236
-
237
-    /**
238
-     * @param string $accessRights
239
-     */
240
-    public function setAccessRights($accessRights)
241
-    {
242
-        $this->accessRights = $accessRights;
243
-    }
244
-
245
-    /**
246
-     * @return \DateTime
247
-     */
248
-    public function getCreationDate()
249
-    {
250
-        return $this->creationDate;
251
-    }
252
-
253
-    /**
254
-     * @param \DateTime $creationDate
255
-     */
256
-    public function setCreationDate($creationDate)
257
-    {
258
-        $this->creationDate = $creationDate;
259
-    }
87
+				/**
88
+				 * @var \DateTime
89
+				 *
90
+				 * @ORM\Column(name="creation_date", type="date", nullable=true)
91
+				 */
92
+				private $creationDate;
93
+
94
+				/**
95
+				 * @var \DateTime
96
+				 *
97
+				 * @ORM\Column(name="update_date", type="date", nullable=true)
98
+				 */
99
+				private $updateDate;
100
+
101
+				/**
102
+				 * @return int
103
+				 */
104
+				public function getId()
105
+				{
106
+								return $this->id;
107
+				}
108
+
109
+				/**
110
+				 * @param int $id
111
+				 */
112
+				public function setId($id)
113
+				{
114
+								$this->id = $id;
115
+				}
116
+
117
+				/**
118
+				 * @return string
119
+				 */
120
+				public function getGuid()
121
+				{
122
+								return $this->guid;
123
+				}
124
+
125
+				/**
126
+				 * @param string $guid
127
+				 */
128
+				public function setGuid($guid)
129
+				{
130
+								$this->guid = $guid;
131
+				}
132
+
133
+				/**
134
+				 * @return string
135
+				 */
136
+				public function getFirstname()
137
+				{
138
+								return $this->firstname;
139
+				}
140
+
141
+				/**
142
+				 * @param string $firstname
143
+				 */
144
+				public function setFirstname($firstname)
145
+				{
146
+								$this->firstname = $firstname;
147
+				}
148
+
149
+				/**
150
+				 * @return string
151
+				 */
152
+				public function getLastname()
153
+				{
154
+								return $this->lastname;
155
+				}
156
+
157
+				/**
158
+				 * @param string $lastname
159
+				 */
160
+				public function setLastname($lastname)
161
+				{
162
+								$this->lastname = $lastname;
163
+				}
164
+
165
+				/**
166
+				 * @return string
167
+				 */
168
+				public function getAdress()
169
+				{
170
+								return $this->adress;
171
+				}
172
+
173
+				/**
174
+				 * @param string $adress
175
+				 */
176
+				public function setAdress($adress)
177
+				{
178
+								$this->adress = $adress;
179
+				}
180
+
181
+				/**
182
+				 * @return string
183
+				 */
184
+				public function getPostalCode()
185
+				{
186
+								return $this->postalCode;
187
+				}
188
+
189
+				/**
190
+				 * @param string $postalCode
191
+				 */
192
+				public function setPostalCode($postalCode)
193
+				{
194
+								$this->postalCode = $postalCode;
195
+				}
196
+
197
+				/**
198
+				 * @return string
199
+				 */
200
+				public function getCountry()
201
+				{
202
+								return $this->country;
203
+				}
204
+
205
+				/**
206
+				 * @param string $country
207
+				 */
208
+				public function setCountry($country)
209
+				{
210
+								$this->country = $country;
211
+				}
212
+
213
+				/**
214
+				 * @return string
215
+				 */
216
+				public function getState()
217
+				{
218
+								return $this->state;
219
+				}
220
+
221
+				/**
222
+				 * @param string $state
223
+				 */
224
+				public function setState($state)
225
+				{
226
+								$this->state = $state;
227
+				}
228
+
229
+				/**
230
+				 * @return string
231
+				 */
232
+				public function getAccessRights()
233
+				{
234
+								return $this->accessRights;
235
+				}
236
+
237
+				/**
238
+				 * @param string $accessRights
239
+				 */
240
+				public function setAccessRights($accessRights)
241
+				{
242
+								$this->accessRights = $accessRights;
243
+				}
244
+
245
+				/**
246
+				 * @return \DateTime
247
+				 */
248
+				public function getCreationDate()
249
+				{
250
+								return $this->creationDate;
251
+				}
252
+
253
+				/**
254
+				 * @param \DateTime $creationDate
255
+				 */
256
+				public function setCreationDate($creationDate)
257
+				{
258
+								$this->creationDate = $creationDate;
259
+				}
260 260
 	
261 261
 	/**
262 262
 	 * @return boolean
@@ -274,21 +274,21 @@  discard block
 block discarded – undo
274 274
 		$this->archived = $archived;
275 275
 	}
276 276
 
277
-    /**
278
-     * @return \DateTime
279
-     */
280
-    public function getUpdateDate()
281
-    {
282
-        return $this->updateDate;
283
-    }
284
-
285
-    /**
286
-     * @param \DateTime $updateDate
287
-     */
288
-    public function setUpdateDate($updateDate)
289
-    {
290
-        $this->updateDate = $updateDate;
291
-    }
277
+				/**
278
+				 * @return \DateTime
279
+				 */
280
+				public function getUpdateDate()
281
+				{
282
+								return $this->updateDate;
283
+				}
284
+
285
+				/**
286
+				 * @param \DateTime $updateDate
287
+				 */
288
+				public function setUpdateDate($updateDate)
289
+				{
290
+								$this->updateDate = $updateDate;
291
+				}
292 292
 
293 293
 
294 294
 }
Please login to merge, or discard this patch.
Braces   +24 added lines, -48 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
  * @ORM\Table(name="user")
11 11
  * @ORM\Entity
12 12
  */
13
-class User
14
-{
13
+class User {
15 14
     /**
16 15
      * @var integer
17 16
      *
@@ -101,160 +100,140 @@  discard block
 block discarded – undo
101 100
     /**
102 101
      * @return int
103 102
      */
104
-    public function getId()
105
-    {
103
+    public function getId() {
106 104
         return $this->id;
107 105
     }
108 106
 
109 107
     /**
110 108
      * @param int $id
111 109
      */
112
-    public function setId($id)
113
-    {
110
+    public function setId($id) {
114 111
         $this->id = $id;
115 112
     }
116 113
 
117 114
     /**
118 115
      * @return string
119 116
      */
120
-    public function getGuid()
121
-    {
117
+    public function getGuid() {
122 118
         return $this->guid;
123 119
     }
124 120
 
125 121
     /**
126 122
      * @param string $guid
127 123
      */
128
-    public function setGuid($guid)
129
-    {
124
+    public function setGuid($guid) {
130 125
         $this->guid = $guid;
131 126
     }
132 127
 
133 128
     /**
134 129
      * @return string
135 130
      */
136
-    public function getFirstname()
137
-    {
131
+    public function getFirstname() {
138 132
         return $this->firstname;
139 133
     }
140 134
 
141 135
     /**
142 136
      * @param string $firstname
143 137
      */
144
-    public function setFirstname($firstname)
145
-    {
138
+    public function setFirstname($firstname) {
146 139
         $this->firstname = $firstname;
147 140
     }
148 141
 
149 142
     /**
150 143
      * @return string
151 144
      */
152
-    public function getLastname()
153
-    {
145
+    public function getLastname() {
154 146
         return $this->lastname;
155 147
     }
156 148
 
157 149
     /**
158 150
      * @param string $lastname
159 151
      */
160
-    public function setLastname($lastname)
161
-    {
152
+    public function setLastname($lastname) {
162 153
         $this->lastname = $lastname;
163 154
     }
164 155
 
165 156
     /**
166 157
      * @return string
167 158
      */
168
-    public function getAdress()
169
-    {
159
+    public function getAdress() {
170 160
         return $this->adress;
171 161
     }
172 162
 
173 163
     /**
174 164
      * @param string $adress
175 165
      */
176
-    public function setAdress($adress)
177
-    {
166
+    public function setAdress($adress) {
178 167
         $this->adress = $adress;
179 168
     }
180 169
 
181 170
     /**
182 171
      * @return string
183 172
      */
184
-    public function getPostalCode()
185
-    {
173
+    public function getPostalCode() {
186 174
         return $this->postalCode;
187 175
     }
188 176
 
189 177
     /**
190 178
      * @param string $postalCode
191 179
      */
192
-    public function setPostalCode($postalCode)
193
-    {
180
+    public function setPostalCode($postalCode) {
194 181
         $this->postalCode = $postalCode;
195 182
     }
196 183
 
197 184
     /**
198 185
      * @return string
199 186
      */
200
-    public function getCountry()
201
-    {
187
+    public function getCountry() {
202 188
         return $this->country;
203 189
     }
204 190
 
205 191
     /**
206 192
      * @param string $country
207 193
      */
208
-    public function setCountry($country)
209
-    {
194
+    public function setCountry($country) {
210 195
         $this->country = $country;
211 196
     }
212 197
 
213 198
     /**
214 199
      * @return string
215 200
      */
216
-    public function getState()
217
-    {
201
+    public function getState() {
218 202
         return $this->state;
219 203
     }
220 204
 
221 205
     /**
222 206
      * @param string $state
223 207
      */
224
-    public function setState($state)
225
-    {
208
+    public function setState($state) {
226 209
         $this->state = $state;
227 210
     }
228 211
 
229 212
     /**
230 213
      * @return string
231 214
      */
232
-    public function getAccessRights()
233
-    {
215
+    public function getAccessRights() {
234 216
         return $this->accessRights;
235 217
     }
236 218
 
237 219
     /**
238 220
      * @param string $accessRights
239 221
      */
240
-    public function setAccessRights($accessRights)
241
-    {
222
+    public function setAccessRights($accessRights) {
242 223
         $this->accessRights = $accessRights;
243 224
     }
244 225
 
245 226
     /**
246 227
      * @return \DateTime
247 228
      */
248
-    public function getCreationDate()
249
-    {
229
+    public function getCreationDate() {
250 230
         return $this->creationDate;
251 231
     }
252 232
 
253 233
     /**
254 234
      * @param \DateTime $creationDate
255 235
      */
256
-    public function setCreationDate($creationDate)
257
-    {
236
+    public function setCreationDate($creationDate) {
258 237
         $this->creationDate = $creationDate;
259 238
     }
260 239
 	
@@ -269,24 +248,21 @@  discard block
 block discarded – undo
269 248
 	/**
270 249
 	 * @param boolean $archived
271 250
 	 */
272
-	public function setArchived(bool $archived)
273
-	{
251
+	public function setArchived(bool $archived) {
274 252
 		$this->archived = $archived;
275 253
 	}
276 254
 
277 255
     /**
278 256
      * @return \DateTime
279 257
      */
280
-    public function getUpdateDate()
281
-    {
258
+    public function getUpdateDate() {
282 259
         return $this->updateDate;
283 260
     }
284 261
 
285 262
     /**
286 263
      * @param \DateTime $updateDate
287 264
      */
288
-    public function setUpdateDate($updateDate)
289
-    {
265
+    public function setUpdateDate($updateDate) {
290 266
         $this->updateDate = $updateDate;
291 267
     }
292 268
 
Please login to merge, or discard this patch.
Service/Globals.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Ribs\RibsAdminBundle\Service;
4 4
 
5
-class Globals
6
-{
5
+class Globals {
7 6
 	/**
8 7
 	 * @return string
9 8
 	 */
Please login to merge, or discard this patch.