From aab9766c53e42c3141d0497fce78977d262efbc1 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 29 May 2016 00:33:28 +0200 Subject: missed some files --- vendor/sabre/vobject/lib/Property/Float.php | 104 -------------------------- vendor/sabre/vobject/lib/Property/Integer.php | 72 ------------------ 2 files changed, 176 deletions(-) delete mode 100644 vendor/sabre/vobject/lib/Property/Float.php delete mode 100644 vendor/sabre/vobject/lib/Property/Integer.php (limited to 'vendor/sabre/vobject/lib/Property') diff --git a/vendor/sabre/vobject/lib/Property/Float.php b/vendor/sabre/vobject/lib/Property/Float.php deleted file mode 100644 index 25bcd3db2..000000000 --- a/vendor/sabre/vobject/lib/Property/Float.php +++ /dev/null @@ -1,104 +0,0 @@ -delimiter, $val); - foreach($val as &$item) { - $item = (float)$item; - } - $this->setParts($val); - - } - - /** - * Returns a raw mime-dir representation of the value. - * - * @return string - */ - public function getRawMimeDirValue() { - - return implode( - $this->delimiter, - $this->getParts() - ); - - } - - /** - * Returns the type of value. - * - * This corresponds to the VALUE= parameter. Every property also has a - * 'default' valueType. - * - * @return string - */ - public function getValueType() { - - return "FLOAT"; - - } - - /** - * Returns the value, in the format it should be encoded for json. - * - * This method must always return an array. - * - * @return array - */ - public function getJsonValue() { - - $val = array_map( - function($item) { - - return (float)$item; - - }, - $this->getParts() - ); - - // Special-casing the GEO property. - // - // See: - // http://tools.ietf.org/html/draft-ietf-jcardcal-jcal-04#section-3.4.1.2 - if ($this->name==='GEO') { - return array($val); - } else { - return $val; - } - - } -} diff --git a/vendor/sabre/vobject/lib/Property/Integer.php b/vendor/sabre/vobject/lib/Property/Integer.php deleted file mode 100644 index db000156f..000000000 --- a/vendor/sabre/vobject/lib/Property/Integer.php +++ /dev/null @@ -1,72 +0,0 @@ -setValue((int)$val); - - } - - /** - * Returns a raw mime-dir representation of the value. - * - * @return string - */ - public function getRawMimeDirValue() { - - return $this->value; - - } - - /** - * Returns the type of value. - * - * This corresponds to the VALUE= parameter. Every property also has a - * 'default' valueType. - * - * @return string - */ - public function getValueType() { - - return "INTEGER"; - - } - - /** - * Returns the value, in the format it should be encoded for json. - * - * This method must always return an array. - * - * @return array - */ - public function getJsonValue() { - - return array((int)$this->getValue()); - - } -} -- cgit v1.2.3