mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Coding standards
This commit is contained in:
@@ -306,6 +306,7 @@ class module_console_fileEnsureDevSetting extends Command
|
||||
$output->writeln(sprintf('<error>Miss required keys %s</error>', implode(', ', $required)));
|
||||
$this->errors++;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -447,6 +448,7 @@ class module_console_fileEnsureDevSetting extends Command
|
||||
{
|
||||
$config = new \Doctrine\DBAL\Configuration();
|
||||
$conn = \Doctrine\DBAL\DriverManager::getConnection($connexion->all(), $config);
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (\Exception $e)
|
||||
|
@@ -300,6 +300,7 @@ class module_console_fileEnsureProductionSetting extends Command
|
||||
$output->writeln(sprintf('<error>Miss required keys %s</error>', implode(', ', $required)));
|
||||
$this->errors++;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -441,6 +442,7 @@ class module_console_fileEnsureProductionSetting extends Command
|
||||
{
|
||||
$config = new \Doctrine\DBAL\Configuration();
|
||||
$conn = \Doctrine\DBAL\DriverManager::getConnection($connexion->all(), $config);
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (\Exception $e)
|
||||
@@ -896,6 +898,7 @@ class module_console_fileEnsureProductionSetting extends Command
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return $server === $Service->getDriver()->isServer();
|
||||
}
|
||||
|
||||
|
@@ -645,7 +645,7 @@ class module_report_activity extends module_report
|
||||
{
|
||||
unset($this->result[$i]);
|
||||
}
|
||||
|
||||
|
||||
if (isset($this->result[$i]['poiddoc']) && isset($this->result[$i]['poidprev']))
|
||||
{
|
||||
$this->result[$i]['poiddoc'] = p4string::format_octets($this->result[$i]['poiddoc']);
|
||||
@@ -653,7 +653,7 @@ class module_report_activity extends module_report
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$i++;
|
||||
|
||||
$this->result[$i]['nbprev'] = 0;
|
||||
@@ -692,7 +692,7 @@ class module_report_activity extends module_report
|
||||
|
||||
$save_user = $user;
|
||||
}
|
||||
|
||||
|
||||
unset($this->result[$i]);
|
||||
$nb_row = $i + 1;
|
||||
$this->total = $nb_row;
|
||||
@@ -772,7 +772,7 @@ class module_report_activity extends module_report
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
elseif ($value == "size")
|
||||
|
Reference in New Issue
Block a user