Standard fixing

This commit is contained in:
guimeira 2013-09-27 01:34:46 -03:00
commit e1688c7966
2 changed files with 11 additions and 11 deletions

View file

@ -26,8 +26,8 @@ class ClipFilter implements VideoFilterInterface
public function __construct(TimeCode $start, TimeCode $duration = null, $priority = 0)
{
$this->start = $start;
$this->duration = $duration;
$this->start = $start;
$this->duration = $duration;
$this->priority = $priority;
}
@ -60,13 +60,13 @@ class ClipFilter implements VideoFilterInterface
*/
public function apply(Video $video, VideoInterface $format)
{
$commands = array('-ss', (string) $this->start);
if($this->duration !== null) {
$commands[] = '-t';
$commands[] = (string) $this->duration;
}
return $commands;
$commands = array('-ss', (string) $this->start);
if ($this->duration !== null) {
$commands[] = '-t';
$commands[] = (string) $this->duration;
}
return $commands;
}
}

View file

@ -66,7 +66,7 @@ class VideoFilters extends AudioFilters
return $this;
}
/**
* Clips (cuts) the video.
*