@@ -227,7 +227,7 @@  | 
                                                    ||
| 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 | |
@@ -24,7 +24,7 @@  | 
                                                    ||
| 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}]' : '') . '"'; | 
                                                        
@@ -24,7 +24,7 @@  | 
                                                    ||
| 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}]' : '') . '"'; | 
                                                        
@@ -309,7 +309,7 @@  | 
                                                    ||
| 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);  | 
                                                        
@@ -127,7 +127,7 @@  | 
                                                    ||
| 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);  | 
                                                        
@@ -130,7 +130,7 @@ discard block  | 
                                                    ||
| 130 | 130 | */  | 
                                                        
| 131 | 131 | public function commonBehaviourDataProvider(): array  | 
                                                        
| 132 | 132 |      { | 
                                                        
| 133 | -        $setup = function (): object { | 
                                                        |
| 133 | +        $setup = function(): object { | 
                                                        |
| 134 | 134 | // setup method  | 
                                                        
| 135 | 135 | $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));  | 
                                                        
| 136 | 136 | |
@@ -139,7 +139,7 @@ discard block  | 
                                                    ||
| 139 | 139 | return $listBuilder;  | 
                                                        
| 140 | 140 | };  | 
                                                        
| 141 | 141 | |
| 142 | -        $assert = function ($result): void { | 
                                                        |
| 142 | +        $assert = function($result): void { | 
                                                        |
| 143 | 143 | // asserting method  | 
                                                        
| 144 | 144 |              $this->assertStringNotContainsString('!1!', $result); | 
                                                        
| 145 | 145 |              $this->assertStringNotContainsString('!2!', $result); | 
                                                        
@@ -155,7 +155,7 @@ discard block  | 
                                                    ||
| 155 | 155 | // #0, listingForm  | 
                                                        
| 156 | 156 | [  | 
                                                        
| 157 | 157 | $setup,  | 
                                                        
| 158 | -                function ($result): void { | 
                                                        |
| 158 | +                function($result): void { | 
                                                        |
| 159 | 159 | // asserting method  | 
                                                        
| 160 | 160 | $this->assertStringContainsStrings([  | 
                                                        
| 161 | 161 | '!1!',  | 
                                                        
@@ -165,7 +165,7 @@ discard block  | 
                                                    ||
| 165 | 165 | ],  | 
                                                        
| 166 | 166 | // #1, listingForm, no custom buttons  | 
                                                        
| 167 | 167 | [  | 
                                                        
| 168 | -                function (): object { | 
                                                        |
| 168 | +                function(): object { | 
                                                        |
| 169 | 169 | // setup method  | 
                                                        
| 170 | 170 | return new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));  | 
                                                        
| 171 | 171 | },  | 
                                                        
@@ -173,7 +173,7 @@ discard block  | 
                                                    ||
| 173 | 173 | ],  | 
                                                        
| 174 | 174 | // #2, listingForm, no custom buttons  | 
                                                        
| 175 | 175 | [  | 
                                                        
| 176 | -                function () use ($headerData): object { | 
                                                        |
| 176 | +                function() use ($headerData): object { | 
                                                        |
| 177 | 177 | // setup method  | 
                                                        
| 178 | 178 | return new ListBuilder\Common($headerData, new FakeAdapter($this->getRecords()));  | 
                                                        
| 179 | 179 | },  | 
                                                        
@@ -181,11 +181,11 @@ discard block  | 
                                                    ||
| 181 | 181 | ],  | 
                                                        
| 182 | 182 | // #3, listingForm, no custom buttons  | 
                                                        
| 183 | 183 | [  | 
                                                        
| 184 | -                function () use ($headerData): object { | 
                                                        |
| 184 | +                function() use ($headerData): object { | 
                                                        |
| 185 | 185 | // setup method  | 
                                                        
| 186 | 186 | return new ListBuilder\Common($headerData, new FakeAdapter($this->getRecords()));  | 
                                                        
| 187 | 187 | },  | 
                                                        
| 188 | -                function (string $result) use ($assert) { | 
                                                        |
| 188 | +                function(string $result) use ($assert) { | 
                                                        |
| 189 | 189 | $assert($result);  | 
                                                        
| 190 | 190 | |
| 191 | 191 | $this->assertStringContainsStrings([  | 
                                                        
@@ -197,13 +197,13 @@ discard block  | 
                                                    ||
| 197 | 197 | ],  | 
                                                        
| 198 | 198 | // #4, listingForm, default buttons  | 
                                                        
| 199 | 199 | [  | 
                                                        
| 200 | -                function (): object { | 
                                                        |
| 200 | +                function(): object { | 
                                                        |
| 201 | 201 | // setup method  | 
                                                        
| 202 | 202 | $_GET['update-button'] = 1;  | 
                                                        
| 203 | 203 | $_GET['create-button'] = 1;  | 
                                                        
| 204 | 204 | return new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));  | 
                                                        
| 205 | 205 | },  | 
                                                        
| 206 | -                function (string $result) use ($assert) { | 
                                                        |
| 206 | +                function(string $result) use ($assert) { | 
                                                        |
| 207 | 207 | $assert($result);  | 
                                                        
| 208 | 208 | |
| 209 | 209 | $this->assertStringContainsStrings([  | 
                                                        
@@ -215,14 +215,14 @@ discard block  | 
                                                    ||
| 215 | 215 | ],  | 
                                                        
| 216 | 216 | // #5, listingForm, custom title and description  | 
                                                        
| 217 | 217 | [  | 
                                                        
| 218 | -                function (): object { | 
                                                        |
| 218 | +                function(): object { | 
                                                        |
| 219 | 219 | // setup method  | 
                                                        
| 220 | 220 | $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));  | 
                                                        
| 221 | 221 | $listBuilder->listTitle = 'List Title';  | 
                                                        
| 222 | 222 | $listBuilder->listDescription = 'List Description';  | 
                                                        
| 223 | 223 | return $listBuilder;  | 
                                                        
| 224 | 224 | },  | 
                                                        
| 225 | -                function (string $result) use ($assert) { | 
                                                        |
| 225 | +                function(string $result) use ($assert) { | 
                                                        |
| 226 | 226 | $assert($result);  | 
                                                        
| 227 | 227 | |
| 228 | 228 | $this->assertStringContainsStrings([  | 
                                                        
@@ -236,11 +236,11 @@ discard block  | 
                                                    ||
| 236 | 236 | ],  | 
                                                        
| 237 | 237 | // #6, listingForm, default title and description  | 
                                                        
| 238 | 238 | [  | 
                                                        
| 239 | -                function (): object { | 
                                                        |
| 239 | +                function(): object { | 
                                                        |
| 240 | 240 | // setup method  | 
                                                        
| 241 | 241 | return new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));  | 
                                                        
| 242 | 242 | },  | 
                                                        
| 243 | -                function (string $result) use ($assert) { | 
                                                        |
| 243 | +                function(string $result) use ($assert) { | 
                                                        |
| 244 | 244 | $assert($result);  | 
                                                        
| 245 | 245 | |
| 246 | 246 | $this->assertStringContainsStrings(  | 
                                                        
@@ -18,7 +18,7 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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([]));  | 
                                                        
@@ -117,7 +117,7 @@ discard block  | 
                                                    ||
| 117 | 117 | */  | 
                                                        
| 118 | 118 | public function commonBehaviourDataProvider(): array  | 
                                                        
| 119 | 119 |      { | 
                                                        
| 120 | -        $assert = function ($result): void { | 
                                                        |
| 120 | +        $assert = function($result): void { | 
                                                        |
| 121 | 121 | // asserting method  | 
                                                        
| 122 | 122 |              $this->assertStringNotContainsString('!1!', $result); | 
                                                        
| 123 | 123 |              $this->assertStringNotContainsString('!2!', $result); | 
                                                        
@@ -126,14 +126,14 @@ discard block  | 
                                                    ||
| 126 | 126 | return [  | 
                                                        
| 127 | 127 | // #0, listingForm, custom title and description  | 
                                                        
| 128 | 128 | [  | 
                                                        
| 129 | -                function (): object { | 
                                                        |
| 129 | +                function(): object { | 
                                                        |
| 130 | 130 | // setup method  | 
                                                        
| 131 | 131 | $listBuilder = new ListBuilder\Simple($this->getFields(), new FakeAdapter($this->getRecords()));  | 
                                                        
| 132 | 132 | $listBuilder->listTitle = 'List Title';  | 
                                                        
| 133 | 133 | $listBuilder->listDescription = 'List Description';  | 
                                                        
| 134 | 134 | return $listBuilder;  | 
                                                        
| 135 | 135 | },  | 
                                                        
| 136 | -                function (string $result) use ($assert) { | 
                                                        |
| 136 | +                function(string $result) use ($assert) { | 
                                                        |
| 137 | 137 | $assert($result);  | 
                                                        
| 138 | 138 | |
| 139 | 139 | $this->assertStringContainsStrings([  | 
                                                        
@@ -147,11 +147,11 @@ discard block  | 
                                                    ||
| 147 | 147 | ],  | 
                                                        
| 148 | 148 | // #1, listingForm, default title and description  | 
                                                        
| 149 | 149 | [  | 
                                                        
| 150 | -                function (): object { | 
                                                        |
| 150 | +                function(): object { | 
                                                        |
| 151 | 151 | // setup method  | 
                                                        
| 152 | 152 | return new ListBuilder\Simple($this->getFields(), new FakeAdapter($this->getRecords()));  | 
                                                        
| 153 | 153 | },  | 
                                                        
| 154 | -                function (string $result) use ($assert) { | 
                                                        |
| 154 | +                function(string $result) use ($assert) { | 
                                                        |
| 155 | 155 | $assert($result);  | 
                                                        
| 156 | 156 | |
| 157 | 157 | $this->assertStringContainsStrings(  | 
                                                        
@@ -18,14 +18,14 @@ discard block  | 
                                                    ||
| 18 | 18 | return [  | 
                                                        
| 19 | 19 | // #0, the first case - simple header  | 
                                                        
| 20 | 20 | [  | 
                                                        
| 21 | -                function (): object { | 
                                                        |
| 21 | +                function(): object { | 
                                                        |
| 22 | 22 | // setup  | 
                                                        
| 23 | 23 | unset($_GET['create-button']);  | 
                                                        
| 24 | 24 | $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));  | 
                                                        
| 25 | 25 |                      $listBuilder->setCustomHeaderActions('custom header actions'); | 
                                                        
| 26 | 26 | return $listBuilder;  | 
                                                        
| 27 | 27 | },  | 
                                                        
| 28 | -                function ($result): void { | 
                                                        |
| 28 | +                function($result): void { | 
                                                        |
| 29 | 29 | // asserting method  | 
                                                        
| 30 | 30 |                      $this->assertStringContainsString('<form', $result); | 
                                                        
| 31 | 31 |                      $this->assertStringContainsString('</form>', $result); | 
                                                        
@@ -35,14 +35,14 @@ discard block  | 
                                                    ||
| 35 | 35 | ],  | 
                                                        
| 36 | 36 | // #1, the second case - full header  | 
                                                        
| 37 | 37 | [  | 
                                                        
| 38 | -                function (): object { | 
                                                        |
| 38 | +                function(): object { | 
                                                        |
| 39 | 39 | // setup  | 
                                                        
| 40 | 40 | $_GET['create-button'] = 1;  | 
                                                        
| 41 | 41 | $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter($this->getRecords()));  | 
                                                        
| 42 | 42 |                      $listBuilder->setCustomHeaderActions('custom header actions'); | 
                                                        
| 43 | 43 | return $listBuilder;  | 
                                                        
| 44 | 44 | },  | 
                                                        
| 45 | -                function ($result): void { | 
                                                        |
| 45 | +                function($result): void { | 
                                                        |
| 46 | 46 | // asserting method  | 
                                                        
| 47 | 47 |                      $this->assertStringContainsString('<form', $result); | 
                                                        
| 48 | 48 |                      $this->assertStringContainsString('</form>', $result); | 
                                                        
@@ -52,14 +52,14 @@ discard block  | 
                                                    ||
| 52 | 52 | ],  | 
                                                        
| 53 | 53 | // #2, the third case - simple header  | 
                                                        
| 54 | 54 | [  | 
                                                        
| 55 | -                function (): object { | 
                                                        |
| 55 | +                function(): object { | 
                                                        |
| 56 | 56 | // setup  | 
                                                        
| 57 | 57 | $_GET['create-button'] = 1;  | 
                                                        
| 58 | 58 | $listBuilder = new ListBuilder\Common($this->getFields(), new FakeAdapter([]));  | 
                                                        
| 59 | 59 |                      $listBuilder->setCustomHeaderActions('custom header actions'); | 
                                                        
| 60 | 60 | return $listBuilder;  | 
                                                        
| 61 | 61 | },  | 
                                                        
| 62 | -                function ($result): void { | 
                                                        |
| 62 | +                function($result): void { | 
                                                        |
| 63 | 63 | // asserting method  | 
                                                        
| 64 | 64 |                      $this->assertStringNotContainsString('<form', $result); | 
                                                        
| 65 | 65 |                      $this->assertStringNotContainsString('</form>', $result); |