Coding Standards

This commit is contained in:
Romain Neutron
2012-03-19 19:04:48 +01:00
parent f8ad7136cf
commit fa698fbdda
22 changed files with 56 additions and 41 deletions

View File

@@ -245,4 +245,4 @@ class module_console_checkExtension extends Command
return 0;
}
}
}

View File

@@ -82,6 +82,7 @@ class module_console_fieldsDelete extends Command
if($continue != 'y')
{
$output->writeln("Request canceled by user");
return 1;
}

View File

@@ -89,6 +89,7 @@ class module_console_fieldsRename extends Command
if($continue != 'y')
{
$output->writeln("Request canceled by user");
return 1;
}

View File

@@ -60,19 +60,21 @@ class module_console_sphinxGenerateSuggestion extends Command
$databox = databox::get_instance($sbas_id);
$output->writeln("process Databox " . $databox->get_viewname() . " / $index\n");
if(!is_executable("/usr/local/bin/indexer"))
{
$output->writeln("<error>'/usr/local/bin/indexer' is not executable</error>");
return 1;
}
if(!file_exists($tmp_file))
{
$output->writeln("<error> file '".$tmp_file."' does not exist</error>");
return 1;
}
$cmd = '/usr/local/bin/indexer metadatas' . $index . ' --buildstops ' . $tmp_file . ' 1000000 --buildfreqs';
exec($cmd);