Skip to content

Commit 12e1b16

Browse files
committed
Delete useless comments detected by PHPStan
1 parent afcfd52 commit 12e1b16

File tree

5 files changed

+0
-46
lines changed

5 files changed

+0
-46
lines changed

src/ICalendarOrg/ZCRecurringDate.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ public function bySetPos(array $bytype, array $bysetpos) : array
400400

401401
/**
402402
* display debug message
403-
*
404403
*/
405404
public function debug(int $level, string $msg) : self
406405
{
@@ -419,7 +418,6 @@ public function debug(int $level, string $msg) : self
419418
*
420419
* @throws \Exception
421420
* @return array<int>
422-
*
423421
*/
424422
public function getDates(?int $maxdate = null) : array
425423
{
@@ -609,8 +607,6 @@ public function getError() : string
609607

610608
/**
611609
* set debug level (0: none, 1: minimal, 2: more output)
612-
*
613-
*
614610
*/
615611
public function setDebug(int $level) : self
616612
{
@@ -621,8 +617,6 @@ public function setDebug(int $level) : self
621617

622618
/**
623619
* save error
624-
*
625-
*
626620
*/
627621
public function setError(string $msg) : self
628622
{
@@ -1020,7 +1014,6 @@ private function byYear(int $startdate, int $enddate, array &$rdates, string $tz
10201014
* Determine if the loop has reached the end date
10211015
*
10221016
* @param array<int> $rdates array of repeating dates
1023-
*
10241017
*/
10251018
private function maxDates(array $rdates) : bool
10261019
{

src/ICalendarOrg/ZCTimeZoneHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ public static function getTZNode(int $startyear, int $endyear, string $tzid, ?ZC
8989
{
9090
$tobj = new \ICalendarOrg\ZCiCalNode('STANDARD', $tzobj);
9191
}
92-
//$tzobj->data[$tobj->getName()] == $tobj;
9392

9493
// convert timestamp to local time zone
9594
$ts = \ICalendarOrg\ZDateHelper::toUnixDateTime(\ICalendarOrg\ZDateHelper::toLocalDateTime(\ICalendarOrg\ZDateHelper::toSQLDateTime($transition['ts']), $tzid));

src/ICalendarOrg/ZCiCal.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,7 @@ public function __construct(string $data = '', int $maxevents = 1_000_000, int $
223223
}
224224

225225
/**
226-
* CountEvents()
227-
*
228226
* Return the # of VEVENTs in the object
229-
*
230227
*/
231228
public function countEvents() : int
232229
{
@@ -247,10 +244,7 @@ public function countEvents() : int
247244
}
248245

249246
/**
250-
* CountVenues()
251-
*
252247
* Return the # of VVENUEs in the object
253-
*
254248
*/
255249
public function countVenues() : int
256250
{
@@ -284,8 +278,6 @@ public function export() : string
284278

285279
/**
286280
* Escape slashes, commas and semicolons in strings
287-
*
288-
*
289281
*/
290282
public static function formatContent(string $content) : string
291283
{

src/ICalendarOrg/ZCiCalNode.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212

1313
/**
1414
* Object for storing a list of unfolded iCalendar lines (ZCiCalDataNode objects)
15-
*
16-
* @property object $parentnode Parent of this node
17-
* @property array $child Array of children for this node
18-
* @property data $data Array of data for this node
19-
* @property object $next Next sibling of this node
20-
* @property object $prev Previous sibling of this node
2115
*/
2216
class ZCiCalNode
2317
{
@@ -130,7 +124,6 @@ public function addNode(ZCiCalDataNode $node) : ZCiCalNode
130124
*
131125
* @throws \Exception
132126
* @return string iCalendar formatted output
133-
*
134127
*/
135128
public function export(?ZCiCalNode $node = null, int $level = 0) : string
136129
{
@@ -181,7 +174,6 @@ public function export(?ZCiCalNode $node = null, int $level = 0) : string
181174
* Get Attribute
182175
*
183176
* @param int $i array id of attribute to get
184-
*
185177
*/
186178
public function getAttrib(int $i) : string
187179
{
@@ -192,7 +184,6 @@ public function getAttrib(int $i) : string
192184
* Get the first child of this object
193185
*
194186
* @return ?ZCiCalNode The first child
195-
*
196187
*/
197188
public function getFirstChild() : ?ZCiCalNode
198189
{
@@ -206,7 +197,6 @@ public function getFirstChild() : ?ZCiCalNode
206197

207198
/**
208199
* Return the name of the object
209-
*
210200
*/
211201
public function getName() : string
212202
{
@@ -228,7 +218,6 @@ public function getParent() : ?ZCiCalNode
228218
*
229219
* @param ZCiCalDataNode $d attributes
230220
* @param string $p properties
231-
*
232221
*/
233222
public function printDataLine(ZCiCalDataNode $d, string $p) : string
234223
{
@@ -277,7 +266,6 @@ public function printTree(?ZCiCalNode $node = null, int $level = 1) : string
277266
* Set Attribute
278267
*
279268
* @param string $value value of attribute to set
280-
*
281269
*/
282270
public function setAttrib(string $value) : ZCiCalNode
283271
{

src/ICalendarOrg/ZDateHelper.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public static function addDate(int $date, int $hour, int $min, int $sec, int $mo
5353
*
5454
* @param int $month Month is between 1 and 12 inclusive
5555
* @param int $year is between 1 and 32767 inclusive
56-
*
5756
*/
5857
public static function DayInMonth(int $month, int $year) : int
5958
{
@@ -159,8 +158,6 @@ public static function fromSqlDateTime(?string $datetime = null) : string
159158
}
160159

161160
/**
162-
* fromUnixDate()
163-
*
164161
* Take Unix timestamp and format to iCal date string
165162
*
166163
* @param int $datetime Unix timestamp, leave blank for current date/time
@@ -180,8 +177,6 @@ public static function fromUnixDate(?int $datetime = null) : string
180177
}
181178

182179
/**
183-
* fromUnixDateTime()
184-
*
185180
* Take Unix timestamp and format to iCal date/time string
186181
*
187182
* @param int $datetime Unix timestamp, leave blank for current date/time
@@ -204,7 +199,6 @@ public static function fromUnixDateTime(?int $datetime = null) : string
204199
* Format Unix timestamp to iCal date-time string
205200
*
206201
* @param int $datetime Unix timestamp
207-
*
208202
*/
209203
public static function fromUnixDateTimetoiCal(int $datetime) : string
210204
{
@@ -343,7 +337,6 @@ public static function getDateFromDay(int $date, int $week, int $wday, string $t
343337
* Convert iCal duration string to # of seconds
344338
*
345339
* @param string $duration iCal duration string
346-
*
347340
*/
348341
public static function iCalDurationtoSeconds(string $duration) : int
349342
{
@@ -400,7 +393,6 @@ public static function iCalDurationtoSeconds(string $duration) : int
400393
* @param int $daystart start of day in Unix timestamp format
401394
* @param int $begin Unix timestamp of starting date range
402395
* @param int $end Unix timestamp of end date range
403-
*
404396
*/
405397
public static function inDay(int $daystart, int $begin, int $end) : bool
406398
{
@@ -424,7 +416,6 @@ public static function inDay(int $daystart, int $begin, int $end) : bool
424416
*
425417
* @param int $date date in Unix timestamp format
426418
* @param string $tzid PHP recognized timezone (default is UTC)
427-
*
428419
*/
429420
public static function isAfterToday(int $date, string $tzid = 'UTC') : bool
430421
{
@@ -440,7 +431,6 @@ public static function isAfterToday(int $date, string $tzid = 'UTC') : bool
440431
*
441432
* @param int $date date in Unix timestamp format
442433
* @param string $tzid PHP recognized timezone (default is UTC)
443-
*
444434
*/
445435
public static function isBeforeToday(int $date, string $tzid = 'UTC') : bool
446436
{
@@ -459,7 +449,6 @@ public static function isBeforeToday(int $date, string $tzid = 'UTC') : bool
459449
*
460450
* @param int $date date in Unix timestamp format
461451
* @param string $tzid PHP recognized timezone (default is UTC)
462-
*
463452
*/
464453
public static function isFuture(int $date, string $tzid = 'UTC') : bool
465454
{
@@ -477,7 +466,6 @@ public static function isFuture(int $date, string $tzid = 'UTC') : bool
477466
*
478467
* @param int $date date in Unix timestamp format
479468
* @param string $tzid PHP recognized timezone (default is UTC)
480-
*
481469
*/
482470
public static function isPast(int $date, string $tzid = 'UTC') : bool
483471
{
@@ -492,7 +480,6 @@ public static function isPast(int $date, string $tzid = 'UTC') : bool
492480
*
493481
* @param int $date date in Unix timestamp format
494482
* @param string $tzid PHP recognized timezone (default is UTC)
495-
*
496483
*/
497484
public static function isToday(int $date, string $tzid = 'UTC') : bool
498485
{
@@ -507,7 +494,6 @@ public static function isToday(int $date, string $tzid = 'UTC') : bool
507494
*
508495
* @param int $date date in Unix timestamp format
509496
* @param string $tzid PHP recognized timezone (default is UTC)
510-
*
511497
*/
512498
public static function isTomorrow(int $date, string $tzid = 'UTC') : bool
513499
{
@@ -521,7 +507,6 @@ public static function isTomorrow(int $date, string $tzid = 'UTC') : bool
521507
* Is given date fall on a weekend?
522508
*
523509
* @param int $date Unix timestamp
524-
*
525510
*/
526511
public static function isWeekend(int $date) : bool
527512
{
@@ -534,7 +519,6 @@ public static function isWeekend(int $date) : bool
534519
* Return current Unix timestamp in local timezone
535520
*
536521
* @param string $tzid PHP recognized timezone
537-
*
538522
*/
539523
public static function now(string $tzid = 'UTC') : int
540524
{
@@ -612,7 +596,6 @@ public static function toLocalDateTime(string $sqldate, string $tzid = 'UTC') :
612596
* Format Unix timestamp to SQL date
613597
*
614598
* @param int $t Unix timestamp
615-
*
616599
*/
617600
public static function toSQLDate(int $t = 0) : string
618601
{
@@ -630,7 +613,6 @@ public static function toSQLDate(int $t = 0) : string
630613
* Format Unix timestamp to SQL date-time
631614
*
632615
* @param int $t Unix timestamp
633-
*
634616
*/
635617
public static function toSQLDateTime(int $t = 0) : string
636618
{

0 commit comments

Comments
 (0)