diff --git a/src/Component.php b/src/Component.php index ee5f04af..c6e94dd9 100644 --- a/src/Component.php +++ b/src/Component.php @@ -173,7 +173,6 @@ private function buildComponents(array &$lines) } /** - * @param array $lines * @param Component $component */ private function addComponentLines(array &$lines, self $component) diff --git a/src/Component/Calendar.php b/src/Component/Calendar.php index 48c34780..2193d140 100644 --- a/src/Component/Calendar.php +++ b/src/Component/Calendar.php @@ -303,8 +303,6 @@ public function buildPropertyBag() * * @see Eluceo\iCal::addComponent * @deprecated Please, use public method addComponent() from abstract Component class - * - * @param Event $event */ public function addEvent(Event $event) { diff --git a/src/Component/Event.php b/src/Component/Event.php index d452b93b..7e4e316b 100644 --- a/src/Component/Event.php +++ b/src/Component/Event.php @@ -460,10 +460,7 @@ public function setLocation($location, $title = '', $geo = null) $geo = Geo::fromString($geo); } elseif (!is_null($geo) && !$geo instanceof Geo) { $className = get_class($geo); - throw new \InvalidArgumentException( - "The parameter 'geo' must be a string or an instance of " . Geo::class - . " but an instance of {$className} was given." - ); + throw new \InvalidArgumentException("The parameter 'geo' must be a string or an instance of " . Geo::class . " but an instance of {$className} was given."); } $this->location = $location; @@ -474,8 +471,6 @@ public function setLocation($location, $title = '', $geo = null) } /** - * @param Geo $geoProperty - * * @return $this */ public function setGeoLocation(Geo $geoProperty) @@ -549,8 +544,6 @@ public function getSequence() } /** - * @param Organizer $organizer - * * @return $this */ public function setOrganizer(Organizer $organizer) @@ -645,8 +638,6 @@ public function getTimezoneString() } /** - * @param Attendees $attendees - * * @return $this */ public function setAttendees(Attendees $attendees) @@ -787,8 +778,6 @@ public function setStatus($status) /** * @deprecated Deprecated since version 0.11.0, to be removed in 1.0. Use addRecurrenceRule instead. * - * @param RecurrenceRule $recurrenceRule - * * @return $this */ public function setRecurrenceRule(RecurrenceRule $recurrenceRule) @@ -813,8 +802,6 @@ public function getRecurrenceRule() } /** - * @param RecurrenceRule $recurrenceRule - * * @return $this */ public function addRecurrenceRule(RecurrenceRule $recurrenceRule) @@ -883,8 +870,6 @@ public function setIsPrivate($flag) } /** - * @param \DateTimeInterface $dateTime - * * @return \Eluceo\iCal\Component\Event */ public function addExDate(\DateTimeInterface $dateTime) @@ -923,8 +908,6 @@ public function getRecurrenceId() } /** - * @param RecurrenceId $recurrenceId - * * @return \Eluceo\iCal\Component\Event */ public function setRecurrenceId(RecurrenceId $recurrenceId) @@ -954,9 +937,6 @@ public function getAttachments() return $this->attachments; } - /** - * @param string $url - */ public function addUrlAttachment(string $url) { $this->addAttachment(new Attachment($url)); diff --git a/src/Component/TimezoneRule.php b/src/Component/TimezoneRule.php index bf83e55b..88ead9c3 100644 --- a/src/Component/TimezoneRule.php +++ b/src/Component/TimezoneRule.php @@ -138,8 +138,6 @@ public function setTzName($name) } /** - * @param \DateTimeInterface $dtStart - * * @return $this */ public function setDtStart(\DateTimeInterface $dtStart) @@ -150,8 +148,6 @@ public function setDtStart(\DateTimeInterface $dtStart) } /** - * @param RecurrenceRule $recurrenceRule - * * @return $this */ public function setRecurrenceRule(RecurrenceRule $recurrenceRule) diff --git a/src/Property/Event/Geo.php b/src/Property/Event/Geo.php index 34f51142..da381be0 100644 --- a/src/Property/Event/Geo.php +++ b/src/Property/Event/Geo.php @@ -36,15 +36,11 @@ public function __construct(float $latitude, float $longitude) $this->longitude = $longitude; if ($this->latitude < -90 || $this->latitude > 90) { - throw new \InvalidArgumentException( - "The geographical latitude must be a value between -90 and 90 degrees. '{$this->latitude}' was given." - ); + throw new \InvalidArgumentException("The geographical latitude must be a value between -90 and 90 degrees. '{$this->latitude}' was given."); } if ($this->longitude < -180 || $this->longitude > 180) { - throw new \InvalidArgumentException( - "The geographical longitude must be a value between -180 and 180 degrees. '{$this->longitude}' was given." - ); + throw new \InvalidArgumentException("The geographical longitude must be a value between -180 and 180 degrees. '{$this->longitude}' was given."); } parent::__construct('GEO', new Property\RawStringValue($this->getGeoLocationAsString())); @@ -53,8 +49,6 @@ public function __construct(float $latitude, float $longitude) /** * @deprecated This method is used to allow backwards compatibility for Event::setLocation * - * @param string $geoLocationString - * * @return Geo */ public static function fromString(string $geoLocationString): self @@ -71,8 +65,6 @@ public static function fromString(string $geoLocationString): self * * @example 37.386013;-122.082932 * - * @param string $separator - * * @return string */ public function getGeoLocationAsString(string $separator = ';'): string diff --git a/src/Property/Event/RecurrenceId.php b/src/Property/Event/RecurrenceId.php index 89c7e9af..b350709e 100644 --- a/src/Property/Event/RecurrenceId.php +++ b/src/Property/Event/RecurrenceId.php @@ -76,8 +76,6 @@ public function getDatetime() } /** - * @param \DateTimeInterface $dateTime - * * @return \Eluceo\iCal\Property\Event\RecurrenceId */ public function setDatetime(\DateTimeInterface $dateTime) diff --git a/src/Property/Event/RecurrenceRule.php b/src/Property/Event/RecurrenceRule.php index 40b354a9..c5015c95 100644 --- a/src/Property/Event/RecurrenceRule.php +++ b/src/Property/Event/RecurrenceRule.php @@ -207,8 +207,6 @@ public function getCount() } /** - * @param \DateTimeInterface|null $until - * * @return $this */ public function setUntil(\DateTimeInterface $until = null) @@ -466,8 +464,6 @@ public function setByMonthDay($day) * Each BYDAY value can also be preceded by a positive (+n) or negative (-n) integer. * If present, this indicates the nth occurrence of a specific day within the MONTHLY or YEARLY "RRULE". * - * @param string $day - * * @return $this */ public function setByDay(string $day) diff --git a/src/PropertyBag.php b/src/PropertyBag.php index 3167a3fe..4ff82d88 100644 --- a/src/PropertyBag.php +++ b/src/PropertyBag.php @@ -35,8 +35,6 @@ public function set($name, $value, $params = []) } /** - * @param string $name - * * @return Property|null */ public function get(string $name) @@ -51,8 +49,6 @@ public function get(string $name) /** * Adds a Property. If Property already exists an Exception will be thrown. * - * @param Property $property - * * @return $this * * @throws \Exception