Skip to content

Commit c0c3e02

Browse files
authored
Merge pull request codeigniter4#9352 from paulbalandan/cs-v366
style: bump to php-cs-fixer v3.66
2 parents 0bc67db + 65219d7 commit c0c3e02

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php
22

3-
$pQuery = $db->prepare(static function ($db) {
4-
return $db->table('user')->insert([
5-
'name' => 'x',
6-
'email' => 'y',
7-
'country' => 'US',
8-
]);
9-
});
3+
$pQuery = $db->prepare(static fn ($db) => $db->table('user')->insert([
4+
'name' => 'x',
5+
'email' => 'y',
6+
'country' => 'US',
7+
]));

user_guide_src/source/database/queries/019.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<?php
22

33
// Prepare the Query
4-
$pQuery = $db->prepare(static function ($db) {
5-
return $db->table('user')->insert([
6-
'name' => 'x',
7-
'email' => 'y',
8-
'country' => 'US',
9-
]);
10-
});
4+
$pQuery = $db->prepare(static fn ($db) => $db->table('user')->insert([
5+
'name' => 'x',
6+
'email' => 'y',
7+
'country' => 'US',
8+
]));
119

1210
// Collect the Data
1311
$name = 'John Doe';

0 commit comments

Comments
 (0)