Test Failed
Push — develop ( f013d6...41fb7d )
by nguereza
02:54
created
src/Demo/Action/User/BatchAction.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
     {
148 148
         $param = new RequestData($request);
149 149
 
150
-        $items =  $param->post('items', []);
150
+        $items = $param->post('items', []);
151 151
         if (empty($items)) {
152 152
             return new RedirectResponse(
153 153
                 $this->routeHelper->generateUrl('user_list')
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
  * @package Platine\Framework\Demo\Action\User
64 64
  * @template T
65 65
  */
66
-class BatchAction implements RequestHandlerInterface
67
-{
66
+class BatchAction implements RequestHandlerInterface {
68 67
 
69 68
     /**
70 69
      * Logger instance
@@ -175,8 +174,7 @@  discard block
 block discarded – undo
175 174
      * Handle delete action
176 175
      * @return mixed|void
177 176
      */
178
-    protected function deleteHandle()
179
-    {
177
+    protected function deleteHandle() {
180 178
         $items = $this->items;
181 179
         $this->logger->info('Deleted of users #{items}', ['items' => $items]);
182 180
 
@@ -192,8 +190,7 @@  discard block
 block discarded – undo
192 190
      * Handle disable action
193 191
      * @return mixed|void
194 192
      */
195
-    protected function disableHandle()
196
-    {
193
+    protected function disableHandle() {
197 194
         $items = $this->items;
198 195
         $this->logger->info('Disable of users #{items}', ['items' => $items]);
199 196
 
@@ -209,8 +206,7 @@  discard block
 block discarded – undo
209 206
      * Handle enable action
210 207
      * @return mixed|void
211 208
      */
212
-    protected function enableHandle()
213
-    {
209
+    protected function enableHandle() {
214 210
         $items = $this->items;
215 211
         $this->logger->info('Enable of users #{items}', ['items' => $items]);
216 212
 
Please login to merge, or discard this patch.
src/App/Application.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -212,10 +212,10 @@
 block discarded – undo
212 212
         return $this;
213 213
     }
214 214
 
215
-     /**
216
-     * Return the application root path
217
-     * @return string
218
-     */
215
+        /**
216
+         * Return the application root path
217
+         * @return string
218
+         */
219 219
     public function getAppPath(): string
220 220
     {
221 221
         return $this->appPath;
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@  discard block
 block discarded – undo
64 64
  * @package Platine\Framework\App
65 65
  * @template T
66 66
  */
67
-class Application extends Container
68
-{
67
+class Application extends Container {
69 68
 
70 69
     /**
71 70
      * The application version
@@ -130,8 +129,7 @@  discard block
 block discarded – undo
130 129
      * Create new instance
131 130
      * @param string $basePath
132 131
      */
133
-    public function __construct(string $basePath = '')
134
-    {
132
+    public function __construct(string $basePath = '') {
135 133
         parent::__construct();
136 134
         $this->basePath = $basePath;
137 135
         $this->loadCoreServiceProviders();
@@ -162,8 +160,7 @@  discard block
 block discarded – undo
162 160
      * @param string $env
163 161
      * @return $this
164 162
      */
165
-    public function setEnvironment(string $env)
166
-    {
163
+    public function setEnvironment(string $env) {
167 164
         $this->env = $env;
168 165
 
169 166
         return $this;
Please login to merge, or discard this patch.
src/Template/Tag/CurrentUrlTag.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 CurrentUrlTag
56 56
  * @package Platine\Framework\Template\Tag
57 57
  */
58
-class CurrentUrlTag extends AbstractTag
59
-{
58
+class CurrentUrlTag extends AbstractTag {
60 59
 
61 60
     /**
62 61
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Demo/Action/Role/CreateAction.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
     public function handle(ServerRequestInterface $request): ResponseInterface
139 139
     {
140 140
         $permissions = $this->permissionRepository
141
-                                                  ->orderBy('code')
142
-                                                  ->all();
141
+                                                    ->orderBy('code')
142
+                                                    ->all();
143 143
 
144 144
         if ($request->getMethod() === 'GET') {
145 145
             return new TemplateResponse(
@@ -178,8 +178,8 @@  discard block
 block discarded – undo
178 178
                 $this->template,
179 179
                 'role/create',
180 180
                 [
181
-                   'param' => $formParam,
182
-                   'permissions' => $permissions
181
+                    'param' => $formParam,
182
+                    'permissions' => $permissions
183 183
                 ]
184 184
             );
185 185
         }
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             'description' => $formParam->getDescription()
191 191
         ]);
192 192
 
193
-         //Handle permissions
193
+            //Handle permissions
194 194
         $permissionsId = $param->post('permissions', []);
195 195
         if (!empty($permissionsId)) {
196 196
             $selectedPermissions = $this->permissionRepository->findAll(...$permissionsId);
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                 $this->template,
208 208
                 'role/create',
209 209
                 [
210
-                   'param' => $formParam,
210
+                    'param' => $formParam,
211 211
                     'permissions' => $permissions
212 212
                 ]
213 213
             );
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@
 block discarded – undo
68 68
  * @package Platine\Framework\Demo\Action\Role
69 69
  * @template T
70 70
  */
71
-class CreateAction implements RequestHandlerInterface
72
-{
71
+class CreateAction implements RequestHandlerInterface {
73 72
 
74 73
     /**
75 74
      * Logger instance
Please login to merge, or discard this patch.
src/Demo/Action/Role/ListAction.php 1 patch
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\Role
60 60
  * @template T
61 61
  */
62
-class ListAction implements RequestHandlerInterface
63
-{
62
+class ListAction implements RequestHandlerInterface {
64 63
     /**
65 64
      * The role repository
66 65
      * @var RoleRepository
Please login to merge, or discard this patch.
src/Demo/Action/Role/DetailAction.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,8 +125,8 @@
 block discarded – undo
125 125
     {
126 126
         $id = (int) $request->getAttribute('id');
127 127
         $role = $this->roleRepository
128
-                     ->with('permissions')
129
-                     ->find($id);
128
+                        ->with('permissions')
129
+                        ->find($id);
130 130
         if (!$role) {
131 131
             $this->session->setFlash('error', 'Can not find the role');
132 132
             $this->logger->warning('Can not find role with id {id}', ['id' => $id]);
Please login to merge, or discard this patch.
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\Role
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.
src/Demo/Action/Role/BatchAction.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
     {
138 138
         $param = new RequestData($request);
139 139
 
140
-        $items =  $param->post('items', []);
140
+        $items = $param->post('items', []);
141 141
         if (empty($items)) {
142 142
             return new RedirectResponse(
143 143
                 $this->routeHelper->generateUrl('role_list')
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
  * @package Platine\Framework\Demo\Action\Role
64 64
  * @template T
65 65
  */
66
-class BatchAction implements RequestHandlerInterface
67
-{
66
+class BatchAction implements RequestHandlerInterface {
68 67
 
69 68
     /**
70 69
      * Logger instance
@@ -173,8 +172,7 @@  discard block
 block discarded – undo
173 172
      * Handle delete action
174 173
      * @return mixed|void
175 174
      */
176
-    protected function deleteHandle()
177
-    {
175
+    protected function deleteHandle() {
178 176
         $items = $this->items;
179 177
         $this->logger->info('Deleted of roles #{items}', ['items' => $items]);
180 178
 
Please login to merge, or discard this patch.
src/Demo/Action/Role/EditAction.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -109,10 +109,10 @@  discard block
 block discarded – undo
109 109
      */
110 110
     protected RouteHelper $routeHelper;
111 111
 
112
-     /**
113
-     * The password hash to be used
114
-     * @var HashInterface
115
-     */
112
+        /**
113
+         * The password hash to be used
114
+         * @var HashInterface
115
+         */
116 116
     protected HashInterface $hash;
117 117
 
118 118
     /**
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
         }
165 165
 
166 166
         $permissions = $this->permissionRepository
167
-                                                  ->orderBy('code')
168
-                                                  ->all();
167
+                                                    ->orderBy('code')
168
+                                                    ->all();
169 169
 
170 170
         $currentPermissionsId = [];
171 171
         foreach ($role->permissions as $entity) {
@@ -212,8 +212,8 @@  discard block
 block discarded – undo
212 212
                 $this->template,
213 213
                 'role/edit',
214 214
                 [
215
-                   'param' => $formParam,
216
-                   'permissions' => $permissions
215
+                    'param' => $formParam,
216
+                    'permissions' => $permissions
217 217
                 ]
218 218
             );
219 219
         }
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
                 $this->template,
247 247
                 'role/edit',
248 248
                 [
249
-                   'param' => $formParam,
250
-                   'permissions' => $permissions
249
+                    'param' => $formParam,
250
+                    'permissions' => $permissions
251 251
                 ]
252 252
             );
253 253
         }
Please login to merge, or discard this patch.
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\Role
71 71
  * @template T
72 72
  */
73
-class EditAction implements RequestHandlerInterface
74
-{
73
+class EditAction implements RequestHandlerInterface {
75 74
 
76 75
     /**
77 76
      * The logger instance
Please login to merge, or discard this patch.
src/Demo/Form/Param/RoleParam.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 RoleParam
55 55
  * @package Platine\Framework\Demo\Form\Param
56 56
  */
57
-class RoleParam extends BaseParam
58
-{
57
+class RoleParam extends BaseParam {
59 58
     /**
60 59
      * The name
61 60
      * @var string
Please login to merge, or discard this patch.