mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Use short array declaration
This commit is contained in:
@@ -39,7 +39,7 @@ class module_console_systemExport extends Command
|
||||
* To implement
|
||||
*/
|
||||
// $this->addOption('excludefield', 'f', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY
|
||||
// , 'Exclude field from XML', array());
|
||||
// , 'Exclude field from XML', []);
|
||||
|
||||
/**
|
||||
* To implement
|
||||
@@ -57,10 +57,10 @@ class module_console_systemExport extends Command
|
||||
, 'Limit files quantity (for test purposes)', false);
|
||||
|
||||
$this->addOption('base_id', 'b', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY
|
||||
, 'Restrict on base_ids', array());
|
||||
, 'Restrict on base_ids', []);
|
||||
|
||||
$this->addOption('sbas_id', 's', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY
|
||||
, 'Restrict on sbas_ids', array());
|
||||
, 'Restrict on sbas_ids', []);
|
||||
|
||||
$this->addArgument('directory', InputOption::VALUE_REQUIRED
|
||||
, 'The directory where to export');
|
||||
@@ -134,7 +134,7 @@ class module_console_systemExport extends Command
|
||||
}
|
||||
|
||||
$go = true;
|
||||
$coll_ids = array();
|
||||
$coll_ids = [];
|
||||
|
||||
if (count($restrictBaseIds) > 0) {
|
||||
$go = false;
|
||||
@@ -187,7 +187,7 @@ class module_console_systemExport extends Command
|
||||
$record = $databox->get_record($row['record_id']);
|
||||
if (($done % $docPerDir) === 0) {
|
||||
$dir_increment ++;
|
||||
$in_dir_files = array();
|
||||
$in_dir_files = [];
|
||||
$current_dir = $local_export . sprintf($dir_format, $dir_increment) . '/';
|
||||
$this->getService('filesystem')->mkdir($current_dir);
|
||||
}
|
||||
|
Reference in New Issue
Block a user