1
0
Fork 0

Removed unnecessary property initialization or declaration

pull/9204/head
Simon Berger 2020-09-11 21:58:48 +02:00
parent 6b3b51e299
commit cda6e8bea6
10 changed files with 3 additions and 10 deletions

View File

@ -66,7 +66,7 @@ class Application extends BaseApplication
/**
* @var string Store the initial working directory at startup time
*/
private $initialWorkingDirectory = '';
private $initialWorkingDirectory;
public function __construct()
{

View File

@ -30,7 +30,7 @@ class DownloadManager
/** @var bool */
private $preferDist = false;
/** @var bool */
private $preferSource = false;
private $preferSource;
/** @var array<string, string> */
private $packagePreferences = array();
/** @var Filesystem */

View File

@ -145,7 +145,7 @@ class Installer
* @var array|null
*/
protected $updateMirrors = false;
protected $updateAllowList = null;
protected $updateAllowList;
protected $updateAllowTransitiveDependencies = Request::UPDATE_ONLY_LISTED;
/**

View File

@ -28,7 +28,6 @@ abstract class BitbucketDriver extends VcsDriver
protected $rootIdentifier;
protected $tags;
protected $branches;
protected $infoCache = array();
protected $branchesUrl = '';
protected $tagsUrl = '';
protected $homeUrl = '';

View File

@ -28,7 +28,6 @@ class FossilDriver extends VcsDriver
protected $rootIdentifier;
protected $repoFile;
protected $checkoutDir;
protected $infoCache = array();
/**
* {@inheritDoc}

View File

@ -30,7 +30,6 @@ class GitDriver extends VcsDriver
protected $branches;
protected $rootIdentifier;
protected $repoDir;
protected $infoCache = array();
/**
* {@inheritDoc}

View File

@ -33,7 +33,6 @@ class GitHubDriver extends VcsDriver
protected $rootIdentifier;
protected $repoData;
protected $hasIssues;
protected $infoCache = array();
protected $isPrivate = false;
private $isArchived = false;
private $fundingInfo;

View File

@ -28,7 +28,6 @@ class HgDriver extends VcsDriver
protected $branches;
protected $rootIdentifier;
protected $repoDir;
protected $infoCache = array();
/**
* {@inheritDoc}

View File

@ -36,7 +36,6 @@ class SvnDriver extends VcsDriver
protected $tags;
protected $branches;
protected $rootIdentifier;
protected $infoCache = array();
protected $trunkPath = 'trunk';
protected $branchesPath = 'branches';

View File

@ -60,7 +60,6 @@ class Event extends BaseEvent
$this->composer = $composer;
$this->io = $io;
$this->devMode = $devMode;
$this->originatingEvent = null;
}
/**