@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | echo "<h1>Find By Id</h1>"; |
| 22 | 22 | $user = (new User())->findById(4); |
| 23 | -var_dump($user->data(), [$user->first_name, $user->full_name]); |
|
| 23 | +var_dump($user->data(), [ $user->first_name, $user->full_name ]); |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * FIND EXAMPLE |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | echo "<h1>Secure Params</h1>"; |
| 49 | -$params = http_build_query(["name" => "UpInside"]); |
|
| 49 | +$params = http_build_query([ "name" => "UpInside" ]); |
|
| 50 | 50 | $company = (new Company())->find("name = :name", $params); |
| 51 | 51 | var_dump($company->fetch()->data()); |
| 52 | 52 | |
@@ -8,6 +8,6 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function __construct() |
| 10 | 10 | { |
| 11 | - parent::__construct("companies", ["user_id", "name"]); |
|
| 11 | + parent::__construct("companies", [ "user_id", "name" ]); |
|
| 12 | 12 | } |
| 13 | 13 | } |
| 14 | 14 | \ No newline at end of file |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function __construct() |
| 17 | 17 | { |
| 18 | - parent::__construct("adresses", ["user_id"]); |
|
| 18 | + parent::__construct("adresses", [ "user_id" ]); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function getUser(): Address |