fix typo & add doc blocks

This commit is contained in:
Nicolas Le Goff
2012-07-03 14:47:19 +02:00
parent 3619c8a1b9
commit fd7454a346
3 changed files with 3 additions and 5 deletions

View File

@@ -203,11 +203,12 @@ class Manager
* Find an available Lazaret filename and creates the empty file. * Find an available Lazaret filename and creates the empty file.
* *
* @param string $filename The desired filename * @param string $filename The desired filename
* @param string $suffix A suffix to the filename
* @return string The available filename to use * @return string The available filename to use
*/ */
protected function bookLazaretPathfile($filename, $suffix = '') protected function bookLazaretPathfile($filename, $suffix = '')
{ {
$output = __DIR__ . '/../../../../tmp/lazaret/lzrt_' . substr($filename, 0, 3) . '_' . $suffix . '.' .pathinfo($filename, PATHINFO_EXTENSION); $output = __DIR__ . '/../../../../tmp/lazaret/lzrt_' . substr($filename, 0, 3) . '_' . $suffix . '.' . pathinfo($filename, PATHINFO_EXTENSION);
$infos = pathinfo($output); $infos = pathinfo($output);
$n = 0; $n = 0;
while (true) { while (true) {

View File

@@ -387,6 +387,4 @@ class LazaretFile
{ {
$this->thumbPathname = $thumbPathname; $this->thumbPathname = $thumbPathname;
} }
} }

View File

@@ -104,7 +104,6 @@ class patch_370a7 implements patchInterface
} }
$media = $Core['mediavorus']->guess(new \SplFileInfo($filePath)); $media = $Core['mediavorus']->guess(new \SplFileInfo($filePath));
$collection = \collection::get_from_base_id($row['base_id']); $collection = \collection::get_from_base_id($row['base_id']);