Test Failed
Push — develop ( 41fb7d...afcd85 )
by nguereza
03:02 queued 18s
created
src/Demo/Action/User/DetailAction.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,8 +135,8 @@
 block discarded – undo
135 135
     {
136 136
         $id = (int) $request->getAttribute('id');
137 137
         $user = $this->userRepository
138
-                     ->with('roles')
139
-                     ->find($id);
138
+                        ->with('roles')
139
+                        ->find($id);
140 140
         if (!$user) {
141 141
             $this->session->setFlash('error', $this->lang->tr('Can not find the user'));
142 142
             $this->logger->warning('Can not find user with id {id}', ['id' => $id]);
Please login to merge, or discard this patch.
src/Demo/Action/Role/EditAction.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
         }
164 164
 
165 165
         $permissions = $this->permissionRepository
166
-                                                  ->orderBy('code')
167
-                                                  ->all();
166
+                                                    ->orderBy('code')
167
+                                                    ->all();
168 168
 
169 169
         $currentPermissionsId = [];
170 170
         foreach ($role->permissions as $entity) {
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
                 $this->template,
212 212
                 'role/edit',
213 213
                 [
214
-                   'param' => $formParam,
215
-                   'permissions' => $permissions
214
+                    'param' => $formParam,
215
+                    'permissions' => $permissions
216 216
                 ]
217 217
             );
218 218
         }
@@ -243,8 +243,8 @@  discard block
 block discarded – undo
243 243
                 $this->template,
244 244
                 'role/edit',
245 245
                 [
246
-                   'param' => $formParam,
247
-                   'permissions' => $permissions
246
+                    'param' => $formParam,
247
+                    'permissions' => $permissions
248 248
                 ]
249 249
             );
250 250
         }
Please login to merge, or discard this patch.
src/Demo/Action/Role/CreateAction.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
     public function handle(ServerRequestInterface $request): ResponseInterface
149 149
     {
150 150
         $permissions = $this->permissionRepository
151
-                                                  ->orderBy('code')
152
-                                                  ->all();
151
+                                                    ->orderBy('code')
152
+                                                    ->all();
153 153
 
154 154
         if ($request->getMethod() === 'GET') {
155 155
             return new TemplateResponse(
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
                 $this->template,
189 189
                 'role/create',
190 190
                 [
191
-                   'param' => $formParam,
192
-                   'permissions' => $permissions
191
+                    'param' => $formParam,
192
+                    'permissions' => $permissions
193 193
                 ]
194 194
             );
195 195
         }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             'description' => $formParam->getDescription()
201 201
         ]);
202 202
 
203
-         //Handle permissions
203
+            //Handle permissions
204 204
         $permissionsId = $param->post('permissions', []);
205 205
         if (!empty($permissionsId)) {
206 206
             $selectedPermissions = $this->permissionRepository->findAll(...$permissionsId);
@@ -217,8 +217,8 @@  discard block
 block discarded – undo
217 217
                 $this->template,
218 218
                 'role/create',
219 219
                 [
220
-                   'param' => $formParam,
221
-                   'permissions' => $permissions
220
+                    'param' => $formParam,
221
+                    'permissions' => $permissions
222 222
                 ]
223 223
             );
224 224
         }
Please login to merge, or discard this patch.
src/Demo/Action/Role/DetailAction.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,8 +135,8 @@
 block discarded – undo
135 135
     {
136 136
         $id = (int) $request->getAttribute('id');
137 137
         $role = $this->roleRepository
138
-                     ->with('permissions')
139
-                     ->find($id);
138
+                        ->with('permissions')
139
+                        ->find($id);
140 140
         if (!$role) {
141 141
             $this->session->setFlash('error', $this->lang->tr('Can not find the role'));
142 142
             $this->logger->warning('Can not find role with id {id}', ['id' => $id]);
Please login to merge, or discard this patch.
src/App/Application.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
  * @class Application
64 64
  * @package Platine\Framework\App
65 65
  */
66
-class Application extends Container
67
-{
66
+class Application extends Container {
68 67
 
69 68
     /**
70 69
      * The application version
@@ -129,8 +128,7 @@  discard block
 block discarded – undo
129 128
      * Create new instance
130 129
      * @param string $basePath
131 130
      */
132
-    public function __construct(string $basePath = '')
133
-    {
131
+    public function __construct(string $basePath = '') {
134 132
         parent::__construct();
135 133
         $this->basePath = $basePath;
136 134
         $this->loadCoreServiceProviders();
@@ -161,8 +159,7 @@  discard block
 block discarded – undo
161 159
      * @param string $env
162 160
      * @return $this
163 161
      */
164
-    public function setEnvironment(string $env)
165
-    {
162
+    public function setEnvironment(string $env) {
166 163
         $this->env = $env;
167 164
 
168 165
         return $this;
Please login to merge, or discard this patch.