Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 148 Revision 399
Zeile 29... Zeile 29...
29
        Concerns\CompilesJs,
29
        Concerns\CompilesJs,
30
        Concerns\CompilesLayouts,
30
        Concerns\CompilesLayouts,
31
        Concerns\CompilesLoops,
31
        Concerns\CompilesLoops,
32
        Concerns\CompilesRawPhp,
32
        Concerns\CompilesRawPhp,
33
        Concerns\CompilesStacks,
33
        Concerns\CompilesStacks,
-
 
34
        Concerns\CompilesStyles,
34
        Concerns\CompilesTranslations,
35
        Concerns\CompilesTranslations,
35
        ReflectsClosures;
36
        ReflectsClosures;
Zeile 36... Zeile 37...
36
 
37
 
37
    /**
38
    /**
Zeile 519... Zeile 520...
519
            // regex pattern or not, and will recursively continue on to the next ")"
520
            // regex pattern or not, and will recursively continue on to the next ")"
520
            // then check again until the tokenizer confirms we find the right one.
521
            // then check again until the tokenizer confirms we find the right one.
521
            while (isset($match[4]) &&
522
            while (isset($match[4]) &&
522
                   Str::endsWith($match[0], ')') &&
523
                   Str::endsWith($match[0], ')') &&
523
                   ! $this->hasEvenNumberOfParentheses($match[0])) {
524
                   ! $this->hasEvenNumberOfParentheses($match[0])) {
-
 
525
                if (($after = Str::after($template, $match[0])) === $template) {
-
 
526
                    break;
-
 
527
                }
-
 
528
 
524
                $rest = Str::before(Str::after($template, $match[0]), ')');
529
                $rest = Str::before($after, ')');
-
 
530
 
-
 
531
                if (isset($matches[0][$i + 1]) && Str::contains($rest.')', $matches[0][$i + 1])) {
-
 
532
                    unset($matches[0][$i + 1]);
-
 
533
                    $i++;
-
 
534
                }
Zeile 525... Zeile 535...
525
 
535
 
526
                $match[0] = $match[0].$rest.')';
536
                $match[0] = $match[0].$rest.')';
527
                $match[3] = $match[3].$rest.')';
537
                $match[3] = $match[3].$rest.')';
528
                $match[4] = $match[4].$rest;
538
                $match[4] = $match[4].$rest;
Zeile 673... Zeile 683...
673
 
683
 
674
    /**
684
    /**
675
     * Check the result of a condition.
685
     * Check the result of a condition.
676
     *
686
     *
677
     * @param  string  $name
687
     * @param  string  $name
678
     * @param  array  $parameters
688
     * @param  array  ...$parameters
679
     * @return bool
689
     * @return bool
680
     */
690
     */
681
    public function check($name, ...$parameters)
691
    public function check($name, ...$parameters)
682
    {
692
    {