Skip to content

Commit

Permalink
Returning $this in the methods added to Minify.php for chaining.
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Mar 6, 2015
1 parent 9150ca4 commit fc4eb0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Task/Assets/Minify.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ protected function getMinifiedText()
public function singleLine($singleLine)
{
$this->squeezeOptions['singleLine'] = (bool)$singleLine;
return $this;
}

/**
Expand All @@ -186,6 +187,7 @@ public function singleLine($singleLine)
public function keepImportantComments($keepImportantComments)
{
$this->squeezeOptions['keepImportantComments'] = (bool)$keepImportantComments;
return $this;
}

/**
Expand All @@ -196,6 +198,7 @@ public function keepImportantComments($keepImportantComments)
public function specialVarRx($specialVarRx)
{
$this->squeezeOptions['specialVarRx'] = (bool)$specialVarRx;
return $this;
}

/**
Expand Down

0 comments on commit fc4eb0d

Please sign in to comment.