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 * @var string Store the initial working directory at startup time
*/ */
private $initialWorkingDirectory = ''; private $initialWorkingDirectory;
public function __construct() public function __construct()
{ {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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