Skip to content

Commit

Permalink
rector fix - not related
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Dec 30, 2024
1 parent 5bdbf3c commit 40241fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions user_guide_src/source/database/queries/016.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php

$pQuery = $db->prepare(static function ($db) {
return $db->table('user')->insert([
'name' => 'x',
'email' => 'y',
'country' => 'US',
]);
});
$pQuery = $db->prepare(static fn ($db) => $db->table('user')->insert([
'name' => 'x',
'email' => 'y',
'country' => 'US',
]));
12 changes: 5 additions & 7 deletions user_guide_src/source/database/queries/019.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

// Prepare the Query
$pQuery = $db->prepare(static function ($db) {
return $db->table('user')->insert([
'name' => 'x',
'email' => 'y',
'country' => 'US',
]);
});
$pQuery = $db->prepare(static fn ($db) => $db->table('user')->insert([
'name' => 'x',
'email' => 'y',
'country' => 'US',
]));

// Collect the Data
$name = 'John Doe';
Expand Down

0 comments on commit 40241fc

Please sign in to comment.