summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-12-10 20:14:18 -0100
committerMaxence Lange <maxence@artificial-owl.com>2018-12-10 20:14:18 -0100
commit1761c3988fd2c8a081cef91bcdf41177f0b499c5 (patch)
tree7a3ba5e1c10367797537a95c86e926b4f0bd810c /lib
parent4342775a29371bae388ab6339c9081a5f5b6e3e7 (diff)
parente28b214ece671ea737493ac0e00f0e0f17c9c8b5 (diff)
Merge branch 'master' into bigger-field-for-source
Diffstat (limited to 'lib')
-rw-r--r--lib/Db/CacheActorsRequest.php6
-rw-r--r--lib/Db/NotesRequest.php6
-rw-r--r--lib/Service/ImportService.php2
3 files changed, 3 insertions, 11 deletions
diff --git a/lib/Db/CacheActorsRequest.php b/lib/Db/CacheActorsRequest.php
index d5d571af..e69afbc1 100644
--- a/lib/Db/CacheActorsRequest.php
+++ b/lib/Db/CacheActorsRequest.php
@@ -62,10 +62,8 @@ class CacheActorsRequest extends CacheActorsRequestBuilder {
* insert cache about an Actor in database.
*
* @param Person $actor
- *
- * @return int
*/
- public function save(Person $actor): int {
+ public function save(Person $actor) {
$source = $actor->getSource();
if (strlen($source) >= CoreRequestBuilder::SOURCE_LENGTH) {
$source = 'too_big';
@@ -106,8 +104,6 @@ class CacheActorsRequest extends CacheActorsRequestBuilder {
$qb->setValue('icon_id', $qb->createNamedParameter($iconId));
$qb->execute();
-
- return $qb->getLastInsertId();
}
diff --git a/lib/Db/NotesRequest.php b/lib/Db/NotesRequest.php
index a5e7313d..fdd1313b 100644
--- a/lib/Db/NotesRequest.php
+++ b/lib/Db/NotesRequest.php
@@ -61,10 +61,8 @@ class NotesRequest extends NotesRequestBuilder {
* Insert a new Note in the database.
*
* @param Note $note
- *
- * @return int
*/
- public function save(Note $note): int {
+ public function save(Note $note) {
$dTime = new DateTime();
$dTime->setTimestamp($note->getPublishedTime());
@@ -113,8 +111,6 @@ class NotesRequest extends NotesRequestBuilder {
);
$qb->execute();
-
- return $qb->getLastInsertId();
}
diff --git a/lib/Service/ImportService.php b/lib/Service/ImportService.php
index f87b0b4b..73072a7e 100644
--- a/lib/Service/ImportService.php
+++ b/lib/Service/ImportService.php
@@ -235,7 +235,7 @@ class ImportService {
$service->parse($activity);
} catch (Exception $e) {
$this->miscService->log(
- 2, 'Cannot parse ' . $activity->getType() . ': ' . $e->getMessage()
+ 'Cannot parse ' . $activity->getType() . ': ' . $e->getMessage()
);
}
}