Passed
Push — master ( b3675b...2e08f5 )
by Anthony
06:03 queued 12s
created
Entity/UserLogs.php 1 patch
Indentation   +202 added lines, -202 removed lines patch added patch discarded remove patch
@@ -13,207 +13,207 @@
 block discarded – undo
13 13
  */
14 14
 class UserLogs
15 15
 {
16
-    use GuidTrait;
17
-    use CreatedUpdatedTrait;
18
-
19
-    /**
20
-     * @var integer
21
-     *
22
-     * @ORM\Column(name="id", type="integer", nullable=false)
23
-     * @ORM\Id
24
-     * @ORM\GeneratedValue(strategy="IDENTITY")
25
-     */
26
-    private $id;
27
-
28
-    /**
29
-     * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User")
30
-     * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
31
-     */
32
-    private $user;
33
-
34
-    /**
35
-     * @var string
36
-     *
37
-     * @ORM\Column(name="method", type="string", length=255, nullable=false)
38
-     */
39
-    private $method;
40
-
41
-    /**
42
-     * @var string
43
-     *
44
-     * @ORM\Column(name="route", type="string", length=255, nullable=false)
45
-     */
46
-    private $route;
47
-
48
-    /**
49
-     * @var string
50
-     *
51
-     * @ORM\Column(name="url", type="string", length=255, nullable=false)
52
-     */
53
-    private $url;
54
-
55
-    /**
56
-     * @var string
57
-     *
58
-     * @ORM\Column(name="full_url", type="string", length=255, nullable=false)
59
-     */
60
-    private $full_url;
61
-
62
-    /**
63
-     * @var string
64
-     *
65
-     * @ORM\Column(name="request_format", type="string", length=255, nullable=false)
66
-     */
67
-    private $request_format;
68
-
69
-    /**
70
-     * @var string
71
-     *
72
-     * @ORM\Column(name="equest_parameters", type="json", nullable=true)
73
-     */
74
-    private $request_parameters;
75
-
76
-    /**
77
-     * @return int
78
-     */
79
-    public function getId()
80
-    {
81
-        return $this->id;
82
-    }
83
-
84
-    /**
85
-     * @param int $id
86
-     */
87
-    public function setId($id)
88
-    {
89
-        $this->id = $id;
90
-    }
91
-
92
-    /**
93
-     * @return User
94
-     */
95
-    public function getUser(): User
96
-    {
97
-        return $this->user;
98
-    }
99
-
100
-    /**
101
-     * @param \User $user
102
-     */
103
-    public function setUser($user)
104
-    {
105
-        $this->user = $user;
106
-    }
107
-
108
-    /**
109
-     * @return string
110
-     */
111
-    public function getMethod(): string
112
-    {
113
-        return $this->method;
114
-    }
115
-
116
-    /**
117
-     * @param string $method
118
-     * @return UserLogs
119
-     */
120
-    public function setMethod(string $method): UserLogs
121
-    {
122
-        $this->method = $method;
123
-
124
-        return $this;
125
-    }
126
-
127
-    /**
128
-     * @return string
129
-     */
130
-    public function getRoute(): string
131
-    {
132
-        return $this->route;
133
-    }
134
-
135
-    /**
136
-     * @param string $route
137
-     * @return UserLogs
138
-     */
139
-    public function setRoute(string $route): UserLogs
140
-    {
141
-        $this->route = $route;
142
-
143
-        return $this;
144
-    }
145
-
146
-    /**
147
-     * @return string
148
-     */
149
-    public function getUrl(): string
150
-    {
151
-        return $this->url;
152
-    }
153
-
154
-    /**
155
-     * @param string $url
156
-     * @return UserLogs
157
-     */
158
-    public function setUrl(string $url): UserLogs
159
-    {
160
-        $this->url = $url;
161
-
162
-        return $this;
163
-    }
164
-
165
-    /**
166
-     * @return string
167
-     */
168
-    public function getFullUrl(): string
169
-    {
170
-        return $this->full_url;
171
-    }
172
-
173
-    /**
174
-     * @param string $full_url
175
-     * @return UserLogs
176
-     */
177
-    public function setFullUrl(string $full_url): UserLogs
178
-    {
179
-        $this->full_url = $full_url;
180
-
181
-        return $this;
182
-    }
183
-
184
-    /**
185
-     * @return string
186
-     */
187
-    public function getRequestFormat(): string
188
-    {
189
-        return $this->request_format;
190
-    }
191
-
192
-    /**
193
-     * @param string $request_format
194
-     * @return UserLogs
195
-     */
196
-    public function setRequestFormat(string $request_format): UserLogs
197
-    {
198
-        $this->request_format = $request_format;
199
-
200
-        return $this;
201
-    }
202
-
203
-    public function getRequestParameters()
204
-    {
205
-        return $this->request_parameters;
206
-    }
207
-
208
-    /**
209
-     * @param $request_parameters
210
-     * @return UserLogs
211
-     */
212
-    public function setRequestParameters($request_parameters): UserLogs
213
-    {
214
-        $this->request_parameters = $request_parameters;
215
-
216
-        return $this;
217
-    }
16
+				use GuidTrait;
17
+				use CreatedUpdatedTrait;
18
+
19
+				/**
20
+				 * @var integer
21
+				 *
22
+				 * @ORM\Column(name="id", type="integer", nullable=false)
23
+				 * @ORM\Id
24
+				 * @ORM\GeneratedValue(strategy="IDENTITY")
25
+				 */
26
+				private $id;
27
+
28
+				/**
29
+				 * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User")
30
+				 * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
31
+				 */
32
+				private $user;
33
+
34
+				/**
35
+				 * @var string
36
+				 *
37
+				 * @ORM\Column(name="method", type="string", length=255, nullable=false)
38
+				 */
39
+				private $method;
40
+
41
+				/**
42
+				 * @var string
43
+				 *
44
+				 * @ORM\Column(name="route", type="string", length=255, nullable=false)
45
+				 */
46
+				private $route;
47
+
48
+				/**
49
+				 * @var string
50
+				 *
51
+				 * @ORM\Column(name="url", type="string", length=255, nullable=false)
52
+				 */
53
+				private $url;
54
+
55
+				/**
56
+				 * @var string
57
+				 *
58
+				 * @ORM\Column(name="full_url", type="string", length=255, nullable=false)
59
+				 */
60
+				private $full_url;
61
+
62
+				/**
63
+				 * @var string
64
+				 *
65
+				 * @ORM\Column(name="request_format", type="string", length=255, nullable=false)
66
+				 */
67
+				private $request_format;
68
+
69
+				/**
70
+				 * @var string
71
+				 *
72
+				 * @ORM\Column(name="equest_parameters", type="json", nullable=true)
73
+				 */
74
+				private $request_parameters;
75
+
76
+				/**
77
+				 * @return int
78
+				 */
79
+				public function getId()
80
+				{
81
+								return $this->id;
82
+				}
83
+
84
+				/**
85
+				 * @param int $id
86
+				 */
87
+				public function setId($id)
88
+				{
89
+								$this->id = $id;
90
+				}
91
+
92
+				/**
93
+				 * @return User
94
+				 */
95
+				public function getUser(): User
96
+				{
97
+								return $this->user;
98
+				}
99
+
100
+				/**
101
+				 * @param \User $user
102
+				 */
103
+				public function setUser($user)
104
+				{
105
+								$this->user = $user;
106
+				}
107
+
108
+				/**
109
+				 * @return string
110
+				 */
111
+				public function getMethod(): string
112
+				{
113
+								return $this->method;
114
+				}
115
+
116
+				/**
117
+				 * @param string $method
118
+				 * @return UserLogs
119
+				 */
120
+				public function setMethod(string $method): UserLogs
121
+				{
122
+								$this->method = $method;
123
+
124
+								return $this;
125
+				}
126
+
127
+				/**
128
+				 * @return string
129
+				 */
130
+				public function getRoute(): string
131
+				{
132
+								return $this->route;
133
+				}
134
+
135
+				/**
136
+				 * @param string $route
137
+				 * @return UserLogs
138
+				 */
139
+				public function setRoute(string $route): UserLogs
140
+				{
141
+								$this->route = $route;
142
+
143
+								return $this;
144
+				}
145
+
146
+				/**
147
+				 * @return string
148
+				 */
149
+				public function getUrl(): string
150
+				{
151
+								return $this->url;
152
+				}
153
+
154
+				/**
155
+				 * @param string $url
156
+				 * @return UserLogs
157
+				 */
158
+				public function setUrl(string $url): UserLogs
159
+				{
160
+								$this->url = $url;
161
+
162
+								return $this;
163
+				}
164
+
165
+				/**
166
+				 * @return string
167
+				 */
168
+				public function getFullUrl(): string
169
+				{
170
+								return $this->full_url;
171
+				}
172
+
173
+				/**
174
+				 * @param string $full_url
175
+				 * @return UserLogs
176
+				 */
177
+				public function setFullUrl(string $full_url): UserLogs
178
+				{
179
+								$this->full_url = $full_url;
180
+
181
+								return $this;
182
+				}
183
+
184
+				/**
185
+				 * @return string
186
+				 */
187
+				public function getRequestFormat(): string
188
+				{
189
+								return $this->request_format;
190
+				}
191
+
192
+				/**
193
+				 * @param string $request_format
194
+				 * @return UserLogs
195
+				 */
196
+				public function setRequestFormat(string $request_format): UserLogs
197
+				{
198
+								$this->request_format = $request_format;
199
+
200
+								return $this;
201
+				}
202
+
203
+				public function getRequestParameters()
204
+				{
205
+								return $this->request_parameters;
206
+				}
207
+
208
+				/**
209
+				 * @param $request_parameters
210
+				 * @return UserLogs
211
+				 */
212
+				public function setRequestParameters($request_parameters): UserLogs
213
+				{
214
+								$this->request_parameters = $request_parameters;
215
+
216
+								return $this;
217
+				}
218 218
 }
219 219
 
Please login to merge, or discard this patch.
Controller/UserLogsController.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -10,44 +10,44 @@
 block discarded – undo
10 10
 
11 11
 class UserLogsController extends AbstractController
12 12
 {
13
-    /**
14
-     * list all user logs
15
-     * @Route("/user-logs/{page}", requirements={"page" = "\d+"}, name="ribsadmin_userlogs")
16
-     * @param ParameterBagInterface $parameterBag
17
-     * @param int $page
18
-     * @return Response
19
-     */
20
-    public function list(ParameterBagInterface $parameterBag, int $page = 1): Response
21
-    {
22
-        $em = $this->getDoctrine()->getManager();
23
-        $max_per_page = $parameterBag->get("ribs_admin.paginator_element_per_page");
13
+				/**
14
+				 * list all user logs
15
+				 * @Route("/user-logs/{page}", requirements={"page" = "\d+"}, name="ribsadmin_userlogs")
16
+				 * @param ParameterBagInterface $parameterBag
17
+				 * @param int $page
18
+				 * @return Response
19
+				 */
20
+				public function list(ParameterBagInterface $parameterBag, int $page = 1): Response
21
+				{
22
+								$em = $this->getDoctrine()->getManager();
23
+								$max_per_page = $parameterBag->get("ribs_admin.paginator_element_per_page");
24 24
 
25
-        $logs = $em->getRepository(UserLogs::class)->findAllPaginated($page, $max_per_page);
26
-        $pagination = array(
27
-            "page" => $page,
28
-            "page_number" => ceil(count($logs) / 20),
29
-            "route" => "ribsadmin_userlogs",
30
-            "parameters" => array()
31
-        );
25
+								$logs = $em->getRepository(UserLogs::class)->findAllPaginated($page, $max_per_page);
26
+								$pagination = array(
27
+												"page" => $page,
28
+												"page_number" => ceil(count($logs) / 20),
29
+												"route" => "ribsadmin_userlogs",
30
+												"parameters" => array()
31
+								);
32 32
 
33
-        return $this->render("@RibsAdmin/userlogs/list.html.twig", [
34
-            "logs" => $logs,
35
-            "pagination" => $pagination
36
-        ]);
37
-    }
33
+								return $this->render("@RibsAdmin/userlogs/list.html.twig", [
34
+												"logs" => $logs,
35
+												"pagination" => $pagination
36
+								]);
37
+				}
38 38
 
39
-    /**
40
-     * show detail of a user log
41
-     * @Route("/user-logs/show/{guid}", name="ribsadmin_userlogs_show")
42
-     * @param string $guid
43
-     * @return Response
44
-     */
45
-    public function show(string $guid): Response
46
-    {
47
-        $log = $this->getDoctrine()->getRepository(UserLogs::class)->findOneByGuid($guid);
39
+				/**
40
+				 * show detail of a user log
41
+				 * @Route("/user-logs/show/{guid}", name="ribsadmin_userlogs_show")
42
+				 * @param string $guid
43
+				 * @return Response
44
+				 */
45
+				public function show(string $guid): Response
46
+				{
47
+								$log = $this->getDoctrine()->getRepository(UserLogs::class)->findOneByGuid($guid);
48 48
 
49
-        return $this->render("@RibsAdmin/userlogs/show.html.twig", [
50
-            "log" => $log,
51
-        ]);
52
-    }
49
+								return $this->render("@RibsAdmin/userlogs/show.html.twig", [
50
+												"log" => $log,
51
+								]);
52
+				}
53 53
 }
Please login to merge, or discard this patch.
Form/Account.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@  discard block
 block discarded – undo
14 14
 
15 15
 class Account extends AbstractType
16 16
 {
17
-    /**
18
-     * @param FormBuilderInterface $builder
19
-     * @param array $options
20
-     */
17
+				/**
18
+				 * @param FormBuilderInterface $builder
19
+				 * @param array $options
20
+				 */
21 21
 	public function buildForm(FormBuilderInterface $builder, array $options)
22 22
 	{
23 23
 		$builder
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
 					'label' => 'Repeat Password',
43 43
 				],
44 44
 			])
45
-            ->add("profil_image", UploaderType::class, [
46
-                "label" => "Image du profil",
47
-                "uploader_name" => "test",
48
-                "mapped" => false,
49
-                "required" => false,
50
-            ])
45
+												->add("profil_image", UploaderType::class, [
46
+																"label" => "Image du profil",
47
+																"uploader_name" => "test",
48
+																"mapped" => false,
49
+																"required" => false,
50
+												])
51 51
 			->add('submit', SubmitType::class, [
52 52
 				'label' => 'Validate',
53 53
 				'attr' => []
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 		$builder->add('user', User::class);
57 57
 	}
58 58
 
59
-    /**
60
-     * @param OptionsResolver $resolver
61
-     */
59
+				/**
60
+				 * @param OptionsResolver $resolver
61
+				 */
62 62
 	public function configureOptions(OptionsResolver $resolver)
63 63
 	{
64 64
 		$resolver->setDefaults([
Please login to merge, or discard this patch.
Form/Type/UploaderType.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -9,41 +9,41 @@
 block discarded – undo
9 9
 
10 10
 class UploaderType extends AbstractType
11 11
 {
12
-    /**
13
-     * @param FormBuilderInterface $builder
14
-     * @param array $options
15
-     */
16
-    public function buildForm(FormBuilderInterface $builder, array $options)
17
-    {
18
-        $builder
19
-            ->add($options["uploader_name"], FileType::class, [
20
-                "label" => false,
21
-                "attr" => [
22
-                    "class" => "input-autocomplete",
23
-                    "data-ribs-fileuploader" => "",
24
-                    "data-url-param" => $options["data_url_param"],
25
-                    "data-retrieve-url-param" => $options["data_retrieve_url_param"],
26
-                    "data-delete-url-param" => $options["data_delete_url_param"],
27
-                    "accept" => $options["accept"],
28
-                    "multiple" => $options["multiple"],
29
-                    "autocomplete" => "off",
30
-                ],
31
-                "mapped" => false
32
-            ]);
33
-    }
12
+				/**
13
+				 * @param FormBuilderInterface $builder
14
+				 * @param array $options
15
+				 */
16
+				public function buildForm(FormBuilderInterface $builder, array $options)
17
+				{
18
+								$builder
19
+												->add($options["uploader_name"], FileType::class, [
20
+																"label" => false,
21
+																"attr" => [
22
+																				"class" => "input-autocomplete",
23
+																				"data-ribs-fileuploader" => "",
24
+																				"data-url-param" => $options["data_url_param"],
25
+																				"data-retrieve-url-param" => $options["data_retrieve_url_param"],
26
+																				"data-delete-url-param" => $options["data_delete_url_param"],
27
+																				"accept" => $options["accept"],
28
+																				"multiple" => $options["multiple"],
29
+																				"autocomplete" => "off",
30
+																],
31
+																"mapped" => false
32
+												]);
33
+				}
34 34
 
35
-    /**
36
-     * @param OptionsResolver $resolver
37
-     */
38
-    public function configureOptions(OptionsResolver $resolver)
39
-    {
40
-        $resolver->setDefaults([
41
-            "uploader_name" => null,
42
-            "data_url_param" => null,
43
-            "data_retrieve_url_param" => null,
44
-            "data_delete_url_param" => null,
45
-            "accept" => "*",
46
-            "multiple" => false,
47
-        ]);
48
-    }
35
+				/**
36
+				 * @param OptionsResolver $resolver
37
+				 */
38
+				public function configureOptions(OptionsResolver $resolver)
39
+				{
40
+								$resolver->setDefaults([
41
+												"uploader_name" => null,
42
+												"data_url_param" => null,
43
+												"data_retrieve_url_param" => null,
44
+												"data_delete_url_param" => null,
45
+												"accept" => "*",
46
+												"multiple" => false,
47
+								]);
48
+				}
49 49
 }
Please login to merge, or discard this patch.