diff --git a/lib/internal/Magento/Framework/Archive.php b/lib/internal/Magento/Framework/Archive.php index fac86778ee26e..b6065e839244f 100644 --- a/lib/internal/Magento/Framework/Archive.php +++ b/lib/internal/Magento/Framework/Archive.php @@ -11,8 +11,6 @@ /** * Class to work with archives - * - * @author Magento Core Team */ class Archive { diff --git a/lib/internal/Magento/Framework/Archive/AbstractArchive.php b/lib/internal/Magento/Framework/Archive/AbstractArchive.php index 8cdb15f037884..30ddd3ea8553e 100644 --- a/lib/internal/Magento/Framework/Archive/AbstractArchive.php +++ b/lib/internal/Magento/Framework/Archive/AbstractArchive.php @@ -6,8 +6,6 @@ /** * Class to work with archives - * - * @author Magento Core Team */ namespace Magento\Framework\Archive; diff --git a/lib/internal/Magento/Framework/Archive/ArchiveInterface.php b/lib/internal/Magento/Framework/Archive/ArchiveInterface.php index c6e85b558b24e..d94db06fd2702 100644 --- a/lib/internal/Magento/Framework/Archive/ArchiveInterface.php +++ b/lib/internal/Magento/Framework/Archive/ArchiveInterface.php @@ -6,8 +6,6 @@ /** * Interface for work with archives - * - * @author Magento Core Team */ namespace Magento\Framework\Archive; diff --git a/lib/internal/Magento/Framework/Archive/Bz.php b/lib/internal/Magento/Framework/Archive/Bz.php index 9e4a319240ba4..26b447ba9ea57 100644 --- a/lib/internal/Magento/Framework/Archive/Bz.php +++ b/lib/internal/Magento/Framework/Archive/Bz.php @@ -6,8 +6,6 @@ /** * Class to work with bzip2 archives - * - * @author Magento Core Team */ namespace Magento\Framework\Archive; diff --git a/lib/internal/Magento/Framework/Archive/Gz.php b/lib/internal/Magento/Framework/Archive/Gz.php index c80821c537165..5e1f070614c1c 100644 --- a/lib/internal/Magento/Framework/Archive/Gz.php +++ b/lib/internal/Magento/Framework/Archive/Gz.php @@ -6,8 +6,6 @@ /** * Class to work with gz archives - * - * @author Magento Core Team */ namespace Magento\Framework\Archive; diff --git a/lib/internal/Magento/Framework/Archive/Tar.php b/lib/internal/Magento/Framework/Archive/Tar.php index ba875593af1d4..edb0ea18a16d7 100644 --- a/lib/internal/Magento/Framework/Archive/Tar.php +++ b/lib/internal/Magento/Framework/Archive/Tar.php @@ -10,8 +10,6 @@ /** * Class to work with tar archives - * - * @author Magento Core Team */ class Tar extends \Magento\Framework\Archive\AbstractArchive implements \Magento\Framework\Archive\ArchiveInterface { diff --git a/lib/internal/Magento/Framework/Backup/Archive/Tar.php b/lib/internal/Magento/Framework/Backup/Archive/Tar.php index 4ac40c584ee20..61e768c4bd1f1 100644 --- a/lib/internal/Magento/Framework/Backup/Archive/Tar.php +++ b/lib/internal/Magento/Framework/Backup/Archive/Tar.php @@ -6,8 +6,6 @@ /** * Extended version of \Magento\Framework\Archive\Tar that supports filtering - * - * @author Magento Core Team */ namespace Magento\Framework\Backup\Archive; diff --git a/lib/internal/Magento/Framework/Backup/BackupInterface.php b/lib/internal/Magento/Framework/Backup/BackupInterface.php index e16eef51d25a9..4ddfff96e4964 100644 --- a/lib/internal/Magento/Framework/Backup/BackupInterface.php +++ b/lib/internal/Magento/Framework/Backup/BackupInterface.php @@ -6,8 +6,6 @@ /** * Interface for work with archives - * - * @author Magento Core Team */ namespace Magento\Framework\Backup; @@ -15,6 +13,7 @@ * @api * * @deprecated 101.0.7 Backups should be done using other means. + * @see Nothing * @since 100.0.2 */ interface BackupInterface diff --git a/lib/internal/Magento/Framework/Backup/Db.php b/lib/internal/Magento/Framework/Backup/Db.php index b7e0edf7c4f47..7559373e8998e 100644 --- a/lib/internal/Magento/Framework/Backup/Db.php +++ b/lib/internal/Magento/Framework/Backup/Db.php @@ -12,7 +12,6 @@ /** * Class to work with database backups * - * @author Magento Core Team * @api * @since 100.0.2 */ diff --git a/lib/internal/Magento/Framework/Backup/Filesystem.php b/lib/internal/Magento/Framework/Backup/Filesystem.php index 8759e3c5a466b..ca875949e23d7 100644 --- a/lib/internal/Magento/Framework/Backup/Filesystem.php +++ b/lib/internal/Magento/Framework/Backup/Filesystem.php @@ -1,4 +1,5 @@ */ class Filesystem extends AbstractBackup { @@ -39,15 +38,11 @@ class Filesystem extends AbstractBackup protected $_useFtp = false; /** - * Ftp host - * * @var string */ protected $_ftpHost; /** - * Ftp username - * * @var string */ protected $_ftpUser; @@ -125,6 +120,7 @@ public function create() new Phrase('Not enough permissions to read files for backup') ); } + $this->validateAvailableDiscSpace($this->getBackupsDir(), $filesInfo['size']); $tarTmpPath = $this->_getTarTmpPath(); @@ -160,8 +156,9 @@ public function create() * * @param string $backupDir * @param int $size + * * @return void - * @throws LocalizedException + * @throws NotEnoughFreeSpace */ public function validateAvailableDiscSpace($backupDir, $size) { @@ -184,6 +181,7 @@ public function validateAvailableDiscSpace($backupDir, $size) * @param string $username * @param string $password * @param string $path + * * @return $this */ public function setUseFtp($host, $username, $password, $path) @@ -212,6 +210,7 @@ public function getType() * Add path that should be ignoring when creating or rolling back backup * * @param string|array $paths + * * @return $this */ public function addIgnorePaths($paths) @@ -243,6 +242,7 @@ public function getIgnorePaths() * Set directory where backups saved and add it to ignore paths * * @param string $backupsDir + * * @return $this * * @see AbstractBackup::setBackupsDir() @@ -279,7 +279,7 @@ public function getFtpConnectString() * Check backups directory existence and whether it's writeable * * @return void - * @throws LocalizedException + * @throws NotEnoughPermissions */ protected function _checkBackupsDir() { @@ -321,6 +321,7 @@ protected function _getTarTmpPath() * * @return Ftp * @deprecated 101.0.0 + * @see Nothing */ protected function getRollBackFtp() { @@ -339,6 +340,7 @@ protected function getRollBackFtp() * * @return Fs * @deprecated 101.0.0 + * @see Nothing */ protected function getRollBackFs() { diff --git a/lib/internal/Magento/Framework/Backup/Filesystem/Helper.php b/lib/internal/Magento/Framework/Backup/Filesystem/Helper.php index fb33b4639aad8..9a70503b7d7bb 100644 --- a/lib/internal/Magento/Framework/Backup/Filesystem/Helper.php +++ b/lib/internal/Magento/Framework/Backup/Filesystem/Helper.php @@ -11,8 +11,6 @@ /** * Filesystem helper - * - * @author Magento Core Team */ class Helper { @@ -22,7 +20,7 @@ class Helper * * @const int */ - const INFO_WRITABLE = 1; + public const INFO_WRITABLE = 1; /** * Constant can be used in getInfo() function as second parameter. @@ -30,7 +28,7 @@ class Helper * * @const int */ - const INFO_READABLE = 2; + public const INFO_READABLE = 2; /** * Constant can be used in getInfo() function as second parameter. @@ -38,7 +36,7 @@ class Helper * * @const int */ - const INFO_SIZE = 4; + public const INFO_SIZE = 4; /** * Constant can be used in getInfo() function as second parameter. @@ -46,7 +44,7 @@ class Helper * * @const int */ - const INFO_ALL = 7; + public const INFO_ALL = 7; /** * Recursively delete $path @@ -54,6 +52,7 @@ class Helper * @param string $path * @param array $skipPaths * @param bool $removeRoot + * * @return void * @throws \Magento\Framework\Exception\LocalizedException * @SuppressWarnings(PHPMD.ShortMethodName) @@ -82,6 +81,7 @@ public function rm($path, $skipPaths = [], $removeRoot = false) * @param string $path * @param int $infoOptions * @param array $skipFiles + * * @return array * @SuppressWarnings(PHPMD.CyclomaticComplexity) * @SuppressWarnings(PHPMD.NPathComplexity) diff --git a/lib/internal/Magento/Framework/Backup/Filesystem/Iterator/File.php b/lib/internal/Magento/Framework/Backup/Filesystem/Iterator/File.php index 1409fba14c5f3..36d7a00a12e69 100644 --- a/lib/internal/Magento/Framework/Backup/Filesystem/Iterator/File.php +++ b/lib/internal/Magento/Framework/Backup/Filesystem/Iterator/File.php @@ -7,8 +7,6 @@ /** * File lines iterator - * - * @author Magento Core Team */ class File extends \SplFileObject { diff --git a/lib/internal/Magento/Framework/Backup/Filesystem/Iterator/Filter.php b/lib/internal/Magento/Framework/Backup/Filesystem/Iterator/Filter.php index 845a1a6a56bbe..01420d9275753 100644 --- a/lib/internal/Magento/Framework/Backup/Filesystem/Iterator/Filter.php +++ b/lib/internal/Magento/Framework/Backup/Filesystem/Iterator/Filter.php @@ -6,8 +6,6 @@ /** * Filter \Iterator - * - * @author Magento Core Team */ namespace Magento\Framework\Backup\Filesystem\Iterator; diff --git a/lib/internal/Magento/Framework/Backup/Filesystem/Rollback/Fs.php b/lib/internal/Magento/Framework/Backup/Filesystem/Rollback/Fs.php index b8eca279fdf22..c6447a57c4179 100644 --- a/lib/internal/Magento/Framework/Backup/Filesystem/Rollback/Fs.php +++ b/lib/internal/Magento/Framework/Backup/Filesystem/Rollback/Fs.php @@ -20,8 +20,6 @@ /** * Rollback worker for rolling back via local filesystem - * - * @author Magento Core Team */ class Fs extends AbstractRollback { @@ -98,6 +96,7 @@ public function run() * * @return Helper * @deprecated 101.0.0 + * @see Nothing */ private function getFsHelper() { diff --git a/lib/internal/Magento/Framework/Backup/Media.php b/lib/internal/Magento/Framework/Backup/Media.php index 50bbc72869088..e0cdfd2628e59 100644 --- a/lib/internal/Magento/Framework/Backup/Media.php +++ b/lib/internal/Magento/Framework/Backup/Media.php @@ -7,8 +7,6 @@ /** * Class to work media folder and database backups - * - * @author Magento Core Team */ class Media extends Snapshot { diff --git a/lib/internal/Magento/Framework/Backup/Nomedia.php b/lib/internal/Magento/Framework/Backup/Nomedia.php index a1361331771de..70b3dfa9e9675 100644 --- a/lib/internal/Magento/Framework/Backup/Nomedia.php +++ b/lib/internal/Magento/Framework/Backup/Nomedia.php @@ -7,8 +7,6 @@ /** * Class to work system backup that excludes media folder - * - * @author Magento Core Team */ class Nomedia extends \Magento\Framework\Backup\Media { diff --git a/lib/internal/Magento/Framework/Backup/Snapshot.php b/lib/internal/Magento/Framework/Backup/Snapshot.php index 1d2059eaacd3d..ddc0d0ddba38e 100644 --- a/lib/internal/Magento/Framework/Backup/Snapshot.php +++ b/lib/internal/Magento/Framework/Backup/Snapshot.php @@ -6,8 +6,6 @@ /** * Class to work with full filesystem and database backups - * - * @author Magento Core Team */ namespace Magento\Framework\Backup; diff --git a/lib/internal/Magento/Framework/DB/Statement/Parameter.php b/lib/internal/Magento/Framework/DB/Statement/Parameter.php index fb7dd5e47c57e..48f5d9bfb569a 100644 --- a/lib/internal/Magento/Framework/DB/Statement/Parameter.php +++ b/lib/internal/Magento/Framework/DB/Statement/Parameter.php @@ -1,8 +1,10 @@ */ class Parameter { @@ -74,6 +74,7 @@ public function __construct($value) * Sets parameter value. * * @param mixed $value + * * @return $this */ public function setValue($value) @@ -100,6 +101,7 @@ public function getValue() * as a BLOB value. * * @param bool $isBlob + * * @return $this */ public function setIsBlob($isBlob) @@ -126,6 +128,7 @@ public function getIsBlob() * Sets data type option to be used during binding parameter value. * * @param mixed $dataType + * * @return $this */ public function setDataType($dataType) @@ -148,6 +151,7 @@ public function getDataType() * Sets length option to be used during binding parameter value. * * @param mixed $length + * * @return $this */ public function setLength($length) @@ -170,6 +174,7 @@ public function getLength() * Sets specific driver options to be used during binding parameter value. * * @param mixed $driverOptions + * * @return $this */ public function setDriverOptions($driverOptions) @@ -190,9 +195,11 @@ public function getDriverOptions() /** * Sets additional information for concrete DB adapter. + * * Set there any data you want to pass along with query parameter. * * @param \Magento\Framework\DataObject $additional + * * @return $this */ public function setAdditional($additional) diff --git a/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php b/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php index 7a5b51574ac41..77d39f414e1ae 100644 --- a/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php +++ b/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php @@ -9,8 +9,6 @@ /** * Mysql DB Statement - * - * @author Magento Core Team */ class Mysql extends \Zend_Db_Statement_Pdo { diff --git a/lib/internal/Magento/Framework/Data/Form/AbstractForm.php b/lib/internal/Magento/Framework/Data/Form/AbstractForm.php index 4a082d71ddd4a..8385827b7f32a 100644 --- a/lib/internal/Magento/Framework/Data/Form/AbstractForm.php +++ b/lib/internal/Magento/Framework/Data/Form/AbstractForm.php @@ -14,8 +14,6 @@ /** * Abstract class for form, column and fieldset - * - * @author Magento Core Team */ class AbstractForm extends \Magento\Framework\DataObject {