Passed
Push — develop ( d3c53a...e28085 )
by nguereza
14:20
created
src/Http/Action/BaseAction.php 1 patch
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.
src/Http/Action/BaseConfigurationAction.php 1 patch
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.
src/Http/Middleware/CsrfTokenMiddleware.php 1 patch
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.
src/Job/CleanTempFileTask.php 1 patch
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.
src/Form/Param/BaseParam.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -178,10 +178,10 @@
 block discarded – undo
178 178
     }
179 179
 
180 180
     /**
181
-    * Create instance using database configuration
182
-    * @param AppDatabaseConfig $cfg
183
-    * @return $this
184
-    */
181
+     * Create instance using database configuration
182
+     * @param AppDatabaseConfig $cfg
183
+     * @return $this
184
+     */
185 185
     public function fromConfig(AppDatabaseConfig $cfg): self
186 186
     {
187 187
         return $this;
Please login to merge, or discard this patch.
src/Auth/Authentication/SessionAuthentication.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -187,11 +187,11 @@
 block discarded – undo
187 187
         }
188 188
 
189 189
         $data = [
190
-          'id' => $user->id,
191
-          'username' => $user->username,
192
-          'lastname' => $user->lastname,
193
-          'firstname' => $user->firstname,
194
-          'permissions' => array_unique($permissions),
190
+            'id' => $user->id,
191
+            'username' => $user->username,
192
+            'lastname' => $user->lastname,
193
+            'firstname' => $user->firstname,
194
+            'permissions' => array_unique($permissions),
195 195
         ];
196 196
 
197 197
         $loginData = array_merge($data, $this->getUserData($user));
Please login to merge, or discard this patch.
src/Helper/Filter.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -410,10 +410,10 @@  discard block
 block discarded – undo
410 410
         array $extras = []
411 411
     ): self {
412 412
         $this->fields[$field] = [
413
-          'type' => $type,
414
-          'title' => $title,
415
-          'value' => $default,
416
-          'extras' => $extras,
413
+            'type' => $type,
414
+            'title' => $title,
415
+            'value' => $default,
416
+            'extras' => $extras,
417 417
         ];
418 418
 
419 419
         return $this;
@@ -438,11 +438,11 @@  discard block
 block discarded – undo
438 438
         array $extras = []
439 439
     ): self {
440 440
         $this->fields[$field] = [
441
-          'type' => $type,
442
-          'title' => $title,
443
-          'values' => $values,
444
-          'value' => $default,
445
-          'extras' => $extras,
441
+            'type' => $type,
442
+            'title' => $title,
443
+            'values' => $values,
444
+            'value' => $default,
445
+            'extras' => $extras,
446 446
         ];
447 447
 
448 448
         return $this;
Please login to merge, or discard this patch.
src/Helper/PrintHelper.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -170,10 +170,10 @@  discard block
 block discarded – undo
170 170
         if ($reportDebugPath !== null) {
171 171
             $reportDebugFile = sprintf('%s/%s.log', $reportDebugPath, $reportId);
172 172
             $this->filesystem->file($reportDebugFile)
173
-                             ->write(Json::encode(
174
-                                 $reportData,
175
-                                 JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES
176
-                             ));
173
+                                ->write(Json::encode(
174
+                                    $reportData,
175
+                                    JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES
176
+                                ));
177 177
         }
178 178
     }
179 179
 
@@ -218,9 +218,9 @@  discard block
 block discarded – undo
218 218
         $filepath = sprintf('%s/%s', $path, $filename);
219 219
 
220 220
         $this->pdf->setContent($html)
221
-                  ->setFilename($save ? $filepath : $filename)
222
-                  ->setFormat($format)
223
-                  ->generate();
221
+                    ->setFilename($save ? $filepath : $filename)
222
+                    ->setFormat($format)
223
+                    ->generate();
224 224
 
225 225
         if ($save) {
226 226
             $this->pdf->save();
Please login to merge, or discard this patch.
src/Helper/ActionHelper.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,9 +133,9 @@
 block discarded – undo
133 133
     }
134 134
 
135 135
         /**
136
-     *
137
-     * @return Pagination
138
-     */
136
+         *
137
+         * @return Pagination
138
+         */
139 139
     public function getPagination(): Pagination
140 140
     {
141 141
         return $this->pagination;
Please login to merge, or discard this patch.