"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/sabre/vobject/lib/Property/Text.php" between
sabredav-3.1.2.zip and sabredav-3.1.3.zip

About: SabreDAV allows you to easily add WebDAV support to a PHP application.

Text.php  (sabredav-3.1.2):Text.php  (sabredav-3.1.3)
skipping to change at line 397 skipping to change at line 397
function validate($options = 0) { function validate($options = 0) {
$warnings = parent::validate($options); $warnings = parent::validate($options);
if (isset($this->minimumPropertyValues[$this->name])) { if (isset($this->minimumPropertyValues[$this->name])) {
$minimum = $this->minimumPropertyValues[$this->name]; $minimum = $this->minimumPropertyValues[$this->name];
$parts = $this->getParts(); $parts = $this->getParts();
if (count($parts) < $minimum) { if (count($parts) < $minimum) {
$warnings[] = [ $warnings[] = [
'level' => 1, 'level' => $options & self::REPAIR ? 1 : 3,
'message' => 'This property must have at least ' . $minimum 'message' => 'The ' . $this->name . ' property must have at
. ' components. It only has ' . count($parts), least ' . $minimum . ' values. It only has ' . count($parts),
'node' => $this, 'node' => $this,
]; ];
if ($options & self::REPAIR) { if ($options & self::REPAIR) {
$parts = array_pad($parts, $minimum, ''); $parts = array_pad($parts, $minimum, '');
$this->setParts($parts); $this->setParts($parts);
} }
} }
} }
return $warnings; return $warnings;
 End of changes. 1 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS