Skip to content

Commit

Permalink
No null property initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasReker authored and Quetzacoalt91 committed Feb 1, 2019
1 parent ecd421f commit c460269
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
22 changes: 11 additions & 11 deletions AdminSelfUpgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ class AdminSelfUpgrade extends AdminController
/**
* Initialized in initPath().
*/
public $autoupgradePath = null;
public $downloadPath = null;
public $backupPath = null;
public $latestPath = null;
public $tmpPath = null;
public $autoupgradePath;
public $downloadPath;
public $backupPath;
public $latestPath;
public $tmpPath;

/**
* autoupgradeDir.
Expand All @@ -71,12 +71,12 @@ class AdminSelfUpgrade extends AdminController
public $prodRootDir = '';
public $adminDir = '';

public $keepImages = null;
public $updateDefaultTheme = null;
public $changeToDefaultTheme = null;
public $keepMails = null;
public $manualMode = null;
public $deactivateCustomModule = null;
public $keepImages;
public $updateDefaultTheme;
public $changeToDefaultTheme;
public $keepMails;
public $manualMode;
public $deactivateCustomModule;

public static $classes14 = array('Cache', 'CacheFS', 'CarrierModule', 'Db', 'FrontController', 'Helper', 'ImportModule',
'MCached', 'Module', 'ModuleGraph', 'ModuleGraphEngine', 'ModuleGrid', 'ModuleGridEngine',
Expand Down
2 changes: 1 addition & 1 deletion classes/Log/LegacyLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class LegacyLogger extends Logger
/**
* @var resource|null|false File descriptor of the log file
*/
protected $fd = null;
protected $fd;

public function __construct($fileName = null)
{
Expand Down
2 changes: 1 addition & 1 deletion classes/PrestashopConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
class PrestashopConfiguration
{
// Variables used for cache
private $moduleVersion = null;
private $moduleVersion;
private $allowed_array = array();

// Variables from main class
Expand Down
22 changes: 11 additions & 11 deletions classes/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
class State
{
private $install_version; // Destination version of PrestaShop
private $backupName = null;
private $backupFilesFilename = null;
private $backupDbFilename = null;
private $restoreName = null;
private $restoreFilesFilename = null;
private $backupName;
private $backupFilesFilename;
private $backupDbFilename;
private $restoreName;
private $restoreFilesFilename;
private $restoreDbFilenames = array();

// STEP BackupDb
private $backup_lines = null;
private $backup_loop_limit = null;
private $backup_table = null;
private $backup_lines;
private $backup_loop_limit;
private $backup_table;

/**
* Int during BackupDb, allowing the script to increent the number of different file names
Expand All @@ -58,15 +58,15 @@ class State
*
* @var array|null File containing sample files to be deleted
*/
private $removeList = null;
private $removeList;
/**
* @var string|null File containing files to be upgraded
*/
private $fileToUpgrade = null;
private $fileToUpgrade;
/**
* @var string|null File containing modules to be upgraded
*/
private $modulesToUpgrade = null;
private $modulesToUpgrade;

/**
* installedLanguagesIso is an array of iso_code of each installed languages.
Expand Down
2 changes: 1 addition & 1 deletion classes/UpgradeTools/ModuleAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ModuleAdapter
private $zipAction;

// Cached instance
private $moduleDataUpdater = null;
private $moduleDataUpdater;

public function __construct($db, $translator, $modulesPath, $tempPath, $upgradeVersion, ZipAction $zipAction)
{
Expand Down
2 changes: 1 addition & 1 deletion classes/Upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Upgrader

public $version_name;
public $version_num;
public $version_is_modified = null;
public $version_is_modified;
/**
* @var string contains hte url where to download the file
*/
Expand Down

0 comments on commit c460269

Please sign in to comment.