Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 17... Zeile 17...
17
 * file that was distributed with this source code.
17
 * file that was distributed with this source code.
18
 */
18
 */
Zeile 19... Zeile 19...
19
 
19
 
Zeile -... Zeile 20...
-
 
20
namespace League\CommonMark\Delimiter\Processor;
-
 
21
 
20
namespace League\CommonMark\Delimiter\Processor;
22
use League\CommonMark\Exception\InvalidArgumentException;
21
 
23
 
22
final class DelimiterProcessorCollection implements DelimiterProcessorCollectionInterface
24
final class DelimiterProcessorCollection implements DelimiterProcessorCollectionInterface
23
{
25
{
24
    /**
26
    /**
Zeile 60... Zeile 62...
60
    }
62
    }
Zeile 61... Zeile 63...
61
 
63
 
62
    private function addDelimiterProcessorForChar(string $delimiterChar, DelimiterProcessorInterface $processor): void
64
    private function addDelimiterProcessorForChar(string $delimiterChar, DelimiterProcessorInterface $processor): void
63
    {
65
    {
64
        if (isset($this->processorsByChar[$delimiterChar])) {
66
        if (isset($this->processorsByChar[$delimiterChar])) {
65
            throw new \InvalidArgumentException(\sprintf('Delim processor for character "%s" already exists', $processor->getOpeningCharacter()));
67
            throw new InvalidArgumentException(\sprintf('Delim processor for character "%s" already exists', $processor->getOpeningCharacter()));
Zeile 66... Zeile 68...
66
        }
68
        }
67
 
69