From c82a1eacda62bce23c9d1cf0ae30f1550c0580a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Burnichon?= Date: Wed, 17 Feb 2016 12:50:55 +0100 Subject: [PATCH] PHPCS --- .../Phrasea/TaskManager/Job/WriteMetadataJob.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Alchemy/Phrasea/TaskManager/Job/WriteMetadataJob.php b/lib/Alchemy/Phrasea/TaskManager/Job/WriteMetadataJob.php index 1582b4e570..da1b26d2d8 100644 --- a/lib/Alchemy/Phrasea/TaskManager/Job/WriteMetadataJob.php +++ b/lib/Alchemy/Phrasea/TaskManager/Job/WriteMetadataJob.php @@ -1,9 +1,9 @@ getTask()->getSettings()); - $clearDoc = (Boolean) (string) $settings->cleardoc; - $MWG = (Boolean) (string) $settings->mwg; + $clearDoc = (bool) (string) $settings->cleardoc; + $MWG = (bool) (string) $settings->mwg; foreach ($jobData->getApplication()->getDataboxes() as $databox) { $connection = $databox->get_connection(); @@ -79,7 +79,7 @@ class WriteMetadataJob extends AbstractJob $token = $row['jeton']; $record = $databox->get_record($record_id); - $type = $record->get_type(); + $type = $record->getType(); $subdefs = []; foreach ($record->get_subdefs() as $name => $subdef) { @@ -152,7 +152,7 @@ class WriteMetadataJob extends AbstractJob } catch(\Exception $e) { // the field is not set in the record, erase it if ($fieldStructure->is_multi()) { - $value = new Value\Multi(Array('')); + $value = new Value\Multi(array('')); } else { $value = new Value\Mono('');