Skip to content

Commit 4c48047

Browse files
committed
CS fixes long_to_shorthand_operator and no_null_property_initialization
1 parent 7a4590f commit 4c48047

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/Configurator/AddLinesConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private function getUnPatchedContents(string $file, $value): string
221221
if (false !== strpos($fileContents, "\n".$value)) {
222222
$value = "\n".$value;
223223
} elseif (false !== strpos($fileContents, $value."\n")) {
224-
$value = $value."\n";
224+
$value .= "\n";
225225
}
226226

227227
$position = strpos($fileContents, $value);

src/Configurator/DockerComposeConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DockerComposeConfigurator extends AbstractConfigurator
3131
{
3232
private $filesystem;
3333

34-
public static $configureDockerRecipes = null;
34+
public static $configureDockerRecipes;
3535

3636
public function __construct(Composer $composer, IOInterface $io, Options $options)
3737
{

src/InformationOperation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
class InformationOperation implements OperationInterface
1212
{
1313
private $package;
14-
private $recipeRef = null;
15-
private $version = null;
14+
private $recipeRef;
15+
private $version;
1616

1717
public function __construct(PackageInterface $package)
1818
{

src/Update/DiffHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function removeFilesFromPatch(string $patch, array $files, array &
3737

3838
// valid patches end with a blank line
3939
if ($patch && "\n" !== substr($patch, \strlen($patch) - 1, 1)) {
40-
$patch = $patch."\n";
40+
$patch .= "\n";
4141
}
4242

4343
return $patch;

0 commit comments

Comments
 (0)