@@ -110,7 +110,7 @@ public function getFilename($path, $name)
110110 {
111111 $ filename = $ this ->getSourceFolder () . DIRECTORY_SEPARATOR ;
112112
113- if ($ path = rtrim ($ path , '/ ' )) {
113+ if ($ path = trim ($ path , '/ ' )) {
114114 $ filename .= $ path . DIRECTORY_SEPARATOR ;
115115 }
116116
@@ -140,8 +140,12 @@ private function filterDirectoryToNamespace()
140140 {
141141 if (null === $ this ->filterDirectoryToNamespace ) {
142142 $ this ->filterDirectoryToNamespace = new FilterChain ();
143- $ this ->filterDirectoryToNamespace ->attachByName ('wordseparatortocamelcase ' , ['separator ' => DIRECTORY_SEPARATOR ]);
144- $ this ->filterDirectoryToNamespace ->attachByName ('wordcamelcasetoseparator ' , ['separator ' => '\\\\' ]);
143+ $ this ->filterDirectoryToNamespace ->attachByName (
144+ 'wordseparatortocamelcase ' , ['separator ' => DIRECTORY_SEPARATOR ]
145+ );
146+ $ this ->filterDirectoryToNamespace ->attachByName (
147+ 'wordcamelcasetoseparator ' , ['separator ' => '\\\\' ]
148+ );
145149 }
146150 return $ this ->filterDirectoryToNamespace ;
147151 }
@@ -153,8 +157,12 @@ private function filterNamespaceToDirectory()
153157 {
154158 if (null === $ this ->filterNamespaceToDirectory ) {
155159 $ this ->filterNamespaceToDirectory = new FilterChain ();
156- $ this ->filterNamespaceToDirectory ->attachByName ('wordseparatortocamelcase ' , ['separator ' => '\\' ]);
157- $ this ->filterNamespaceToDirectory ->attachByName ('wordcamelcasetoseparator ' , ['separator ' => '/ ' ]);
160+ $ this ->filterNamespaceToDirectory ->attachByName (
161+ 'wordseparatortocamelcase ' , ['separator ' => '\\' ]
162+ );
163+ $ this ->filterNamespaceToDirectory ->attachByName (
164+ 'wordcamelcasetoseparator ' , ['separator ' => DIRECTORY_SEPARATOR ]
165+ );
158166 }
159167 return $ this ->filterNamespaceToDirectory ;
160168 }
0 commit comments