mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix CS lib/classes
This commit is contained in:
@@ -14,7 +14,6 @@ use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Alchemy\Phrasea\Core\Service\Builder;
|
||||
|
||||
/**
|
||||
|
@@ -14,7 +14,6 @@ use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Alchemy\Phrasea\Command\Command;
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Alchemy\Phrasea\Core\Service\Builder;
|
||||
|
||||
/**
|
||||
|
@@ -39,7 +39,6 @@ class module_console_schedulerStop extends Command
|
||||
|
||||
return 0;
|
||||
} catch (\Exception $e) {
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@@ -98,7 +98,7 @@ class module_console_systemExport extends Command
|
||||
|
||||
$export_directory = realpath(substr($directory, 0, 1) === '/' ? $directory : getcwd() . '/' . $directory . '/');
|
||||
|
||||
if ( ! $export_directory) {
|
||||
if (! $export_directory) {
|
||||
throw new Exception('Export directory does not exists or is not accessible');
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ class module_console_systemExport extends Command
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! $go) {
|
||||
if (! $go) {
|
||||
$output->writeln(sprintf("Collections not selected, bypassing ..."));
|
||||
continue;
|
||||
}
|
||||
|
@@ -62,7 +62,7 @@ class module_console_systemMailCheck extends Command
|
||||
{
|
||||
$is_stopped = false;
|
||||
|
||||
while ( ! $is_stopped) {
|
||||
while (! $is_stopped) {
|
||||
$this->write_infos($email, $users, $output, $appbox);
|
||||
|
||||
$dialog = $this->getHelperSet()->get('dialog');
|
||||
|
@@ -114,4 +114,3 @@ class module_console_taskState extends Command
|
||||
return $exitCode;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -95,7 +95,6 @@ class module_console_taskrun extends Command
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($input->getOption('verbose')) {
|
||||
$this->container['monolog']->pushHandler(new StreamHandler('php://stdout'));
|
||||
}
|
||||
|
@@ -77,7 +77,7 @@ class module_report_activity extends module_report
|
||||
{
|
||||
$hours = array();
|
||||
|
||||
for ($i = 0; $i < 24; $i ++ ) {
|
||||
for ($i = 0; $i < 24; $i ++) {
|
||||
array_push($this->display, $i);
|
||||
$hours[$i] = 0;
|
||||
}
|
||||
@@ -362,7 +362,6 @@ class module_report_activity extends module_report
|
||||
{
|
||||
$this->title = _('report:: telechargements par jour');
|
||||
|
||||
|
||||
$s = new module_report_sql($this->app, $this);
|
||||
$filter = $s->getFilters();
|
||||
$conn = $s->getConnBas();
|
||||
|
@@ -174,4 +174,3 @@ class module_report_connexion extends module_report
|
||||
return (int) $row['nb'];
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -180,7 +180,7 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
|
||||
*/
|
||||
protected function getPlotLegendDay($dmin, $dmax = false)
|
||||
{
|
||||
if ( ! $dmax) {
|
||||
if (! $dmax) {
|
||||
$date = new Datetime();
|
||||
$dmax = $date->format('d-m-Y');
|
||||
} else {
|
||||
|
@@ -237,4 +237,3 @@ class module_report_dashboard_feed implements module_report_dashboard_componentI
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -94,4 +94,3 @@ class module_report_dashboard_group implements module_report_dashboard_component
|
||||
return new module_report_dashboard_merge($this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -205,4 +205,3 @@ class module_report_dashboard_merge implements module_report_dashboard_component
|
||||
return new module_report_dashboard_sort($this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -158,4 +158,3 @@ class module_report_dashboard_sort implements module_report_dashboard_componentI
|
||||
return $tmp;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -272,4 +272,3 @@ class module_report_download extends module_report
|
||||
return $array;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -127,4 +127,3 @@ class module_report_edit extends module_report
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -130,4 +130,3 @@ class module_report_push extends module_report
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -109,4 +109,3 @@ class module_report_question extends module_report
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
interface module_report_sqlReportinterface
|
||||
interface module_report_sqlReportInterface
|
||||
{
|
||||
|
||||
public function buildSql();
|
||||
|
@@ -258,4 +258,3 @@ class module_report_sqlfilter
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -103,4 +103,3 @@ class module_report_sqlquestion extends module_report_sql implements module_repo
|
||||
return array('sql' => $sql, 'params' => $params);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -130,4 +130,3 @@ class module_report_validate extends module_report
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user