File tree 1 file changed +3
-14
lines changed
Filter options
src/Symfony/Component/Yaml 1 file changed +3
-14
lines changed
Original file line number Diff line number Diff line change @@ -710,10 +710,7 @@ private function isNextLineIndented()
710
710
return false ;
711
711
}
712
712
713
- $ ret = false ;
714
- if ($ this ->getCurrentLineIndentation () > $ currentIndentation ) {
715
- $ ret = true ;
716
- }
713
+ $ ret = $ this ->getCurrentLineIndentation () > $ currentIndentation ;
717
714
718
715
$ this ->moveToPreviousLine ();
719
716
@@ -814,14 +811,7 @@ private function isNextLineUnIndentedCollection()
814
811
return false ;
815
812
}
816
813
817
- $ ret = false ;
818
- if (
819
- $ this ->getCurrentLineIndentation () == $ currentIndentation
820
- &&
821
- $ this ->isStringUnIndentedCollectionItem ()
822
- ) {
823
- $ ret = true ;
824
- }
814
+ $ ret = $ this ->getCurrentLineIndentation () === $ currentIndentation && $ this ->isStringUnIndentedCollectionItem ();
825
815
826
816
$ this ->moveToPreviousLine ();
827
817
@@ -863,8 +853,7 @@ private function isBlockScalarHeader()
863
853
*/
864
854
public static function preg_match ($ pattern , $ subject , &$ matches = null , $ flags = 0 , $ offset = 0 )
865
855
{
866
- $ ret = preg_match ($ pattern , $ subject , $ matches , $ flags , $ offset );
867
- if ($ ret === false ) {
856
+ if (false === $ ret = preg_match ($ pattern , $ subject , $ matches , $ flags , $ offset )) {
868
857
switch (preg_last_error ()) {
869
858
case PREG_INTERNAL_ERROR :
870
859
$ error = 'Internal PCRE error. ' ;
You can’t perform that action at this time.
0 commit comments