|
@@ -344,7 +344,7 @@ discard block |
|
|
block discarded – undo |
|
344
|
344
|
*/ |
|
345
|
345
|
public function setFullPath($fullPath) |
|
346
|
346
|
{ |
|
347
|
|
- $pattern = '#('.DIRECTORY_SEPARATOR.')\1+#'; |
|
|
347
|
+ $pattern = '#(' . DIRECTORY_SEPARATOR . ')\1+#'; |
|
348
|
348
|
$replacement = DIRECTORY_SEPARATOR; |
|
349
|
349
|
$fullPath = preg_replace($pattern, $replacement, $fullPath); |
|
350
|
350
|
|
|
@@ -427,7 +427,7 @@ discard block |
|
|
block discarded – undo |
|
427
|
427
|
public function setType($type) |
|
428
|
428
|
{ |
|
429
|
429
|
if (!in_array($type, self::getTypes())) { |
|
430
|
|
- throw new \InvalidArgumentException(sprintf('%s is not a valid type. See %s', $type, self::class.'::getTypes()')); |
|
|
430
|
+ throw new \InvalidArgumentException(sprintf('%s is not a valid type. See %s', $type, self::class . '::getTypes()')); |
|
431
|
431
|
} |
|
432
|
432
|
|
|
433
|
433
|
$this->type = $type; |
Please login to merge, or discard this patch.