File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212use Rector \CodeQuality \Rector \BooleanAnd \SimplifyEmptyArrayCheckRector ;
1313use Rector \CodeQuality \Rector \Class_ \CompleteDynamicPropertiesRector ;
1414use Rector \CodeQuality \Rector \Expression \InlineIfToExplicitIfRector ;
15- use Rector \CodeQuality \Rector \For_ \ForToForeachRector ;
1615use Rector \CodeQuality \Rector \Foreach_ \UnusedForeachValueToArrayKeysRector ;
17- use Rector \CodeQuality \Rector \FuncCall \AddPregQuoteDelimiterRector ;
1816use Rector \CodeQuality \Rector \FuncCall \ChangeArrayPushToArrayAssignRector ;
1917use Rector \CodeQuality \Rector \FuncCall \SimplifyRegexPatternRector ;
2018use Rector \CodeQuality \Rector \FuncCall \SimplifyStrposLowerRector ;
125123 $ rectorConfig ->rule (RemoveAlwaysElseRector::class);
126124 $ rectorConfig ->rule (PassStrictParameterToFunctionParameterRector::class);
127125 $ rectorConfig ->rule (CountArrayToEmptyArrayComparisonRector::class);
128- $ rectorConfig ->rule (ForToForeachRector::class);
129126 $ rectorConfig ->rule (ChangeNestedForeachIfsToEarlyContinueRector::class);
130127 $ rectorConfig ->rule (ChangeIfElseValueAssignToEarlyReturnRector::class);
131128 $ rectorConfig ->rule (SimplifyStrposLowerRector::class);
140137 $ rectorConfig ->rule (UnnecessaryTernaryExpressionRector::class);
141138 $ rectorConfig ->rule (RemoveErrorSuppressInTryCatchStmtsRector::class);
142139 $ rectorConfig ->rule (RemoveVarTagFromClassConstantRector::class);
143- $ rectorConfig ->rule (AddPregQuoteDelimiterRector::class);
144140 $ rectorConfig ->rule (SimplifyRegexPatternRector::class);
145141 $ rectorConfig ->rule (FuncGetArgsToVariadicParamRector::class);
146142 $ rectorConfig ->rule (MakeInheritedMethodVisibilitySameAsParentRector::class);
Original file line number Diff line number Diff line change @@ -744,11 +744,7 @@ function is_windows(?bool $mock = null): bool
744744 $ mocked = $ mock ;
745745 }
746746
747- if (isset ($ mocked )) {
748- return $ mocked ;
749- }
750-
751- return DIRECTORY_SEPARATOR === '\\' ;
747+ return $ mocked ?? DIRECTORY_SEPARATOR === '\\' ;
752748 }
753749}
754750
Original file line number Diff line number Diff line change @@ -800,11 +800,7 @@ public function __get(string $name)
800800 return parent ::__get ($ name );
801801 }
802802
803- if (isset ($ this ->builder ()->{$ name })) {
804- return $ this ->builder ()->{$ name };
805- }
806-
807- return null ;
803+ return $ this ->builder ()->{$ name } ?? null ;
808804 }
809805
810806 /**
Original file line number Diff line number Diff line change @@ -1519,8 +1519,7 @@ public function testAddTextColumnWithConstraint()
15191519
15201520 $ this ->assertTrue ($ this ->db ->fieldExists ('text_with_constraint ' , 'user ' ));
15211521
1522- // SQLSRV requires dropping default constraint before dropping column
1523- $ result = $ this ->forge ->dropColumn ('user ' , 'text_with_constraint ' );
1522+ $ this ->forge ->dropColumn ('user ' , 'text_with_constraint ' );
15241523
15251524 $ this ->db ->resetDataCache ();
15261525
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ public function testWithHeadersWithEmptyHeaders()
293293 }
294294
295295 $ response = new RedirectResponse (new App ());
296- $ response = $ response ->withHeaders ();
296+ $ response ->withHeaders ();
297297
298298 $ this ->assertEmpty ($ baseResponse ->headers ());
299299 }
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ public function testLanguageFileLoadingReturns()
179179 $ this ->assertNotContains ('More ' , $ this ->lang ->loaded ());
180180 $ this ->assertCount (3 , $ result );
181181
182- $ result = $ this ->lang ->loadem ('More ' , 'en ' );
182+ $ this ->lang ->loadem ('More ' , 'en ' );
183183 $ this ->assertContains ('More ' , $ this ->lang ->loaded ());
184184 $ this ->assertCount (1 , $ this ->lang ->loaded ());
185185 }
You can’t perform that action at this time.
0 commit comments