old php versions <.<

This commit is contained in:
jens1o 2017-11-05 18:45:35 +01:00
commit c393e31803
No known key found for this signature in database
GPG key ID: C7437FC1B445CC49
2 changed files with 6 additions and 6 deletions

View file

@ -57,7 +57,7 @@ class Audio extends AbstractStreamableMedia
* @return Audio * @return Audio
* @throws RuntimeException * @throws RuntimeException
*/ */
public function save(FormatInterface $format, string $outputPathfile) public function save(FormatInterface $format, $outputPathfile)
{ {
$listeners = null; $listeners = null;
@ -85,7 +85,7 @@ class Audio extends AbstractStreamableMedia
* @return string * @return string
* @since 0.11.0 * @since 0.11.0
*/ */
public function getFinalCommand(FormatInterface $format, string $outputPathfile) { public function getFinalCommand(FormatInterface $format, $outputPathfile) {
return implode(' ', $this->buildCommand($format, $outputPathfile)); return implode(' ', $this->buildCommand($format, $outputPathfile));
} }
@ -97,7 +97,7 @@ class Audio extends AbstractStreamableMedia
* @return string[] An array which are the components of the command * @return string[] An array which are the components of the command
* @since 0.11.0 * @since 0.11.0
*/ */
protected function buildCommand(FormatInterface $format, string $outputPathfile) { protected function buildCommand(FormatInterface $format, $outputPathfile) {
$commands = array('-y', '-i', $this->pathfile); $commands = array('-y', '-i', $this->pathfile);
$filters = clone $this->filters; $filters = clone $this->filters;

View file

@ -67,7 +67,7 @@ class Video extends Audio
* @return Video * @return Video
* @throws RuntimeException * @throws RuntimeException
*/ */
public function save(FormatInterface $format, string $outputPathfile) public function save(FormatInterface $format, $outputPathfile)
{ {
$passes = $this->buildCommand($format, $outputPathfile); $passes = $this->buildCommand($format, $outputPathfile);
@ -103,7 +103,7 @@ class Video extends Audio
* NOTE: This method is different to the Audio's one, because Video is using passes. * NOTE: This method is different to the Audio's one, because Video is using passes.
* @inheritDoc * @inheritDoc
*/ */
public function getFinalCommand(FormatInterface $format, string $outputPathfile) { public function getFinalCommand(FormatInterface $format, $outputPathfile) {
$finalCommands = array(); $finalCommands = array();
foreach($this->buildCommand($format, $outputPathfile) as $pass => $passCommands) { foreach($this->buildCommand($format, $outputPathfile) as $pass => $passCommands) {
@ -121,7 +121,7 @@ class Video extends Audio
* @inheritDoc * @inheritDoc
* @return string[][] * @return string[][]
*/ */
protected function buildCommand(FormatInterface $format, string $outputPathfile) { protected function buildCommand(FormatInterface $format, $outputPathfile) {
$commands = array('-y', '-i', $this->pathfile); $commands = array('-y', '-i', $this->pathfile);
$filters = clone $this->filters; $filters = clone $this->filters;