Passed
Push — develop ( d3c53a...e28085 )
by nguereza
14:20
created
src/Http/Action/BaseAction.php 3 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
      */
82 82
     protected array $filters = [];
83 83
 
84
-     /**
85
-     * The filters name maps
86
-     * @var array<string, string>
87
-     */
84
+        /**
85
+         * The filters name maps
86
+         * @var array<string, string>
87
+         */
88 88
     protected array $filterMaps = [];
89 89
 
90 90
     /**
@@ -154,27 +154,27 @@  discard block
 block discarded – undo
154 154
     protected Template $template;
155 155
 
156 156
     /**
157
-    * The RouteHelper instance
158
-    * @var RouteHelper
159
-    */
157
+     * The RouteHelper instance
158
+     * @var RouteHelper
159
+     */
160 160
     protected RouteHelper $routeHelper;
161 161
 
162 162
     /**
163
-    * The Flash instance
164
-    * @var Flash
165
-    */
163
+     * The Flash instance
164
+     * @var Flash
165
+     */
166 166
     protected Flash $flash;
167 167
 
168 168
     /**
169
-    * The Lang instance
170
-    * @var Lang
171
-    */
169
+     * The Lang instance
170
+     * @var Lang
171
+     */
172 172
     protected Lang $lang;
173 173
 
174 174
     /**
175
-    * The LoggerInterface instance
176
-    * @var LoggerInterface
177
-    */
175
+     * The LoggerInterface instance
176
+     * @var LoggerInterface
177
+     */
178 178
     protected LoggerInterface $logger;
179 179
 
180 180
     /**
@@ -558,10 +558,10 @@  discard block
 block discarded – undo
558 558
     {
559 559
     }
560 560
 
561
-   /**
562
-    * Ignore date filters if one of the given filters is present
563
-    * @return array<string> $filters
564
-    */
561
+    /**
562
+     * Ignore date filters if one of the given filters is present
563
+     * @return array<string> $filters
564
+     */
565 565
     protected function getIgnoreDateFilters(): array
566 566
     {
567 567
         return [];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@
 block discarded – undo
314 314
         $this->addContext('maintenance_state', app()->isInMaintenance());
315 315
 
316 316
         // Set nonce for Content Security Policy
317
-        $nonces  = $this->request->getAttribute(SecurityPolicy::class);
317
+        $nonces = $this->request->getAttribute(SecurityPolicy::class);
318 318
 
319 319
         if ($nonces !== null) {
320 320
             $this->addContext('style_nonce', $nonces['nonces']['style']);
Please login to merge, or discard this 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
  * @package Platine\Framework\Http\Action
62 62
  * @template T
63 63
  */
64
-abstract class BaseAction implements RequestHandlerInterface
65
-{
64
+abstract class BaseAction implements RequestHandlerInterface {
66 65
     /**
67 66
      * The field to use in query
68 67
      * @var string[]
@@ -199,8 +198,7 @@  discard block
 block discarded – undo
199 198
      * Create new instance
200 199
      * @param ActionHelper<T> $actionHelper
201 200
      */
202
-    public function __construct(ActionHelper $actionHelper)
203
-    {
201
+    public function __construct(ActionHelper $actionHelper) {
204 202
         $this->pagination = $actionHelper->getPagination();
205 203
         $this->sidebar = $actionHelper->getSidebar();
206 204
         $this->context = $actionHelper->getContext();
Please login to merge, or discard this patch.
src/Http/Action/BaseResourceAction.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
  * @class BaseResourceAction
42 42
  * @package Platine\Framework\Http\Action
43 43
  */
44
-class BaseResourceAction extends BaseAction
45
-{
44
+class BaseResourceAction extends BaseAction {
46 45
     /**
47 46
      * Return the response
48 47
      * @return ResponseInterface
Please login to merge, or discard this patch.
src/Http/Action/BaseConfigurationAction.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
 abstract class BaseConfigurationAction extends BaseAction
46 46
 {
47 47
     /**
48
-    * {@inheritdoc}
49
-    */
48
+     * {@inheritdoc}
49
+     */
50 50
     public function __construct(
51 51
         ActionHelper $actionHelper,
52 52
         protected AppDatabaseConfig $dbConfig,
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
     }
56 56
 
57 57
     /**
58
-    * {@inheritdoc}
59
-    */
58
+     * {@inheritdoc}
59
+     */
60 60
     public function respond(): ResponseInterface
61 61
     {
62 62
         $this->setView($this->getViewName());
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
 * @class BaseConfigurationAction
43 43
 * @package Platine\Framework\Http\Action
44 44
 */
45
-abstract class BaseConfigurationAction extends BaseAction
46
-{
45
+abstract class BaseConfigurationAction extends BaseAction {
47 46
     /**
48 47
     * {@inheritdoc}
49 48
     */
Please login to merge, or discard this patch.
src/Http/Middleware/CsrfTokenMiddleware.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
 
57 57
 
58 58
     /**
59
-    * {@inheritdoc}
60
-    */
59
+     * {@inheritdoc}
60
+     */
61 61
     public function process(
62 62
         ServerRequestInterface $request,
63 63
         RequestHandlerInterface $handler
@@ -71,14 +71,14 @@  discard block
 block discarded – undo
71 71
         return $handler->handle($newRequest);
72 72
     }
73 73
 
74
-   /**
74
+    /**
75 75
      * Whether we can process this request
76 76
      * @param ServerRequestInterface $request
77 77
      * @return bool
78 78
      */
79 79
     protected function shouldBeProcessed(ServerRequestInterface $request): bool
80 80
     {
81
-       //If no route has been match no need check for CSRF
81
+        //If no route has been match no need check for CSRF
82 82
         /** @var Route|null $route */
83 83
         $route = $request->getAttribute(Route::class);
84 84
         if ($route === null) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,14 +44,12 @@
 block discarded – undo
44 44
 * @class CsrfTokenMiddleware
45 45
 * @package Platine\Framework\Http\Middleware
46 46
 */
47
-class CsrfTokenMiddleware implements MiddlewareInterface
48
-{
47
+class CsrfTokenMiddleware implements MiddlewareInterface {
49 48
     /**
50 49
      * Create new instance
51 50
      * @param CsrfManager $csrfManager
52 51
      */
53
-    public function __construct(protected CsrfManager $csrfManager)
54
-    {
52
+    public function __construct(protected CsrfManager $csrfManager) {
55 53
     }
56 54
 
57 55
 
Please login to merge, or discard this patch.
src/Job/CleanTempFileTask.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
 class CleanTempFileTask implements TaskInterface
49 49
 {
50 50
     /**
51
-    * Create new instance
52
-    * @param Filesystem $filesystem
53
-    * @param Config $config
54
-    * @param LoggerInterface $logger
55
-    */
51
+     * Create new instance
52
+     * @param Filesystem $filesystem
53
+     * @param Config $config
54
+     * @param LoggerInterface $logger
55
+     */
56 56
     public function __construct(
57 57
         protected Filesystem $filesystem,
58 58
         protected Config $config,
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-    * {@inheritdoc}
65
-    */
64
+     * {@inheritdoc}
65
+     */
66 66
     public function run(): void
67 67
     {
68 68
         $tmpPath = $this->config->get('platform.data_temp_path');
@@ -89,16 +89,16 @@  discard block
 block discarded – undo
89 89
     }
90 90
 
91 91
         /**
92
-    * {@inheritdoc}
93
-    */
92
+         * {@inheritdoc}
93
+         */
94 94
     public function expression(): string
95 95
     {
96 96
         return '0 3 * * *';
97 97
     }
98 98
 
99 99
     /**
100
-    * {@inheritdoc}
101
-    */
100
+     * {@inheritdoc}
101
+     */
102 102
     public function name(): string
103 103
     {
104 104
         return 'clean temp files';
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
 * @class CleanTempFileTask
46 46
 * @package Platine\Framework\Job
47 47
 */
48
-class CleanTempFileTask implements TaskInterface
49
-{
48
+class CleanTempFileTask implements TaskInterface {
50 49
     /**
51 50
     * Create new instance
52 51
     * @param Filesystem $filesystem
Please login to merge, or discard this patch.
src/Service/Provider/MailerServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
  * @class MailerServiceProvider
43 43
  * @package Platine\Framework\Service\Provider
44 44
  */
45
-class MailerServiceProvider extends ServiceProvider
46
-{
45
+class MailerServiceProvider extends ServiceProvider {
47 46
     /**
48 47
      * {@inheritdoc}
49 48
      */
Please login to merge, or discard this patch.
src/Service/Provider/MailerMailServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
  * @class MailerMailServiceProvider
42 42
  * @package Platine\Framework\Service\Provider
43 43
  */
44
-class MailerMailServiceProvider extends ServiceProvider
45
-{
44
+class MailerMailServiceProvider extends ServiceProvider {
46 45
     /**
47 46
      * {@inheritdoc}
48 47
      */
Please login to merge, or discard this patch.
src/Service/Provider/MailerSMTPServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function register(): void
52 52
     {
53
-        $this->app->bind(TransportInterface::class, function (ContainerInterface $app) {
53
+        $this->app->bind(TransportInterface::class, function(ContainerInterface $app) {
54 54
             $smtp = new SMTP(
55 55
                 $app->get(Config::class)->get('mail.smtp.host', 'localhost'),
56 56
                 $app->get(Config::class)->get('mail.smtp.port', 25),
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
  * @class MailerSMTPServiceProvider
44 44
  * @package Platine\Framework\Service\Provider
45 45
  */
46
-class MailerSMTPServiceProvider extends ServiceProvider
47
-{
46
+class MailerSMTPServiceProvider extends ServiceProvider {
48 47
     /**
49 48
      * {@inheritdoc}
50 49
      */
Please login to merge, or discard this patch.
src/Enum/FilterFieldType.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
 * @class FilterFieldType
38 38
 * @package Platine\Framework\Enum
39 39
 */
40
-class FilterFieldType
41
-{
40
+class FilterFieldType {
42 41
     public const TEXT = 'T';
43 42
     public const SELECT = 'S';
44 43
     public const DATE = 'D';
Please login to merge, or discard this patch.