File tree 1 file changed +5
-5
lines changed
src/Illuminate/Collections
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1129,13 +1129,13 @@ public function before($value, $strict = false)
1129
1129
return null ;
1130
1130
}
1131
1131
1132
- $ position = $ this ->keys ()->search ($ key );
1132
+ $ position = ( $ keys = $ this ->keys () )->search ($ key );
1133
1133
1134
1134
if ($ position === 0 ) {
1135
1135
return null ;
1136
1136
}
1137
1137
1138
- return $ this ->get ($ this -> keys () ->get ($ position - 1 ));
1138
+ return $ this ->get ($ keys ->get ($ position - 1 ));
1139
1139
}
1140
1140
1141
1141
/**
@@ -1153,13 +1153,13 @@ public function after($value, $strict = false)
1153
1153
return null ;
1154
1154
}
1155
1155
1156
- $ position = $ this ->keys ()->search ($ key );
1156
+ $ position = ( $ keys = $ this ->keys () )->search ($ key );
1157
1157
1158
- if ($ position === $ this -> keys () ->count () - 1 ) {
1158
+ if ($ position === $ keys ->count () - 1 ) {
1159
1159
return null ;
1160
1160
}
1161
1161
1162
- return $ this ->get ($ this -> keys () ->get ($ position + 1 ));
1162
+ return $ this ->get ($ keys ->get ($ position + 1 ));
1163
1163
}
1164
1164
1165
1165
/**
You can’t perform that action at this time.
0 commit comments