Test Failed
Push — develop ( afcd85...c5c862 )
by nguereza
03:41
created
src/Handler/Error/ErrorRenderInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
  * @class ErrorRenderInterface
55 55
  * @package Platine\Framework\Handler\Error
56 56
  */
57
-interface ErrorRenderInterface
58
-{
57
+interface ErrorRenderInterface {
59 58
 
60 59
     /**
61 60
      * Render the error
Please login to merge, or discard this patch.
src/Handler/Error/Renderer/HtmlErrorRenderer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @class HtmlErrorRenderer
56 56
  * @package Platine\Framework\Handler\Error\Renderer
57 57
  */
58
-class HtmlErrorRenderer extends AbstractErrorRenderer
59
-{
58
+class HtmlErrorRenderer extends AbstractErrorRenderer {
60 59
 
61 60
     /**
62 61
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Handler/Error/Renderer/JsonErrorRenderer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @class JsonErrorRenderer
56 56
  * @package Platine\Framework\Handler\Error\Renderer
57 57
  */
58
-class JsonErrorRenderer extends AbstractErrorRenderer
59
-{
58
+class JsonErrorRenderer extends AbstractErrorRenderer {
60 59
 
61 60
     /**
62 61
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Handler/Error/Renderer/AbstractErrorRenderer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @class AbstractErrorRenderer
56 56
  * @package Platine\Framework\Handler\Error\Renderer
57 57
  */
58
-abstract class AbstractErrorRenderer implements ErrorRenderInterface
59
-{
58
+abstract class AbstractErrorRenderer implements ErrorRenderInterface {
60 59
 
61 60
     /**
62 61
      * The default error title
Please login to merge, or discard this patch.
src/Handler/Error/ErrorHandlerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @class ErrorHandlerInterface
57 57
  * @package Platine\Framework\Handler\Error
58 58
  */
59
-interface ErrorHandlerInterface
60
-{
59
+interface ErrorHandlerInterface {
61 60
 
62 61
     /**
63 62
      * Handle error and generate the response
Please login to merge, or discard this patch.
src/Handler/Error/ErrorHandler.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * @class ErrorHandler
62 62
  * @package Platine\Framework\Handler\Error
63 63
  */
64
-class ErrorHandler implements ErrorHandlerInterface
65
-{
64
+class ErrorHandler implements ErrorHandlerInterface {
66 65
 
67 66
     /**
68 67
      * The content type
@@ -122,8 +121,7 @@  discard block
 block discarded – undo
122 121
      * Create new instance
123 122
      * @param LoggerInterface $logger
124 123
      */
125
-    public function __construct(LoggerInterface $logger)
126
-    {
124
+    public function __construct(LoggerInterface $logger) {
127 125
         $this->logger = $logger;
128 126
 
129 127
         //Add default renderer
Please login to merge, or discard this patch.
src/Demo/Action/User/DetailAction.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@
 block discarded – undo
63 63
  * @package Platine\Framework\Demo\Action\User
64 64
  * @template T
65 65
  */
66
-class DetailAction implements RequestHandlerInterface
67
-{
66
+class DetailAction implements RequestHandlerInterface {
68 67
 
69 68
     /**
70 69
      * The logger instance
Please login to merge, or discard this 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/User/ListAction.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
  * @package Platine\Framework\Demo\Action\User
60 60
  * @template T
61 61
  */
62
-class ListAction implements RequestHandlerInterface
63
-{
62
+class ListAction implements RequestHandlerInterface {
64 63
     /**
65 64
      * The user repository
66 65
      * @var UserRepository
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,16 +124,16 @@
 block discarded – undo
124 124
                                             ->count('id');
125 125
         $currentPage = (int)$param->get('page', 1);
126 126
         $this->pagination->setTotalItems($totalItems)
127
-                         ->setCurrentPage($currentPage);
127
+                            ->setCurrentPage($currentPage);
128 128
         $limit = $this->pagination->getItemsPerPage();
129 129
         $offset = $this->pagination->getOffset();
130 130
         ////////// END PAGINATION //////////////////
131 131
 
132 132
         $users = $this->userRepository
133
-                                      ->limit($offset, $limit)
134
-                                      ->orderBy(['lastname', 'firstname'])
135
-                                      ->filters($filters)
136
-                                      ->all();
133
+                                        ->limit($offset, $limit)
134
+                                        ->orderBy(['lastname', 'firstname'])
135
+                                        ->filters($filters)
136
+                                        ->all();
137 137
 
138 138
         $statusList = [
139 139
             'D' => 'Deactive',
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
         $totalItems = $this->userRepository->query()
123 123
                                             ->filter($filters)
124 124
                                             ->count('id');
125
-        $currentPage = (int)$param->get('page', 1);
125
+        $currentPage = (int) $param->get('page', 1);
126 126
         $this->pagination->setTotalItems($totalItems)
127 127
                          ->setCurrentPage($currentPage);
128 128
         $limit = $this->pagination->getItemsPerPage();
Please login to merge, or discard this patch.
src/Demo/Action/User/CreateAction.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@
 block discarded – undo
70 70
  * @package Platine\Framework\Demo\Action\User
71 71
  * @template T
72 72
  */
73
-class CreateAction implements RequestHandlerInterface
74
-{
73
+class CreateAction implements RequestHandlerInterface {
75 74
 
76 75
     /**
77 76
      * Logger instance
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -195,9 +195,9 @@  discard block
 block discarded – undo
195 195
                 $this->template,
196 196
                 'user/create',
197 197
                 [
198
-                   'param' => $formParam,
199
-                   'status' => $statusList,
200
-                   'roles' => $roles
198
+                    'param' => $formParam,
199
+                    'status' => $statusList,
200
+                    'roles' => $roles
201 201
                 ]
202 202
             );
203 203
         }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             'role' => $formParam->getRole(),
218 218
         ]);
219 219
 
220
-         //Handle roles
220
+            //Handle roles
221 221
         $rolesId = $param->post('roles', []);
222 222
         if (!empty($rolesId)) {
223 223
             $selectedRoles = $this->roleRepository->findAll(...$rolesId);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
                 $this->template,
235 235
                 'user/create',
236 236
                 [
237
-                   'param' => $formParam,
237
+                    'param' => $formParam,
238 238
                     'status' => $statusList,
239 239
                     'roles' => $roles
240 240
                 ]
Please login to merge, or discard this patch.