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

Commit

Permalink
Merge branch 'fix/cs-concistency' of git://github.com/samsonasik/zf2 …
Browse files Browse the repository at this point in the history
…into hotfix/3342
  • Loading branch information
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
16 changes: 8 additions & 8 deletions src/Transfer/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function getValidatorManager()
* Adds a new validator for this class
*
* @param string|Validator\ValidatorInterface $validator Type of validator to add
* @param boolean $breakChainOnFailure If the validation chain should stop an failure
* @param bool $breakChainOnFailure If the validation chain should stop an failure
* @param string|array $options Options to set for the validator
* @param string|array $files Files to limit this validator to
* @return AbstractAdapter
Expand Down Expand Up @@ -533,7 +533,7 @@ public function setOptions($options = array(), $files = null)
case 'ignoreNoFile' :
case 'useByteString' :
case 'detectInfos' :
$this->files[$key]['options'][$name] = (boolean) $value;
$this->files[$key]['options'][$name] = (bool) $value;
break;

default:
Expand Down Expand Up @@ -571,7 +571,7 @@ public function getOptions($files = null)
* Checks if the files are valid
*
* @param string|array $files (Optional) Files to check
* @return boolean True if all checks are valid
* @return bool True if all checks are valid
*/
public function isValid($files = null)
{
Expand Down Expand Up @@ -690,7 +690,7 @@ public function getErrors()
/**
* Are there errors registered?
*
* @return boolean
* @return bool
*/
public function hasErrors()
{
Expand Down Expand Up @@ -886,7 +886,7 @@ public function clearFilters()
* Retrieves the filename of transferred files.
*
* @param string $file (Optional) Element to return the filename for
* @param boolean $path (Optional) Should the path also be returned ?
* @param bool $path (Optional) Should the path also be returned ?
* @return string|array
*/
public function getFileName($file = null, $path = true)
Expand Down Expand Up @@ -1279,7 +1279,7 @@ protected static function toByteString($size)
* Internal function to filter all given files
*
* @param string|array $files (Optional) Files to check
* @return boolean False on error
* @return bool False on error
*/
protected function filter($files = null)
{
Expand Down Expand Up @@ -1394,8 +1394,8 @@ protected function isPathWriteable($path)
* Returns found files based on internal file array and given files
*
* @param string|array $files (Optional) Files to return
* @param boolean $names (Optional) Returns only names on true, else complete info
* @param boolean $noexception (Optional) Allows throwing an exception, otherwise returns an empty array
* @param bool $names (Optional) Returns only names on true, else complete info
* @param bool $noexception (Optional) Allows throwing an exception, otherwise returns an empty array
* @return array Found files
* @throws Exception\RuntimeException On false filename
*/
Expand Down
16 changes: 8 additions & 8 deletions src/Transfer/Adapter/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function send($options = null)
* Checks if the files are valid
*
* @param string|array $files (Optional) Files to check
* @return boolean True if all checks are valid
* @return bool True if all checks are valid
*/
public function isValid($files = null)
{
Expand Down Expand Up @@ -136,7 +136,7 @@ public function isValid($files = null)
* Receive the file from the client (Upload)
*
* @param string|array $files (Optional) Files to receive
* @return boolean
* @return bool
*/
public function receive($files = null)
{
Expand Down Expand Up @@ -207,7 +207,7 @@ public function receive($files = null)
* Checks if the file was already sent
*
* @param string|array $files Files to check
* @return boolean
* @return bool
* @throws Exception\BadMethodCallException Not implemented
*/
public function isSent($files = null)
Expand All @@ -219,7 +219,7 @@ public function isSent($files = null)
* Checks if the file was already received
*
* @param string|array $files (Optional) Files to check
* @return boolean
* @return bool
*/
public function isReceived($files = null)
{
Expand All @@ -241,7 +241,7 @@ public function isReceived($files = null)
* Checks if the file was already filtered
*
* @param string|array $files (Optional) Files to check
* @return boolean
* @return bool
*/
public function isFiltered($files = null)
{
Expand All @@ -263,7 +263,7 @@ public function isFiltered($files = null)
* Has a file been uploaded ?
*
* @param array|string|null $files
* @return boolean
* @return bool
*/
public function isUploaded($files = null)
{
Expand Down Expand Up @@ -391,7 +391,7 @@ public static function getProgress($id = null)
/**
* Checks the APC extension for progress information
*
* @return boolean
* @return bool
*/
public static function isApcAvailable()
{
Expand All @@ -401,7 +401,7 @@ public static function isApcAvailable()
/**
* Checks the UploadProgress extension for progress information
*
* @return boolean
* @return bool
*/
public static function isUploadProgressAvailable()
{
Expand Down
6 changes: 3 additions & 3 deletions src/Transfer/Transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Transfer
* Creates a file processing handler
*
* @param string $adapter Adapter to use
* @param boolean $direction OPTIONAL False means Download, true means upload
* @param bool $direction OPTIONAL False means Download, true means upload
* @param array $options OPTIONAL Options to set for this adapter
* @throws Exception\InvalidArgumentException
*/
Expand All @@ -42,7 +42,7 @@ public function __construct($adapter = 'Http', $direction = false, $options = ar
* Sets a new adapter
*
* @param string $adapter Adapter to use
* @param boolean $direction OPTIONAL False means Download, true means upload
* @param bool $direction OPTIONAL False means Download, true means upload
* @param array $options OPTIONAL Options to set for this adapter
* @return Transfer
* @throws Exception\InvalidArgumentException
Expand Down Expand Up @@ -71,7 +71,7 @@ public function setAdapter($adapter, $direction = false, $options = array())
/**
* Returns all set adapters
*
* @param boolean $direction On null, all directions are returned
* @param bool $direction On null, all directions are returned
* On false, download direction is returned
* On true, upload direction is returned
* @return array|Adapter\AbstractAdapter
Expand Down

0 comments on commit 0af2391

Please sign in to comment.