Completed
Push — master ( fc4e75...3daa16 )
by Jared
13s
created
src/Driver/DatabaseDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
                 }
89 89
 
90 90
                 return $this->connections->getDefault();
91
-            } catch (JAQBException|PDOException $e) {
91
+            } catch (JAQBException | PDOException $e) {
92 92
                 throw new DriverException($e->getMessage(), $e->getCode(), $e);
93 93
             }
94 94
         }
Please login to merge, or discard this patch.
src/Property.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         private string $mutable = self::MUTABLE,
23 23
         private bool $null = false,
24 24
         private bool $required = false,
25
-        private array|string|null $validate = null,
25
+        private array | string | null $validate = null,
26 26
         private mixed $default = self::MISSING_DEFAULT,
27 27
         private bool $encrypted = false,
28 28
         private bool $persisted = true,
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         return $this->required;
110 110
     }
111 111
 
112
-    public function getValidationRules(): array|string|null
112
+    public function getValidationRules(): array | string | null
113 113
     {
114 114
         return $this->validate;
115 115
     }
Please login to merge, or discard this patch.
src/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     /**
173 173
      * Gets the model ID.
174 174
      */
175
-    public function id(): string|int|false
175
+    public function id(): string | int | false
176 176
     {
177 177
         if (!$this->hasId) {
178 178
             return false;
@@ -1308,7 +1308,7 @@  discard block
 block discarded – undo
1308 1308
      *
1309 1309
      * @throws InvalidArgumentException when the relationship manager cannot be created
1310 1310
      */
1311
-    public function relation(string $k): Model|array|null
1311
+    public function relation(string $k): Model | array | null
1312 1312
     {
1313 1313
         if (!array_key_exists($k, $this->_relationships)) {
1314 1314
             $relation = Relationship::make($this, static::definition()->get($k));
Please login to merge, or discard this patch.
src/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      * -  ['string', 'min' => '5']
86 86
      * - matching|password.
87 87
      */
88
-    public function __construct(array|string $rules)
88
+    public function __construct(array | string $rules)
89 89
     {
90 90
         // parses this format: matching|password_php
91 91
         if (!is_array($rules)) {
Please login to merge, or discard this patch.
src/Hydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     /**
10 10
      * @return Model[]
11 11
      */
12
-    public static function hydrate(array $result, string|Model $modelClass, array $eagerLoaded): array
12
+    public static function hydrate(array $result, string | Model $modelClass, array $eagerLoaded): array
13 13
     {
14 14
         $ids = [];
15 15
         $eagerLoadedProperties = [];
Please login to merge, or discard this patch.
src/Query.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     const DEFAULT_LIMIT = 100;
24 24
     const MAX_LIMIT = 1000;
25 25
 
26
-    private Model|string $model;
26
+    private Model | string $model;
27 27
     private array $joins = [];
28 28
     private array $eagerLoaded = [];
29 29
     private array $where = [];
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     private int $start = 0;
32 32
     private array $sort = [];
33 33
 
34
-    public function __construct(Model|string $model = '')
34
+    public function __construct(Model | string $model = '')
35 35
     {
36 36
         $this->model = $model;
37 37
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * Gets the model class associated with this query.
41 41
      */
42
-    public function getModel(): Model|string
42
+    public function getModel(): Model | string
43 43
     {
44 44
         return $this->model;
45 45
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      *
90 90
      * @return $this
91 91
      */
92
-    public function sort(array|string $sort): self
92
+    public function sort(array | string $sort): self
93 93
     {
94 94
         $columns = explode(',', $sort);
95 95
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @return $this
139 139
      */
140
-    public function where(array|string $where, mixed $value = null, string|null $condition = null): self
140
+    public function where(array | string $where, mixed $value = null, string | null $condition = null): self
141 141
     {
142 142
         // handles i.
143 143
         if (is_array($where)) {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      *
184 184
      * @return $this
185 185
      */
186
-    public function join(Model|string $model, string $column, string $foreignKey, string $type = 'JOIN'): self
186
+    public function join(Model | string $model, string $column, string $foreignKey, string $type = 'JOIN'): self
187 187
     {
188 188
         $join = [$model, $column, $foreignKey, $type];
189 189
         // Ensure there are no duplicate joins
Please login to merge, or discard this patch.
src/Errors.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
     /**
146 146
      * Formats an incoming error message.
147 147
      */
148
-    private function sanitize(array|string $input): Error
148
+    private function sanitize(array | string $input): Error
149 149
     {
150 150
         $error = is_array($input) ? $input['error'] : $input;
151 151
         $context = $input['context'] ?? [];
Please login to merge, or discard this patch.
src/Iterator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
     private int $start;
18 18
     private int $pointer;
19 19
     private int $limit;
20
-    private int|bool $loadedStart = false;
20
+    private int | bool $loadedStart = false;
21 21
     private array $models = [];
22
-    private int|bool $count = false;
22
+    private int | bool $count = false;
23 23
 
24 24
     public function __construct(Query $query)
25 25
     {
Please login to merge, or discard this patch.