Passed
Push — master ( 1a1018...574200 )
by Alex
04:13
created
Mezon/Gui/FieldsAlgorithms.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
227 227
      */
228 228
     public function fetchCustomField(array &$record, string $name): array
229 229
     {
230
-        if (! isset($this->fieldObjects[$name])) {
230
+        if (!isset($this->fieldObjects[$name])) {
231 231
             return $record;
232 232
         }
233 233
 
Please login to merge, or discard this patch.
Mezon/Gui/Field/Textarea.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function html(): string
26 26
     {
27
-        $content = '<textarea class="resizable_textarea '.$this->class.'"';
27
+        $content = '<textarea class="resizable_textarea ' . $this->class . '"';
28 28
         $content .= $this->required ? ' required="required"' : '';
29 29
         $content .= ' type="text" name="' . $this->getNamePrefix() . $this->name .
30 30
             ($this->batch ? '[{_creation_form_items_counter}]' : '') . '"';
Please login to merge, or discard this patch.
Mezon/Gui/Field/InputText.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function html(): string
26 26
     {
27
-        $content = '<input class="'.$this->class.'"';
27
+        $content = '<input class="' . $this->class . '"';
28 28
         $content .= $this->required ? ' required="required"' : '';
29 29
         $content .= ' type="text" name="' . $this->getNamePrefix() . $this->name .
30 30
             ($this->batch ? '[{_creation_form_items_counter}]' : '') . '"';
Please login to merge, or discard this patch.
Mezon/Gui/ListBuilder/Common.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@
 block discarded – undo
309 309
             'order' => 'ASC'
310 310
         ], isset($_GET['from']) ? $_GET['from'] : 0, isset($_GET['limit']) ? $_GET['limit'] : 100);
311 311
 
312
-        if (! empty($records)) {
312
+        if (!empty($records)) {
313 313
             $header = $this->listingHeader();
314 314
 
315 315
             $items = $this->listingItems($records);
Please login to merge, or discard this patch.
Mezon/Gui/ListBuilder/Simple.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     {
128 128
         $records = $this->getListBuilderAdapter()->all();
129 129
 
130
-        if (! empty($records)) {
130
+        if (!empty($records)) {
131 131
             $header = $this->simpleListingHeader();
132 132
 
133 133
             $items = $this->simpleListingItems($records);
Please login to merge, or discard this patch.
Mezon/Gui/Tests/Simple/ListBuilderNoItemsCreateButtonUnitTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         return [
19 19
             // #0, the first case - without button
20 20
             [
21
-                function (): object {
21
+                function(): object {
22 22
                     // setup
23 23
                     unset($_GET['create-button']);
24 24
                     return new ListBuilder\Simple($this->getFields(), new FakeAdapter([]));
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             ],
27 27
             // #1, the second case - without button, even if we try to display it
28 28
             [
29
-                function (): object {
29
+                function(): object {
30 30
                     // setup
31 31
                     $_GET['create-button'] = 1;
32 32
                     return new ListBuilder\Simple($this->getFields(), new FakeAdapter([]));
Please login to merge, or discard this patch.
Mezon/Gui/FormBuilder/Tests/FormBuilderUnitTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     private function formHeader(bool $flag)
40 40
     {
41
-        if (! $flag) {
41
+        if (!$flag) {
42 42
             $_GET['no-header'] = 1;
43 43
         } else {
44 44
             unset($_GET['no-header']);
Please login to merge, or discard this patch.
Mezon/Gui/Tests/Simple/ListBuilderUnitTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function commonBehaviourDataProvider(): array
125 125
     {
126
-        $assert = function (string $result): void {
126
+        $assert = function(string $result): void {
127 127
             // asserting method
128 128
             $this->assertStringNotContainsString('!1!', $result);
129 129
             $this->assertStringNotContainsString('!2!', $result);
@@ -132,14 +132,14 @@  discard block
 block discarded – undo
132 132
         return [
133 133
             // #0, listingForm, custom title and description
134 134
             [
135
-                function (): object {
135
+                function(): object {
136 136
                     // setup method
137 137
                     $listBuilder = new ListBuilder\Simple($this->getFields(), new FakeAdapter($this->getRecords()));
138 138
                     $listBuilder->listTitle = 'List Title';
139 139
                     $listBuilder->listDescription = 'List Description';
140 140
                     return $listBuilder;
141 141
                 },
142
-                function (string $result) use ($assert) {
142
+                function(string $result) use ($assert) {
143 143
                     $assert($result);
144 144
 
145 145
                     $this->assertStringContainsStrings([
@@ -153,11 +153,11 @@  discard block
 block discarded – undo
153 153
             ],
154 154
             // #1, listingForm, default title and description
155 155
             [
156
-                function (): object {
156
+                function(): object {
157 157
                     // setup method
158 158
                     return new ListBuilder\Simple($this->getFields(), new FakeAdapter($this->getRecords()));
159 159
                 },
160
-                function (string $result) use ($assert) {
160
+                function(string $result) use ($assert) {
161 161
                     $assert($result);
162 162
 
163 163
                     $this->assertStringContainsStrings(
Please login to merge, or discard this patch.
Mezon/Gui/Tests/Common/ListBuilderUnitTest.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function commonBehaviourDataProvider(): array
145 145
     {
146
-        $setup = function (): object {
146
+        $setup = function(): object {
147 147
             // setup method
148 148
             $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));
149 149
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             return $listBuilder;
153 153
         };
154 154
 
155
-        $assert = function (string $result): void {
155
+        $assert = function(string $result): void {
156 156
             // asserting method
157 157
             $this->assertStringNotContainsString('!1!', $result);
158 158
             $this->assertStringNotContainsString('!2!', $result);
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             // #0, listingForm
169 169
             [
170 170
                 $setup,
171
-                function (string $result): void {
171
+                function(string $result): void {
172 172
                     // asserting method
173 173
                     $this->assertStringContainsStrings([
174 174
                         '!1!',
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             ],
179 179
             // #1, listingForm, no custom buttons
180 180
             [
181
-                function (): object {
181
+                function(): object {
182 182
                     // setup method
183 183
                     return new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));
184 184
                 },
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             ],
187 187
             // #2, listingForm, no custom buttons
188 188
             [
189
-                function () use ($headerData): object {
189
+                function() use ($headerData): object {
190 190
                     // setup method
191 191
                     return new ListBuilder\Common($headerData, new FakeAdapter($this->getRecords()));
192 192
                 },
@@ -194,11 +194,11 @@  discard block
 block discarded – undo
194 194
             ],
195 195
             // #3, listingForm, no custom buttons
196 196
             [
197
-                function () use ($headerData): object {
197
+                function() use ($headerData): object {
198 198
                     // setup method
199 199
                     return new ListBuilder\Common($headerData, new FakeAdapter($this->getRecords()));
200 200
                 },
201
-                function (string $result) use ($assert) {
201
+                function(string $result) use ($assert) {
202 202
                     $assert($result);
203 203
 
204 204
                     $this->assertStringContainsStrings([
@@ -210,13 +210,13 @@  discard block
 block discarded – undo
210 210
             ],
211 211
             // #4, listingForm, default buttons
212 212
             [
213
-                function (): object {
213
+                function(): object {
214 214
                     // setup method
215 215
                     $_GET['update-button'] = 1;
216 216
                     $_GET['create-button'] = 1;
217 217
                     return new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));
218 218
                 },
219
-                function (string $result) use ($assert) {
219
+                function(string $result) use ($assert) {
220 220
                     $assert($result);
221 221
 
222 222
                     $this->assertStringContainsStrings([
@@ -228,14 +228,14 @@  discard block
 block discarded – undo
228 228
             ],
229 229
             // #5, listingForm, custom title and description
230 230
             [
231
-                function (): object {
231
+                function(): object {
232 232
                     // setup method
233 233
                     $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));
234 234
                     $listBuilder->listTitle = 'List Title';
235 235
                     $listBuilder->listDescription = 'List Description';
236 236
                     return $listBuilder;
237 237
                 },
238
-                function (string $result) use ($assert) {
238
+                function(string $result) use ($assert) {
239 239
                     $assert($result);
240 240
 
241 241
                     $this->assertStringContainsStrings([
@@ -249,11 +249,11 @@  discard block
 block discarded – undo
249 249
             ],
250 250
             // #6, listingForm, default title and description
251 251
             [
252
-                function (): object {
252
+                function(): object {
253 253
                     // setup method
254 254
                     return new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));
255 255
                 },
256
-                function (string $result) use ($assert) {
256
+                function(string $result) use ($assert) {
257 257
                     $assert($result);
258 258
 
259 259
                     $this->assertStringContainsStrings(
Please login to merge, or discard this patch.