Passed
Push — master ( fcde6a...31906f )
by Robson
01:43
created
example/find_example.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
example/Models/Company.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
example/Models/Address.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.