summaryrefslogtreecommitdiffstats
path: root/src/Config/StreamFilter.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Config/StreamFilter.php')
-rw-r--r--src/Config/StreamFilter.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/Config/StreamFilter.php b/src/Config/StreamFilter.php
index 57b0ece..c8a32d5 100644
--- a/src/Config/StreamFilter.php
+++ b/src/Config/StreamFilter.php
@@ -164,21 +164,6 @@ trait StreamFilter
}
/**
- * Sanitize the stream filter name
- *
- * @param string $filter_name the stream filter name
- *
- * @return string
- */
- protected function sanitizeStreamFilter($filter_name)
- {
- $this->assertStreamable();
- $filter_name = (string) $filter_name;
-
- return trim($filter_name);
- }
-
- /**
* append a stream filter
*
* @param string $filter_name a string or an object that implements the '__toString' method
@@ -209,6 +194,21 @@ trait StreamFilter
}
/**
+ * Sanitize the stream filter name
+ *
+ * @param string $filter_name the stream filter name
+ *
+ * @return string
+ */
+ protected function sanitizeStreamFilter($filter_name)
+ {
+ $this->assertStreamable();
+ $filter_name = (string) $filter_name;
+
+ return trim($filter_name);
+ }
+
+ /**
* Detect if the stream filter is already present
*
* @param string $filter_name