Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 31 changed files with 121 additions and 115 deletions.
3 changes: 1 addition & 2 deletions src/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function hasPcreUnicodeSupport()

/**
* @param array|Traversable $options
* @return AbstractFilter
* @return self
* @throws Exception\InvalidArgumentException
*/
public function setOptions($options)
Expand Down Expand Up @@ -86,7 +86,6 @@ public function __invoke($value)
}

/**
*
* @param mixed $options
* @return bool
*/
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractUnicode.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class AbstractUnicode extends AbstractFilter
* Set the input encoding for the given string
*
* @param string|null $encoding
* @return StringToLower
* @return self
* @throws Exception\InvalidArgumentException
* @throws Exception\ExtensionNotLoadedException
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Boolean.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function __construct($typeOrOptions = null, $casting = true, $translation
*
* @param int|array $type
* @throws Exception\InvalidArgumentException
* @return bool
* @return self
*/
public function setType($type = null)
{
Expand Down Expand Up @@ -137,7 +137,7 @@ public function getType()
* @param bool $flag When true this filter works like cast
* When false it recognises only true and false
* and all other values are returned as is
* @return bool
* @return self
*/
public function setCasting($flag = true)
{
Expand All @@ -158,7 +158,7 @@ public function getCasting()
/**
* @param array|Traversable $translations
* @throws Exception\InvalidArgumentException
* @return bool
* @return self
*/
public function setTranslations($translations)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getCallback()
* Sets parameters for the callback
*
* @param mixed $params
* @return Callback
* @return self
*/
public function setCallbackParams($params)
{
Expand All @@ -79,7 +79,7 @@ public function setCallbackParams($params)
/**
* Get parameters for the callback
*
* @return mixed
* @return array
*/
public function getCallbackParams()
{
Expand Down
6 changes: 3 additions & 3 deletions src/Compress.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct($options = null)
*
* @param array $options
* @throws Exception\InvalidArgumentException if options is not an array or Traversable
* @return Compress
* @return self
*/
public function setOptions($options)
{
Expand Down Expand Up @@ -122,7 +122,7 @@ public function getAdapterName()
* Sets compression adapter
*
* @param string|Compress\CompressionAlgorithmInterface $adapter Adapter to use
* @return Compress
* @return self
* @throws Exception\InvalidArgumentException
*/
public function setAdapter($adapter)
Expand Down Expand Up @@ -153,7 +153,7 @@ public function getAdapterOptions()
* Set adapter options
*
* @param array $options
* @return Compress
* @return self
*/
public function setAdapterOptions(array $options)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Compress/AbstractCompressionAlgorithm.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getOptions($option = null)
* Sets all or one option
*
* @param array $options
* @return AbstractCompressionAlgorithm
* @return self
*/
public function setOptions(array $options)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Compress/Bz2.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getBlocksize()
*
* @param int $blocksize
* @throws Exception\InvalidArgumentException
* @return Bz2
* @return self
*/
public function setBlocksize($blocksize)
{
Expand All @@ -85,7 +85,7 @@ public function getArchive()
* Sets the archive to use for de-/compression
*
* @param string $archive Archive to use
* @return Bz2
* @return self
*/
public function setArchive($archive)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Compress/Gz.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getLevel()
*
* @param int $level
* @throws Exception\InvalidArgumentException
* @return Gz
* @return self
*/
public function setLevel($level)
{
Expand All @@ -87,7 +87,7 @@ public function getMode()
* Sets a new compression mode
*
* @param string $mode Supported are 'compress', 'deflate' and 'file'
* @return Gz
* @return self
* @throws Exception\InvalidArgumentException for invalid $mode value
*/
public function setMode($mode)
Expand All @@ -114,7 +114,7 @@ public function getArchive()
* Sets the archive to use for de-/compression
*
* @param string $archive Archive to use
* @return Gz
* @return self
*/
public function setArchive($archive)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Compress/Rar.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getCallback()
* Sets the callback to use
*
* @param string $callback
* @return Rar
* @return self
* @throws Exception\InvalidArgumentException if invalid callback provided
*/
public function setCallback($callback)
Expand All @@ -89,7 +89,7 @@ public function getArchive()
* Sets the archive to use for de-/compression
*
* @param string $archive Archive to use
* @return Rar
* @return self
*/
public function setArchive($archive)
{
Expand All @@ -113,7 +113,7 @@ public function getPassword()
* Sets the password to use
*
* @param string $password
* @return Rar
* @return self
*/
public function setPassword($password)
{
Expand All @@ -135,7 +135,7 @@ public function getTarget()
* Sets the targetpath to use
*
* @param string $target
* @return Rar
* @return self
* @throws Exception\InvalidArgumentException if specified target directory does not exist
*/
public function setTarget($target)
Expand Down
6 changes: 3 additions & 3 deletions src/Compress/Tar.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getArchive()
* Sets the archive to use for de-/compression
*
* @param string $archive Archive to use
* @return Tar
* @return self
*/
public function setArchive($archive)
{
Expand All @@ -89,7 +89,7 @@ public function getTarget()
* Sets the target path to use
*
* @param string $target
* @return Tar
* @return self
* @throws Exception\InvalidArgumentException if target path does not exist
*/
public function setTarget($target)
Expand Down Expand Up @@ -119,7 +119,7 @@ public function getMode()
* Either Gz or Bz2.
*
* @param string $mode
* @return Tar
* @return self
* @throws Exception\InvalidArgumentException for invalid $mode values
* @throws Exception\ExtensionNotLoadedException if bz2 mode selected but extension not loaded
* @throws Exception\ExtensionNotLoadedException if gz mode selected but extension not loaded
Expand Down
4 changes: 2 additions & 2 deletions src/Compress/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getArchive()
* Sets the archive to use for de-/compression
*
* @param string $archive Archive to use
* @return Zip
* @return self
*/
public function setArchive($archive)
{
Expand All @@ -85,7 +85,7 @@ public function getTarget()
*
* @param string $target
* @throws Exception\InvalidArgumentException
* @return Zip
* @return self
*/
public function setTarget($target)
{
Expand Down
6 changes: 3 additions & 3 deletions src/DateTimeFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct($options = null)
* Set the format string accepted by date() to use when formatting a string
*
* @param string $format
* @return \Zend\Filter\DateTimeFormatter
* @return self
*/
public function setFormat($format)
{
Expand Down Expand Up @@ -66,8 +66,8 @@ public function filter($value)
/**
* Normalize the provided value to a formatted string
*
* @param string|int|DateTime $value
* @returns string
* @param string|int|DateTime $value
* @return string
*/
protected function normalizeDateTime($value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Encrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getAdapter()
* Sets new encryption options
*
* @param string|array $options (Optional) Encryption options
* @return Encrypt
* @return self
* @throws Exception\DomainException
* @throws Exception\InvalidArgumentException
*/
Expand Down
8 changes: 4 additions & 4 deletions src/Encrypt/BlockCipher.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getEncryption()
* Sets new encryption options
*
* @param string|array $options Encryption options
* @return BlockCipher
* @return self
* @throws Exception\InvalidArgumentException
*/
public function setEncryption($options)
Expand Down Expand Up @@ -162,7 +162,7 @@ public function getVector()
* Set the inizialization vector
*
* @param string $vector
* @return BlockCipher
* @return self
* @throws Exception\InvalidArgumentException
*/
public function setVector($vector)
Expand All @@ -180,7 +180,7 @@ public function setVector($vector)
* Set the encryption key
*
* @param string $key
* @return BlockCipher
* @return self
* @throws Exception\InvalidArgumentException
*/
public function setKey($key)
Expand Down Expand Up @@ -218,7 +218,7 @@ public function getCompression()
* Sets a internal compression for values to encrypt
*
* @param string|array $compression
* @return BlockCipher
* @return self
*/
public function setCompression($compression)
{
Expand Down
14 changes: 7 additions & 7 deletions src/Encrypt/Openssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function __construct($options = array())
* Sets the encryption keys
*
* @param string|array $keys Key with type association
* @return Openssl
* @return self
* @throws Exception\InvalidArgumentException
*/
protected function _setKeys($keys)
Expand Down Expand Up @@ -168,7 +168,7 @@ public function getPublicKey()
* Sets public keys
*
* @param string|array $key Public keys
* @return \Zend\Filter\Encrypt\Openssl
* @return self
*/
public function setPublicKey($key)
{
Expand Down Expand Up @@ -202,7 +202,7 @@ public function getPrivateKey()
*
* @param string $key Private key
* @param string $passphrase
* @return Openssl
* @return self
*/
public function setPrivateKey($key, $passphrase = null)
{
Expand Down Expand Up @@ -239,7 +239,7 @@ public function getEnvelopeKey()
* Sets envelope keys
*
* @param string|array $key Envelope keys
* @return \Zend\Filter\Encrypt\Openssl
* @return self
*/
public function setEnvelopeKey($key)
{
Expand Down Expand Up @@ -271,7 +271,7 @@ public function getPassphrase()
* Sets a new passphrase
*
* @param string $passphrase
* @return Openssl
* @return self
*/
public function setPassphrase($passphrase)
{
Expand All @@ -293,7 +293,7 @@ public function getCompression()
* Sets a internal compression for values to encrypt
*
* @param string|array $compression
* @return Openssl
* @return self
*/
public function setCompression($compression)
{
Expand All @@ -319,7 +319,7 @@ public function getPackage()
* Sets if the envelope keys should be included in the encrypted value
*
* @param bool $package
* @return Openssl
* @return self
*/
public function setPackage($package)
{
Expand Down
2 changes: 1 addition & 1 deletion src/File/Decrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getFilename()
* Sets the new filename where the content will be stored
*
* @param string $filename (Optional) New filename to set
* @return Decrypt
* @return self
*/
public function setFilename($filename = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/File/Encrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getFilename()
* Sets the new filename where the content will be stored
*
* @param string $filename (Optional) New filename to set
* @return Encrypt
* @return self
*/
public function setFilename($filename = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/File/Rename.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getFile()
* 'randomize' => Shall target files have a random postfix attached?
*
* @param string|array $options Old file or directory to be rewritten
* @return \Zend\Filter\File\Rename
* @return self
*/
public function setFile($options)
{
Expand Down
Loading

0 comments on commit 6bd4bd0

Please sign in to comment.