@@ -370,14 +370,14 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { |
378 | 378 | if (0 === strpos($class, $prefix)) { |
379 | 379 | foreach ($this->prefixDirsPsr4[$prefix] as $dir) { |
380 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { |
|
380 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) { |
|
381 | 381 | return $file; |
382 | 382 | } |
383 | 383 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | // PSR-4 fallback dirs |
389 | 389 | foreach ($this->fallbackDirsPsr4 as $dir) { |
390 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
390 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
391 | 391 | return $file; |
392 | 392 | } |
393 | 393 | } |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
400 | 400 | } else { |
401 | 401 | // PEAR-like class name |
402 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
402 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
403 | 403 | } |
404 | 404 | |
405 | 405 | if (isset($this->prefixesPsr0[$first])) { |
406 | 406 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
407 | 407 | if (0 === strpos($class, $prefix)) { |
408 | 408 | foreach ($dirs as $dir) { |
409 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
409 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
410 | 410 | return $file; |
411 | 411 | } |
412 | 412 | } |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | |
417 | 417 | // PSR-0 fallback dirs |
418 | 418 | foreach ($this->fallbackDirsPsr0 as $dir) { |
419 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
419 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
420 | 420 | return $file; |
421 | 421 | } |
422 | 422 | } |
@@ -370,14 +370,14 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { |
378 | 378 | if (0 === strpos($class, $prefix)) { |
379 | 379 | foreach ($this->prefixDirsPsr4[$prefix] as $dir) { |
380 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { |
|
380 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) { |
|
381 | 381 | return $file; |
382 | 382 | } |
383 | 383 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | // PSR-4 fallback dirs |
389 | 389 | foreach ($this->fallbackDirsPsr4 as $dir) { |
390 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
390 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
391 | 391 | return $file; |
392 | 392 | } |
393 | 393 | } |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
400 | 400 | } else { |
401 | 401 | // PEAR-like class name |
402 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
402 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
403 | 403 | } |
404 | 404 | |
405 | 405 | if (isset($this->prefixesPsr0[$first])) { |
406 | 406 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
407 | 407 | if (0 === strpos($class, $prefix)) { |
408 | 408 | foreach ($dirs as $dir) { |
409 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
409 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
410 | 410 | return $file; |
411 | 411 | } |
412 | 412 | } |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | |
417 | 417 | // PSR-0 fallback dirs |
418 | 418 | foreach ($this->fallbackDirsPsr0 as $dir) { |
419 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
419 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
420 | 420 | return $file; |
421 | 421 | } |
422 | 422 | } |
@@ -370,14 +370,14 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { |
378 | 378 | if (0 === strpos($class, $prefix)) { |
379 | 379 | foreach ($this->prefixDirsPsr4[$prefix] as $dir) { |
380 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { |
|
380 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) { |
|
381 | 381 | return $file; |
382 | 382 | } |
383 | 383 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | // PSR-4 fallback dirs |
389 | 389 | foreach ($this->fallbackDirsPsr4 as $dir) { |
390 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
390 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
391 | 391 | return $file; |
392 | 392 | } |
393 | 393 | } |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
400 | 400 | } else { |
401 | 401 | // PEAR-like class name |
402 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
402 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
403 | 403 | } |
404 | 404 | |
405 | 405 | if (isset($this->prefixesPsr0[$first])) { |
406 | 406 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
407 | 407 | if (0 === strpos($class, $prefix)) { |
408 | 408 | foreach ($dirs as $dir) { |
409 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
409 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
410 | 410 | return $file; |
411 | 411 | } |
412 | 412 | } |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | |
417 | 417 | // PSR-0 fallback dirs |
418 | 418 | foreach ($this->fallbackDirsPsr0 as $dir) { |
419 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
419 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
420 | 420 | return $file; |
421 | 421 | } |
422 | 422 | } |
@@ -370,14 +370,14 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { |
378 | 378 | if (0 === strpos($class, $prefix)) { |
379 | 379 | foreach ($this->prefixDirsPsr4[$prefix] as $dir) { |
380 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { |
|
380 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) { |
|
381 | 381 | return $file; |
382 | 382 | } |
383 | 383 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | // PSR-4 fallback dirs |
389 | 389 | foreach ($this->fallbackDirsPsr4 as $dir) { |
390 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
390 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
391 | 391 | return $file; |
392 | 392 | } |
393 | 393 | } |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
400 | 400 | } else { |
401 | 401 | // PEAR-like class name |
402 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
402 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
403 | 403 | } |
404 | 404 | |
405 | 405 | if (isset($this->prefixesPsr0[$first])) { |
406 | 406 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
407 | 407 | if (0 === strpos($class, $prefix)) { |
408 | 408 | foreach ($dirs as $dir) { |
409 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
409 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
410 | 410 | return $file; |
411 | 411 | } |
412 | 412 | } |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | |
417 | 417 | // PSR-0 fallback dirs |
418 | 418 | foreach ($this->fallbackDirsPsr0 as $dir) { |
419 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
419 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
420 | 420 | return $file; |
421 | 421 | } |
422 | 422 | } |
@@ -370,14 +370,14 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { |
378 | 378 | if (0 === strpos($class, $prefix)) { |
379 | 379 | foreach ($this->prefixDirsPsr4[$prefix] as $dir) { |
380 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { |
|
380 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) { |
|
381 | 381 | return $file; |
382 | 382 | } |
383 | 383 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | // PSR-4 fallback dirs |
389 | 389 | foreach ($this->fallbackDirsPsr4 as $dir) { |
390 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
390 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
391 | 391 | return $file; |
392 | 392 | } |
393 | 393 | } |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
400 | 400 | } else { |
401 | 401 | // PEAR-like class name |
402 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
402 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
403 | 403 | } |
404 | 404 | |
405 | 405 | if (isset($this->prefixesPsr0[$first])) { |
406 | 406 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
407 | 407 | if (0 === strpos($class, $prefix)) { |
408 | 408 | foreach ($dirs as $dir) { |
409 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
409 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
410 | 410 | return $file; |
411 | 411 | } |
412 | 412 | } |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | |
417 | 417 | // PSR-0 fallback dirs |
418 | 418 | foreach ($this->fallbackDirsPsr0 as $dir) { |
419 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
419 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
420 | 420 | return $file; |
421 | 421 | } |
422 | 422 | } |
@@ -370,14 +370,14 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { |
378 | 378 | if (0 === strpos($class, $prefix)) { |
379 | 379 | foreach ($this->prefixDirsPsr4[$prefix] as $dir) { |
380 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { |
|
380 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) { |
|
381 | 381 | return $file; |
382 | 382 | } |
383 | 383 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | // PSR-4 fallback dirs |
389 | 389 | foreach ($this->fallbackDirsPsr4 as $dir) { |
390 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
390 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
391 | 391 | return $file; |
392 | 392 | } |
393 | 393 | } |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
400 | 400 | } else { |
401 | 401 | // PEAR-like class name |
402 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
402 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
403 | 403 | } |
404 | 404 | |
405 | 405 | if (isset($this->prefixesPsr0[$first])) { |
406 | 406 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
407 | 407 | if (0 === strpos($class, $prefix)) { |
408 | 408 | foreach ($dirs as $dir) { |
409 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
409 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
410 | 410 | return $file; |
411 | 411 | } |
412 | 412 | } |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | |
417 | 417 | // PSR-0 fallback dirs |
418 | 418 | foreach ($this->fallbackDirsPsr0 as $dir) { |
419 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
419 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
420 | 420 | return $file; |
421 | 421 | } |
422 | 422 | } |
@@ -370,14 +370,14 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { |
378 | 378 | if (0 === strpos($class, $prefix)) { |
379 | 379 | foreach ($this->prefixDirsPsr4[$prefix] as $dir) { |
380 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { |
|
380 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) { |
|
381 | 381 | return $file; |
382 | 382 | } |
383 | 383 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | // PSR-4 fallback dirs |
389 | 389 | foreach ($this->fallbackDirsPsr4 as $dir) { |
390 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
390 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
391 | 391 | return $file; |
392 | 392 | } |
393 | 393 | } |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
400 | 400 | } else { |
401 | 401 | // PEAR-like class name |
402 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
402 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
403 | 403 | } |
404 | 404 | |
405 | 405 | if (isset($this->prefixesPsr0[$first])) { |
406 | 406 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
407 | 407 | if (0 === strpos($class, $prefix)) { |
408 | 408 | foreach ($dirs as $dir) { |
409 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
409 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
410 | 410 | return $file; |
411 | 411 | } |
412 | 412 | } |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | |
417 | 417 | // PSR-0 fallback dirs |
418 | 418 | foreach ($this->fallbackDirsPsr0 as $dir) { |
419 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
419 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
420 | 420 | return $file; |
421 | 421 | } |
422 | 422 | } |
@@ -370,14 +370,14 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { |
378 | 378 | if (0 === strpos($class, $prefix)) { |
379 | 379 | foreach ($this->prefixDirsPsr4[$prefix] as $dir) { |
380 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { |
|
380 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) { |
|
381 | 381 | return $file; |
382 | 382 | } |
383 | 383 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | // PSR-4 fallback dirs |
389 | 389 | foreach ($this->fallbackDirsPsr4 as $dir) { |
390 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
390 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
391 | 391 | return $file; |
392 | 392 | } |
393 | 393 | } |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
400 | 400 | } else { |
401 | 401 | // PEAR-like class name |
402 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
402 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
403 | 403 | } |
404 | 404 | |
405 | 405 | if (isset($this->prefixesPsr0[$first])) { |
406 | 406 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
407 | 407 | if (0 === strpos($class, $prefix)) { |
408 | 408 | foreach ($dirs as $dir) { |
409 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
409 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
410 | 410 | return $file; |
411 | 411 | } |
412 | 412 | } |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | |
417 | 417 | // PSR-0 fallback dirs |
418 | 418 | foreach ($this->fallbackDirsPsr0 as $dir) { |
419 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
419 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
420 | 420 | return $file; |
421 | 421 | } |
422 | 422 | } |
@@ -370,14 +370,14 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { |
378 | 378 | if (0 === strpos($class, $prefix)) { |
379 | 379 | foreach ($this->prefixDirsPsr4[$prefix] as $dir) { |
380 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { |
|
380 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) { |
|
381 | 381 | return $file; |
382 | 382 | } |
383 | 383 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | // PSR-4 fallback dirs |
389 | 389 | foreach ($this->fallbackDirsPsr4 as $dir) { |
390 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
390 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
391 | 391 | return $file; |
392 | 392 | } |
393 | 393 | } |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
400 | 400 | } else { |
401 | 401 | // PEAR-like class name |
402 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
402 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
403 | 403 | } |
404 | 404 | |
405 | 405 | if (isset($this->prefixesPsr0[$first])) { |
406 | 406 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
407 | 407 | if (0 === strpos($class, $prefix)) { |
408 | 408 | foreach ($dirs as $dir) { |
409 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
409 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
410 | 410 | return $file; |
411 | 411 | } |
412 | 412 | } |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | |
417 | 417 | // PSR-0 fallback dirs |
418 | 418 | foreach ($this->fallbackDirsPsr0 as $dir) { |
419 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
419 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
420 | 420 | return $file; |
421 | 421 | } |
422 | 422 | } |