@@ -906,7 +906,6 @@ |
||
906 | 906 | * @link https://php.net/manual/en/serializable.unserialize.php |
907 | 907 | * |
908 | 908 | * @param string $serialized The string representation of the object. |
909 | - |
|
910 | 909 | * @return void |
911 | 910 | * |
912 | 911 | * @since 5.1.0 |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | |
210 | 210 | $segments = \array_filter( |
211 | 211 | $matches, |
212 | - function ($match) { |
|
212 | + function($match) { |
|
213 | 213 | return (\mb_strlen($match, 'UTF-8') > 0); |
214 | 214 | } |
215 | 215 | ); |
@@ -627,84 +627,84 @@ discard block |
||
627 | 627 | $filters = [ |
628 | 628 | [ |
629 | 629 | 'tokens' => ['=', '=='], |
630 | - 'closure' => function ($item, $property, $value) { |
|
630 | + 'closure' => function($item, $property, $value) { |
|
631 | 631 | return $item[$property] == $value[0]; |
632 | 632 | }, |
633 | 633 | ], |
634 | 634 | |
635 | 635 | [ |
636 | 636 | 'tokens' => ['===', 'eq'], |
637 | - 'closure' => function ($item, $property, $value) { |
|
637 | + 'closure' => function($item, $property, $value) { |
|
638 | 638 | return $item[$property] === $value[0]; |
639 | 639 | }, |
640 | 640 | ], |
641 | 641 | |
642 | 642 | [ |
643 | 643 | 'tokens' => ['!='], |
644 | - 'closure' => function ($item, $property, $value) { |
|
644 | + 'closure' => function($item, $property, $value) { |
|
645 | 645 | return $item[$property] != $value[0]; |
646 | 646 | }, |
647 | 647 | ], |
648 | 648 | |
649 | 649 | [ |
650 | 650 | 'tokens' => ['!==', 'ne'], |
651 | - 'closure' => function ($item, $property, $value) { |
|
651 | + 'closure' => function($item, $property, $value) { |
|
652 | 652 | return $item[$property] !== $value[0]; |
653 | 653 | }, |
654 | 654 | ], |
655 | 655 | |
656 | 656 | [ |
657 | 657 | 'tokens' => ['<', 'lt'], |
658 | - 'closure' => function ($item, $property, $value) { |
|
658 | + 'closure' => function($item, $property, $value) { |
|
659 | 659 | return $item[$property] < $value[0]; |
660 | 660 | }, |
661 | 661 | ], |
662 | 662 | |
663 | 663 | [ |
664 | 664 | 'tokens' => ['>', 'gt'], |
665 | - 'closure' => function ($item, $property, $value) { |
|
665 | + 'closure' => function($item, $property, $value) { |
|
666 | 666 | return $item[$property] > $value[0]; |
667 | 667 | }, |
668 | 668 | ], |
669 | 669 | |
670 | 670 | [ |
671 | 671 | 'tokens' => ['<=', 'lte'], |
672 | - 'closure' => function ($item, $property, $value) { |
|
672 | + 'closure' => function($item, $property, $value) { |
|
673 | 673 | return $item[$property] <= $value[0]; |
674 | 674 | }, |
675 | 675 | ], |
676 | 676 | |
677 | 677 | [ |
678 | 678 | 'tokens' => ['>=', 'gte'], |
679 | - 'closure' => function ($item, $property, $value) { |
|
679 | + 'closure' => function($item, $property, $value) { |
|
680 | 680 | return $item[$property] >= $value[0]; |
681 | 681 | }, |
682 | 682 | ], |
683 | 683 | |
684 | 684 | [ |
685 | 685 | 'tokens' => ['in', 'contains'], |
686 | - 'closure' => function ($item, $property, $value) { |
|
686 | + 'closure' => function($item, $property, $value) { |
|
687 | 687 | return \in_array($item[$property], (array) $value, true); |
688 | 688 | }, |
689 | 689 | ], |
690 | 690 | |
691 | 691 | [ |
692 | 692 | 'tokens' => ['not-in', 'not-contains'], |
693 | - 'closure' => function ($item, $property, $value) { |
|
693 | + 'closure' => function($item, $property, $value) { |
|
694 | 694 | return !\in_array($item[$property], (array) $value, true); |
695 | 695 | }, |
696 | 696 | ], |
697 | 697 | |
698 | 698 | [ |
699 | 699 | 'tokens' => ['between'], |
700 | - 'closure' => function ($item, $property, $value) { |
|
700 | + 'closure' => function($item, $property, $value) { |
|
701 | 701 | return ($item[$property] >= $value[0] && $item[$property] <= $value[1]); |
702 | 702 | }, |
703 | 703 | ], |
704 | 704 | |
705 | 705 | [ |
706 | 706 | 'tokens' => ['not-between'], |
707 | - 'closure' => function ($item, $property, $value) { |
|
707 | + 'closure' => function($item, $property, $value) { |
|
708 | 708 | return ($item[$property] < $value[0] || $item[$property] > $value[1]); |
709 | 709 | }, |
710 | 710 | ], |
@@ -714,7 +714,7 @@ discard block |
||
714 | 714 | // Search for operation. |
715 | 715 | if (\in_array($operation, $filter['tokens'])) { |
716 | 716 | $closure = \Closure::fromCallable( |
717 | - function ($item, $key) use ($filter, $property, $value) { |
|
717 | + function($item, $key) use ($filter, $property, $value) { |
|
718 | 718 | $item = (array) $item; |
719 | 719 | |
720 | 720 | if (!array_key_exists($property, $item)) { |
@@ -734,7 +734,7 @@ discard block |
||
734 | 734 | // Dummy closure if nothing is provided. |
735 | 735 | if (empty($closure)) { |
736 | 736 | $closure = \Closure::fromCallable( |
737 | - function ($value, $key) { |
|
737 | + function($value, $key) { |
|
738 | 738 | return true; |
739 | 739 | } |
740 | 740 | ); |