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 1 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.