🎨 Move similar methods near each other.

This commit is contained in:
Flavio Copes
2016-01-27 11:23:48 +01:00
parent dec78b9cbd
commit 8a41b2e08d

View File

@@ -853,7 +853,19 @@ class Assets
}
/**
* Add all CSS assets within $directory (relative to public dir).
* Add all JavaScript assets within $directory.
*
* @param string $directory Relative to $this->public_dir
*
* @return $this
*/
public function addDirJs($directory)
{
return $this->addDir($directory, self::JS_REGEX);
}
/**
* Add all CSS assets within $directory (relative to the Grav root path).
*
* @param string $directory Relative to $this->public_dir
*
@@ -1129,18 +1141,6 @@ class Assets
return $files;
}
/**
* Add all JavaScript assets within $directory.
*
* @param string $directory Relative to $this->public_dir
*
* @return $this
*/
public function addDirJs($directory)
{
return $this->addDir($directory, self::JS_REGEX);
}
/**
* Sets the state of CSS Pipeline
*