@@ 91-100 (lines=10) @@ | ||
88 | return true; |
|
89 | } |
|
90 | ||
91 | private function getOpts($volume) { |
|
92 | $opts = $this->opts; |
|
93 | if (is_object($volume)) { |
|
94 | $volOpts = $volume->getOptionsPlugin('Sanitizer'); |
|
95 | if (is_array($volOpts)) { |
|
96 | $opts = array_merge($this->opts, $volOpts); |
|
97 | } |
|
98 | } |
|
99 | return $opts; |
|
100 | } |
|
101 | ||
102 | private function sanitizeFileName($filename, $opts, $allows = array()) { |
|
103 | $targets = $allows? array_diff($opts['targets'], $allows) : $opts['targets']; |
@@ 102-111 (lines=10) @@ | ||
99 | return true; |
|
100 | } |
|
101 | ||
102 | private function getOpts($volume) { |
|
103 | $opts = $this->opts; |
|
104 | if (is_object($volume)) { |
|
105 | $volOpts = $volume->getOptionsPlugin('Normalizer'); |
|
106 | if (is_array($volOpts)) { |
|
107 | $opts = array_merge($this->opts, $volOpts); |
|
108 | } |
|
109 | } |
|
110 | return $opts; |
|
111 | } |
|
112 | ||
113 | private function normalize($str, $opts) { |
|
114 | if ($opts['nfc'] || $opts['nfkc']) { |