"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php" between
Zikula_Core-2.0.11.tar.gz and Zikula_Core-2.0.12.tar.gz

About: Zikula is a Flexible Open Source Application Framework and CMS (based on Symfony 3.x).

MemoryProcessor.php  (Zikula_Core-2.0.11):MemoryProcessor.php  (Zikula_Core-2.0.12)
skipping to change at line 19 skipping to change at line 19
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Monolog\Processor; namespace Monolog\Processor;
/** /**
* Some methods that are common for all memory processors * Some methods that are common for all memory processors
* *
* @author Rob Jensen * @author Rob Jensen
*/ */
abstract class MemoryProcessor abstract class MemoryProcessor implements ProcessorInterface
{ {
/** /**
* @var bool If true, get the real size of memory allocated from system. Els e, only the memory used by emalloc() is reported. * @var bool If true, get the real size of memory allocated from system. Els e, only the memory used by emalloc() is reported.
*/ */
protected $realUsage; protected $realUsage;
/** /**
* @var bool If true, then format memory size to human readable string (MB, KB, B depending on size) * @var bool If true, then format memory size to human readable string (MB, KB, B depending on size)
*/ */
protected $useFormatting; protected $useFormatting;
/** /**
* @param bool $realUsage Set this to true to get the real size of memor y allocated from system. * @param bool $realUsage Set this to true to get the real size of memor y allocated from system.
* @param bool $useFormatting If true, then format memory size to human read able string (MB, KB, B depending on size) * @param bool $useFormatting If true, then format memory size to human read able string (MB, KB, B depending on size)
*/ */
public function __construct($realUsage = true, $useFormatting = true) public function __construct($realUsage = true, $useFormatting = true)
{ {
$this->realUsage = (boolean) $realUsage; $this->realUsage = (bool) $realUsage;
$this->useFormatting = (boolean) $useFormatting; $this->useFormatting = (bool) $useFormatting;
} }
/** /**
* Formats bytes into a human readable string if $this->useFormatting is tru e, otherwise return $bytes as is * Formats bytes into a human readable string if $this->useFormatting is tru e, otherwise return $bytes as is
* *
* @param int $bytes * @param int $bytes
* @return string|int Formatted string if $this->useFormatting is true, othe rwise return $bytes as is * @return string|int Formatted string if $this->useFormatting is true, othe rwise return $bytes as is
*/ */
protected function formatBytes($bytes) protected function formatBytes($bytes)
{ {
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)