Completed
Push — master ( d27b6b...9c7848 )
by Dmitry
14s
created
src/Api.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@  discard block
 block discarded – undo
9 9
 
10 10
 trait Api
11 11
 {
12
-    abstract public function getSpace(object|int|string $id): Space;
12
+    abstract public function getSpace(object | int | string $id): Space;
13 13
 
14 14
     public function create(string $space, array $data)
15 15
     {
16 16
         return $this->getSpace($space)->create($data);
17 17
     }
18 18
 
19
-    public function delete(object|string $space, array|object|null $instance = null)
19
+    public function delete(object | string $space, array | object | null $instance = null)
20 20
     {
21 21
         if (is_object($space)) {
22 22
             $instance = $space;
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
         return $this->getSpace($space)->delete($instance);
25 25
     }
26 26
 
27
-    public function find(string $space, Criteria|array|null $query = null): array
27
+    public function find(string $space, Criteria | array | null $query = null): array
28 28
     {
29 29
         return $this->getSpace($space)->find($query);
30 30
     }
31 31
 
32
-    public function findOne(string $space, Criteria|array|null $query = null)
32
+    public function findOne(string $space, Criteria | array | null $query = null)
33 33
     {
34 34
         return $this->getSpace($space)->findOne($query);
35 35
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         return $this->getSpace($space)->findOrCreate($query, $params);
40 40
     }
41 41
 
42
-    public function findOrFail(string $space, Criteria|array|null $query = null)
42
+    public function findOrFail(string $space, Criteria | array | null $query = null)
43 43
     {
44 44
         return $this->getSpace($space)->findOrFail($query);
45 45
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         return $this->getSpace($space)->findOne(compact('id'));
54 54
     }
55 55
 
56
-    public function update(string|object $space, object|array $instance, Operations|array|null $operations = null)
56
+    public function update(string | object $space, object | array $instance, Operations | array | null $operations = null)
57 57
     {
58 58
         if (is_object($space)) {
59 59
             [$instance, $operations] = [$space, $instance];
Please login to merge, or discard this patch.