@@ -126,7 +126,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
126
126
}
127
127
$ firstNamespace = false ;
128
128
foreach ($ paths as $ path ) {
129
- $ rows [] = array ($ namespace , $ path .DIRECTORY_SEPARATOR );
129
+ $ rows [] = array ($ namespace , $ path .\ DIRECTORY_SEPARATOR );
130
130
$ namespace = '' ;
131
131
}
132
132
if (\count ($ paths ) > 1 ) {
@@ -159,7 +159,7 @@ private function getLoaderPaths()
159
159
foreach ($ loader ->getNamespaces () as $ namespace ) {
160
160
$ paths = array_map (function ($ path ) {
161
161
if (null !== $ this ->projectDir && 0 === strpos ($ path , $ this ->projectDir )) {
162
- $ path = ltrim (substr ($ path , \strlen ($ this ->projectDir )), DIRECTORY_SEPARATOR );
162
+ $ path = ltrim (substr ($ path , \strlen ($ this ->projectDir )), \ DIRECTORY_SEPARATOR );
163
163
}
164
164
165
165
return $ path ;
@@ -272,7 +272,7 @@ private function findWrongBundleOverrides(): array
272
272
273
273
if ($ this ->rootDir && $ this ->projectDir ) {
274
274
$ folders = glob ($ this ->rootDir .'/Resources/*/views ' , GLOB_ONLYDIR );
275
- $ relativePath = ltrim (substr ($ this ->rootDir .'/Resources/ ' , \strlen ($ this ->projectDir )), DIRECTORY_SEPARATOR );
275
+ $ relativePath = ltrim (substr ($ this ->rootDir .'/Resources/ ' , \strlen ($ this ->projectDir )), \ DIRECTORY_SEPARATOR );
276
276
$ bundleNames = array_reduce (
277
277
$ folders ,
278
278
function ($ carry , $ absolutePath ) use ($ relativePath ) {
@@ -290,13 +290,13 @@ function ($carry, $absolutePath) use ($relativePath) {
290
290
291
291
if ($ this ->twigDefaultPath && $ this ->projectDir ) {
292
292
$ folders = glob ($ this ->twigDefaultPath .'/bundles/* ' , GLOB_ONLYDIR );
293
- $ relativePath = ltrim (substr ($ this ->twigDefaultPath .'/bundles ' , \strlen ($ this ->projectDir )), DIRECTORY_SEPARATOR );
293
+ $ relativePath = ltrim (substr ($ this ->twigDefaultPath .'/bundles ' , \strlen ($ this ->projectDir )), \ DIRECTORY_SEPARATOR );
294
294
$ bundleNames = array_reduce (
295
295
$ folders ,
296
296
function ($ carry , $ absolutePath ) use ($ relativePath ) {
297
297
if (0 === strpos ($ absolutePath , $ this ->projectDir )) {
298
- $ path = ltrim (substr ($ absolutePath , \strlen ($ this ->projectDir )), DIRECTORY_SEPARATOR );
299
- $ name = ltrim (substr ($ path , \strlen ($ relativePath )), DIRECTORY_SEPARATOR );
298
+ $ path = ltrim (substr ($ absolutePath , \strlen ($ this ->projectDir )), \ DIRECTORY_SEPARATOR );
299
+ $ name = ltrim (substr ($ path , \strlen ($ relativePath )), \ DIRECTORY_SEPARATOR );
300
300
$ carry [$ name ] = $ path ;
301
301
}
302
302
0 commit comments