@@ -36,19 +36,19 @@ public function testPaginationIsCached()
3636
3737 public function testPaginationReturnsCorrectLinks ()
3838 {
39- if (preg_match ( " /^([8|9]\.)/ " , app ()-> version () )) {
39+ if ($ this -> appVersionEightAndUp ( )) {
4040 $ page1ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">1</span> ' ;
4141 $ page2ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">2</span> ' ;
4242 $ page24ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">24</span> ' ;
4343 }
4444
45- if (preg_match ( " /^((5\.[6-8])|(6\.)|(7\.))/ " , app ()-> version () )) {
45+ if ($ this -> appVersionFiveBetweenSeven ( )) {
4646 $ page1ActiveLink = '<li class="page-item active" aria-current="page"><span class="page-link">1</span></li> ' ;
4747 $ page2ActiveLink = '<li class="page-item active" aria-current="page"><span class="page-link">2</span></li> ' ;
4848 $ page24ActiveLink = '<li class="page-item active" aria-current="page"><span class="page-link">24</span></li> ' ;
4949 }
5050
51- if (preg_match ( " /^5\.[4-5]/ " , app ()-> version () )) {
51+ if ($ this -> appVersionOld ( )) {
5252 $ page1ActiveLink = '<li class="active"><span>1</span></li> ' ;
5353 $ page2ActiveLink = '<li class="active"><span>2</span></li> ' ;
5454 $ page24ActiveLink = '<li class="active"><span>24</span></li> ' ;
@@ -71,19 +71,19 @@ public function testPaginationReturnsCorrectLinks()
7171
7272 public function testPaginationWithOptionsReturnsCorrectLinks ()
7373 {
74- if (preg_match ( " /^([8|9]\.)/ " , app ()-> version () )) {
74+ if ($ this -> appVersionEightAndUp ( )) {
7575 $ page1ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">1</span> ' ;
7676 $ page2ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">2</span> ' ;
7777 $ page24ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">24</span> ' ;
7878 }
7979
80- if (preg_match ( " /^((5\.[6-8])|(6\.)|(7\.))/ " , app ()-> version () )) {
80+ if ($ this -> appVersionFiveBetweenSeven ( )) {
8181 $ page1ActiveLink = '<li class="page-item active" aria-current="page"><span class="page-link">1</span></li> ' ;
8282 $ page2ActiveLink = '<li class="page-item active" aria-current="page"><span class="page-link">2</span></li> ' ;
8383 $ page24ActiveLink = '<li class="page-item active" aria-current="page"><span class="page-link">24</span></li> ' ;
8484 }
8585
86- if (preg_match ( " /^5\.[4-5]/ " , app ()-> version () )) {
86+ if ($ this -> appVersionOld ( )) {
8787 $ page1ActiveLink = '<li class="active"><span>1</span></li> ' ;
8888 $ page2ActiveLink = '<li class="active"><span>2</span></li> ' ;
8989 $ page24ActiveLink = '<li class="active"><span>24</span></li> ' ;
@@ -106,19 +106,19 @@ public function testPaginationWithOptionsReturnsCorrectLinks()
106106
107107 public function testPaginationWithCustomOptionsReturnsCorrectLinks ()
108108 {
109- if (preg_match ( " /^([8|9]\.)/ " , app ()-> version () )) {
109+ if ($ this -> appVersionEightAndUp ( )) {
110110 $ page1ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">1</span> ' ;
111111 $ page2ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">2</span> ' ;
112112 $ page24ActiveLink = '<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">24</span> ' ;
113113 }
114114
115- if (preg_match ( " /^((5\.[6-8])|(6\.)|(7\.))/ " , app ()-> version () )) {
115+ if ($ this -> appVersionFiveBetweenSeven ( )) {
116116 $ page1ActiveLink = '<li class="page-item active" aria-current="page"><span class="page-link">1</span></li> ' ;
117117 $ page2ActiveLink = '<li class="page-item active" aria-current="page"><span class="page-link">2</span></li> ' ;
118118 $ page24ActiveLink = '<li class="page-item active" aria-current="page"><span class="page-link">24</span></li> ' ;
119119 }
120120
121- if (preg_match ( " /^5\.[4-5]/ " , app ()-> version () )) {
121+ if ($ this -> appVersionOld ( )) {
122122 $ page1ActiveLink = '<li class="active"><span>1</span></li> ' ;
123123 $ page2ActiveLink = '<li class="active"><span>2</span></li> ' ;
124124 $ page24ActiveLink = '<li class="active"><span>24</span></li> ' ;
0 commit comments