mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
PHPCS
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* This file is part of Phraseanet
|
* This file is part of Phraseanet
|
||||||
*
|
*
|
||||||
* (c) 2005-2014 Alchemy
|
* (c) 2005-2016 Alchemy
|
||||||
*
|
*
|
||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
@@ -63,8 +63,8 @@ class WriteMetadataJob extends AbstractJob
|
|||||||
protected function doJob(JobData $jobData)
|
protected function doJob(JobData $jobData)
|
||||||
{
|
{
|
||||||
$settings = simplexml_load_string($jobData->getTask()->getSettings());
|
$settings = simplexml_load_string($jobData->getTask()->getSettings());
|
||||||
$clearDoc = (Boolean) (string) $settings->cleardoc;
|
$clearDoc = (bool) (string) $settings->cleardoc;
|
||||||
$MWG = (Boolean) (string) $settings->mwg;
|
$MWG = (bool) (string) $settings->mwg;
|
||||||
|
|
||||||
foreach ($jobData->getApplication()->getDataboxes() as $databox) {
|
foreach ($jobData->getApplication()->getDataboxes() as $databox) {
|
||||||
$connection = $databox->get_connection();
|
$connection = $databox->get_connection();
|
||||||
@@ -79,7 +79,7 @@ class WriteMetadataJob extends AbstractJob
|
|||||||
$token = $row['jeton'];
|
$token = $row['jeton'];
|
||||||
|
|
||||||
$record = $databox->get_record($record_id);
|
$record = $databox->get_record($record_id);
|
||||||
$type = $record->get_type();
|
$type = $record->getType();
|
||||||
|
|
||||||
$subdefs = [];
|
$subdefs = [];
|
||||||
foreach ($record->get_subdefs() as $name => $subdef) {
|
foreach ($record->get_subdefs() as $name => $subdef) {
|
||||||
@@ -152,7 +152,7 @@ class WriteMetadataJob extends AbstractJob
|
|||||||
} catch(\Exception $e) {
|
} catch(\Exception $e) {
|
||||||
// the field is not set in the record, erase it
|
// the field is not set in the record, erase it
|
||||||
if ($fieldStructure->is_multi()) {
|
if ($fieldStructure->is_multi()) {
|
||||||
$value = new Value\Multi(Array(''));
|
$value = new Value\Multi(array(''));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$value = new Value\Mono('');
|
$value = new Value\Mono('');
|
||||||
|
Reference in New Issue
Block a user