From 8a41b2e08d17bc7075a8feab6b8802ebaf1d490d Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Wed, 27 Jan 2016 11:23:48 +0100 Subject: [PATCH] :art: Move similar methods near each other. --- system/src/Grav/Common/Assets.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/system/src/Grav/Common/Assets.php b/system/src/Grav/Common/Assets.php index 2887cb577..d7e30256f 100644 --- a/system/src/Grav/Common/Assets.php +++ b/system/src/Grav/Common/Assets.php @@ -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 *