Skip to content

Commit

Permalink
force ids to be int
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Feb 23, 2020
1 parent f7c9116 commit b462e66
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/Traits/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function getAccountId($row)
$id = $this->getAccountIdFromCurrency($row);
}

return $id;
return (int) $id;
}

public function getCategoryId($row, $type = null)
Expand All @@ -41,7 +41,7 @@ public function getCategoryId($row, $type = null)
$id = $this->getCategoryIdFromName($row, $type);
}

return $id;
return (int) $id;
}

public function getContactId($row, $type = null)
Expand All @@ -58,7 +58,7 @@ public function getContactId($row, $type = null)
$id = $this->getContactIdFromName($row, $type);
}

return $id;
return (int) $id;
}

public function getDocumentId($row)
Expand All @@ -81,7 +81,7 @@ public function getDocumentId($row)
}
}

return $id;
return (int) $id;
}

public function getItemId($row)
Expand All @@ -92,7 +92,7 @@ public function getItemId($row)
$id = $this->getItemIdFromName($row);
}

return $id;
return (int) $id;
}

public function getTaxId($row)
Expand All @@ -107,7 +107,7 @@ public function getTaxId($row)
$id = $this->getTaxIdFromRate($row);
}

return $id;
return (int) $id;
}

public function getAccountIdFromCurrency($row)
Expand Down

0 comments on commit b462e66

Please sign in to comment.