Completed
Pull Request — master (#51)
by
unknown
15s
created
src/Property.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         public readonly string $mutable = self::MUTABLE,
27 27
         public readonly bool $null = false,
28 28
         public readonly bool $required = false,
29
-        public readonly array|string|null $validate = null,
29
+        public readonly array | string | null $validate = null,
30 30
         mixed $default = self::MISSING_DEFAULT,
31 31
         public readonly bool $encrypted = false,
32 32
         bool $persisted = true,
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         public readonly ?string $local_key = null,
38 38
         public readonly ?string $id_key = null,
39 39
         public readonly ?string $pivot_tablename = null,
40
-        public readonly ?array $morphs_to = null,
40
+        public readonly ? array $morphs_to = null,
41 41
         ?string $belongs_to = null,
42 42
         ?string $belongs_to_many = null,
43 43
         ?string $has_one = null,
Please login to merge, or discard this patch.
src/Relation/BelongsToMany.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param string $foreignModel foreign model class
29 29
      * @param string $foreignKey   identifying key on foreign model
30 30
      */
31
-    public function __construct(Model $localModel, string $localKey, string $tablename, string $foreignModel, string $foreignKey, private readonly string|null $idKey)
31
+    public function __construct(Model $localModel, string $localKey, string $tablename, string $foreignModel, string $foreignKey, private readonly string | null $idKey)
32 32
     {
33 33
         $this->tablename = $tablename;
34 34
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $pivot->setTablename($this->tablename);
42 42
 
43 43
         $ids = $this->localModel->ids();
44
-        $ids = $this->idKey ? [$this->idKey => array_shift($ids)] : $ids ;
44
+        $ids = $this->idKey ? [$this->idKey => array_shift($ids)] : $ids;
45 45
         //known issue - this will work only on single join  column
46 46
         foreach ($ids as $idProperty => $id) {
47 47
             if (null === $id) {
Please login to merge, or discard this patch.