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

View file

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