Completed
Push — master ( 713d54...d55531 )
by Amine
02:08
created
src/functions.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,6 @@
 block discarded – undo
64 64
  * ```
65 65
  *
66 66
  * @signature (*... -> a) -> [*] -> a
67
- * @param  callable $fn
68
- * @param  array    $args
69 67
  * @return mixed
70 68
  */
71 69
 function apply() {
Please login to merge, or discard this patch.
src/math.php 1 patch
Doc Comments   -10 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@  discard block
 block discarded – undo
11 11
  * ```
12 12
  *
13 13
  * @signature Number -> Number -> Number
14
- * @param  int|float $x
15
- * @param  int|float $y
16 14
  * @return int|float
17 15
  */
18 16
 function plus() {
@@ -29,8 +27,6 @@  discard block
 block discarded – undo
29 27
  * ```
30 28
  *
31 29
  * @signature Number -> Number -> Number
32
- * @param  int|float $x
33
- * @param  int|float $y
34 30
  * @return int|float
35 31
  */
36 32
 function minus() {
@@ -63,8 +59,6 @@  discard block
 block discarded – undo
63 59
  * ```
64 60
  *
65 61
  * @signature Number -> Number -> Number
66
- * @param  int|float $x
67
- * @param  int|float $y
68 62
  * @return int|float
69 63
  */
70 64
 function multiply() {
@@ -81,8 +75,6 @@  discard block
 block discarded – undo
81 75
  * ```
82 76
  *
83 77
  * @signature Number -> Number -> Number
84
- * @param  int|float $x
85
- * @param  int|float $y
86 78
  * @return int|float
87 79
  */
88 80
 function divide() {
@@ -99,8 +91,6 @@  discard block
 block discarded – undo
99 91
  * ```
100 92
  *
101 93
  * @signature Number -> Number -> Number
102
- * @param  int|float $x
103
- * @param  int|float $y
104 94
  * @return int|float
105 95
  */
106 96
 function modulo() {
Please login to merge, or discard this patch.
src/Stream.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,6 +94,7 @@  discard block
 block discarded – undo
94 94
      *
95 95
      * @param  mixed $data
96 96
      * @param  array $operations
97
+     * @param boolean $type
97 98
      * @return Stream
98 99
      */
99 100
     protected static function with ($data, $operations, $type)
@@ -414,7 +415,6 @@  discard block
 block discarded – undo
414 415
      *
415 416
      * @signature Stream(a) -> (String, ...) -> Stream(*)
416 417
      * @param  string $method
417
-     * @param  mixed|null $args...
418 418
      * @return Stream
419 419
      */
420 420
     public function call ($method)
@@ -468,7 +468,6 @@  discard block
 block discarded – undo
468 468
      *
469 469
      * @signature Stream(a) -> (String, ...) -> Stream(a)
470 470
      * @param  string $method
471
-     * @param  mixed|null $args...
472 471
      * @return Stream
473 472
      */
474 473
     public function run ($method)
Please login to merge, or discard this patch.
src/string.php 1 patch
Doc Comments   -25 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@  discard block
 block discarded – undo
11 11
  * ```
12 12
  *
13 13
  * @signature String -> String -> [String]
14
- * @param string $delimiter
15
- * @param string $string
16 14
  * @return array
17 15
  */
18 16
 function split() {
@@ -27,8 +25,6 @@  discard block
 block discarded – undo
27 25
  * ```
28 26
  *
29 27
  * @signature String -> [String] -> String
30
- * @param string $glue
31
- * @param array $pieces
32 28
  * @return string
33 29
  */
34 30
 function join() {
@@ -48,9 +44,6 @@  discard block
 block discarded – undo
48 44
  * ```
49 45
  *
50 46
  * @signature String|[String] -> String -> String|[String] -> String
51
- * @param  string $search
52
- * @param  string $replacement
53
- * @param  string $string
54 47
  * @return string
55 48
  */
56 49
 function replace() {
@@ -66,9 +59,6 @@  discard block
 block discarded – undo
66 59
  * ```
67 60
  *
68 61
  * @signature String -> String -> String -> String
69
- * @param  string $pattern
70
- * @param  string $replacement
71
- * @param  string $string
72 62
  * @return string
73 63
  */
74 64
 function regReplace() {
@@ -131,8 +121,6 @@  discard block
 block discarded – undo
131 121
  * ```
132 122
  *
133 123
  * @signature String -> String -> String
134
- * @param  string $delimiter
135
- * @param  string $string
136 124
  * @return string
137 125
  */
138 126
 function snakeCase() {
@@ -158,8 +146,6 @@  discard block
 block discarded – undo
158 146
  * ```
159 147
  *
160 148
  * @signature String -> String -> Boolean
161
- * @param  string $token
162
- * @param  string $string
163 149
  * @return bool
164 150
  */
165 151
 function startsWith() {
@@ -181,8 +167,6 @@  discard block
 block discarded – undo
181 167
  * ```
182 168
  *
183 169
  * @signature String -> String -> Boolean
184
- * @param  string $token
185
- * @param  string $string
186 170
  * @return bool
187 171
  */
188 172
 function endsWith() {
@@ -204,8 +188,6 @@  discard block
 block discarded – undo
204 188
  * ```
205 189
  *
206 190
  * @signature String -> String -> Boolean
207
- * @param  string $pattern
208
- * @param  string $string
209 191
  * @return bool
210 192
  */
211 193
 function test() {
@@ -225,8 +207,6 @@  discard block
 block discarded – undo
225 207
  * ```
226 208
  *
227 209
  * @signature String -> String -> [String]
228
- * @param  string $pattern
229
- * @param  string $string
230 210
  * @return array
231 211
  */
232 212
 function match() {
@@ -247,8 +227,6 @@  discard block
 block discarded – undo
247 227
  * ```
248 228
  *
249 229
  * @signature String -> String -> Number
250
- * @param  string $token
251
- * @param  string $text
252 230
  * @return int
253 231
  */
254 232
 function occurences() {
@@ -271,9 +249,6 @@  discard block
 block discarded – undo
271 249
  * ```
272 250
  *
273 251
  * @signature String -> String -> String -> [String]
274
- * @param  string $surrounders
275
- * @param  string $separator
276
- * @param  sring $text
277 252
  * @return array
278 253
  */
279 254
 function chunks() {
Please login to merge, or discard this patch.
src/list.php 1 patch
Doc Comments   -70 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@  discard block
 block discarded – undo
11 11
  * ```
12 12
  *
13 13
  * @signature (a -> b) -> [a] -> [b]
14
- * @param  callable $fn
15
- * @param  array $list
16 14
  * @return array
17 15
  */
18 16
 function map() {
@@ -31,8 +29,6 @@  discard block
 block discarded – undo
31 29
  * ```
32 30
  *
33 31
  * @signature (a -> [b]) -> [a] -> [b]
34
- * @param  callable $fn
35
- * @param  array $list
36 32
  * @return array
37 33
  */
38 34
 function chain() {
@@ -51,8 +47,6 @@  discard block
 block discarded – undo
51 47
  * $numeric($list) // [1, 3]
52 48
  * ```
53 49
  * @signature (a -> Boolean) -> [a] -> [a]
54
- * @param  callable $fn
55
- * @param  array $list
56 50
  * @return array
57 51
  */
58 52
 function filter() {
@@ -72,9 +66,6 @@  discard block
 block discarded – undo
72 66
  * ```
73 67
  *
74 68
  * @signature (* -> a -> *) -> * -> [a] -> *
75
- * @param  callable $fn
76
- * @param  mixed $initial
77
- * @param  array $list
78 69
  * @return array
79 70
  */
80 71
 function reduce() {
@@ -99,8 +90,6 @@  discard block
 block discarded – undo
99 90
  * ```
100 91
  *
101 92
  * @signature (a -> *) -> [a] -> [a]
102
- * @param  callable $fn
103
- * @param  array $list
104 93
  * @return array
105 94
  */
106 95
 function each() {
@@ -252,8 +241,6 @@  discard block
 block discarded – undo
252 241
  * ```
253 242
  *
254 243
  * @signature (a -> Boolean) -> [a] -> Boolean
255
- * @param  callable $predicate
256
- * @param  array $list
257 244
  * @return bool
258 245
  */
259 246
 function all() {
@@ -273,8 +260,6 @@  discard block
 block discarded – undo
273 260
  * ```
274 261
  *
275 262
  * @signature (a -> Boolean) -> [a] -> Boolean
276
- * @param  callable $predicate
277
- * @param  array $list
278 263
  * @return bool
279 264
  */
280 265
 function any() {
@@ -293,8 +278,6 @@  discard block
 block discarded – undo
293 278
  *
294 279
  * @signature [*] -> [*] -> [*]
295 280
  * @signature String -> String -> String
296
- * @param  array $list1
297
- * @param  array $list2
298 281
  * @return array
299 282
  */
300 283
 function concat() {
@@ -314,7 +297,6 @@  discard block
 block discarded – undo
314 297
  * ```
315 298
  *
316 299
  * @signature [[a]] -> [a]
317
- * @param  array $lists
318 300
  * @return array
319 301
  */
320 302
 function concatAll() {
@@ -338,9 +320,6 @@  discard block
 block discarded – undo
338 320
  *
339 321
  * @signature Number -> a -> [a] -> [a]
340 322
  * @signature Number -> String -> String -> String
341
- * @param  int $position
342
- * @param  mixed $item
343
- * @param  array $list
344 323
  * @return array
345 324
  */
346 325
 function insert() {
@@ -365,9 +344,6 @@  discard block
 block discarded – undo
365 344
  *
366 345
  * @signature Number -> [a] -> [a] -> [a]
367 346
  * @signature Number -> String -> String -> String
368
- * @param  int $position
369
- * @param  mixed $items
370
- * @param  array $list
371 347
  * @return array
372 348
  */
373 349
 function insertAll() {
@@ -388,8 +364,6 @@  discard block
 block discarded – undo
388 364
  *
389 365
  * @signature * -> [*] -> [*]
390 366
  * @signature String -> String -> String
391
- * @param  mixed $item
392
- * @param  array $list
393 367
  * @return array
394 368
  */
395 369
 function append() {
@@ -409,8 +383,6 @@  discard block
 block discarded – undo
409 383
  *
410 384
  * @signature a -> [a] -> [a]
411 385
  * @signature String -> String -> String
412
- * @param  mixed $item
413
- * @param  array $list
414 386
  * @return array
415 387
  */
416 388
 function prepend() {
@@ -431,8 +403,6 @@  discard block
 block discarded – undo
431 403
  *
432 404
  * @signature Number -> [a] -> [a]
433 405
  * @signature Number -> String -> String
434
- * @param  int $count
435
- * @param  array $list
436 406
  * @return array
437 407
  */
438 408
 function take() {
@@ -461,8 +431,6 @@  discard block
 block discarded – undo
461 431
  * ```
462 432
  *
463 433
  * @signature (a -> Boolean) -> [a] -> [a]
464
- * @param  callable $predicate
465
- * @param  array $list
466 434
  * @return array
467 435
  */
468 436
 function takeWhile() {
@@ -485,8 +453,6 @@  discard block
 block discarded – undo
485 453
  * ```
486 454
  *
487 455
  * @signature (a -> Boolean) -> [a] -> [a]
488
- * @param  callable $predicate
489
- * @param  array $list
490 456
  * @return array
491 457
  */
492 458
 function takeLastWhile() {
@@ -510,8 +476,6 @@  discard block
 block discarded – undo
510 476
  * ```
511 477
  *
512 478
  * @signature (a -> Boolean) -> [a] -> [a]
513
- * @param  callable $predicate
514
- * @param  array $list
515 479
  * @return array
516 480
  */
517 481
 function takeUntil() {
@@ -530,8 +494,6 @@  discard block
 block discarded – undo
530 494
  * ```
531 495
  *
532 496
  * @signature (a -> Boolean) -> [a] -> [a]
533
- * @param  callable $predicate
534
- * @param  array $list
535 497
  * @return array
536 498
  */
537 499
 function takeLastUntil() {
@@ -556,8 +518,6 @@  discard block
 block discarded – undo
556 518
  *
557 519
  * @signature Number -> [a] -> [a]
558 520
  * @signature Number -> String -> String
559
- * @param  int $count
560
- * @param  array $list
561 521
  * @return array
562 522
  */
563 523
 function remove() {
@@ -582,8 +542,6 @@  discard block
 block discarded – undo
582 542
  * ```
583 543
  *
584 544
  * @signature (a -> Boolean) -> [a] -> [a]
585
- * @param  callable $predicate
586
- * @param  array $list
587 545
  * @return array
588 546
  */
589 547
 function removeWhile() {
@@ -602,8 +560,6 @@  discard block
 block discarded – undo
602 560
  * ```
603 561
  *
604 562
  * @signature (a -> Boolean) -> [a] -> [a]
605
- * @param  callable $predicate
606
- * @param  array $list
607 563
  * @return array
608 564
  */
609 565
 function removeLastWhile() {
@@ -624,8 +580,6 @@  discard block
 block discarded – undo
624 580
  * ```
625 581
  *
626 582
  * @signature (a -> Boolean) -> [a] -> [a]
627
- * @param  callable $predicate
628
- * @param  array $list
629 583
  * @return array
630 584
  */
631 585
 function removeUntil() {
@@ -645,8 +599,6 @@  discard block
 block discarded – undo
645 599
  * ```
646 600
  *
647 601
  * @signature (a -> Boolean) -> [a] -> [a]
648
- * @param  callable $predicate
649
- * @param  array $list
650 602
  * @return array
651 603
  */
652 604
 function removeLastUntil() {
@@ -663,7 +615,6 @@  discard block
 block discarded – undo
663 615
  * ```
664 616
  *
665 617
  * @signature [(k, v)] -> {k: v}
666
- * @param  array $pairs
667 618
  * @return stdClass
668 619
  */
669 620
 function fromPairs() {
@@ -689,8 +640,6 @@  discard block
 block discarded – undo
689 640
  *
690 641
  * @signature Number -> [a] -> [[a]]
691 642
  * @signature Number -> String -> [String]
692
- * @param  int $size
693
- * @param  array $list
694 643
  * @return array
695 644
  */
696 645
 function slices() {
@@ -715,8 +664,6 @@  discard block
 block discarded – undo
715 664
  *
716 665
  * @signature a -> [a] -> Boolean
717 666
  * @signature String -> String -> Boolean
718
- * @param  mixed $item
719
- * @param  array|string $list
720 667
  * @return bool
721 668
  */
722 669
 function contains() {
@@ -737,8 +684,6 @@  discard block
 block discarded – undo
737 684
  *
738 685
  * @signature (a -> Boolean) -> [a] -> Maybe(Number)
739 686
  * @signature (v -> Boolean) -> {k: v} -> Maybe(k)
740
- * @param  callable $predicate
741
- * @param  array $list
742 687
  * @return mixed
743 688
  */
744 689
 function findIndex() {
@@ -763,8 +708,6 @@  discard block
 block discarded – undo
763 708
  *
764 709
  * @signature (a -> Boolean) -> [a] -> Maybe(Number)
765 710
  * @signature (v -> Boolean) -> {k: v} -> Maybe(k)
766
- * @param  callable $predicate
767
- * @param  array $list
768 711
  * @return mixed
769 712
  */
770 713
 function findLastIndex() {
@@ -787,8 +730,6 @@  discard block
 block discarded – undo
787 730
  * ```
788 731
  *
789 732
  * @signature (a -> Boolean) -> [a] -> Maybe(a)
790
- * @param  callable $predicate
791
- * @param  array $list
792 733
  * @return mixed
793 734
  */
794 735
 function find() {
@@ -807,8 +748,6 @@  discard block
 block discarded – undo
807 748
  * ```
808 749
  *
809 750
  * @signature (a -> Boolean) -> [a] -> Maybe(a)
810
- * @param  callable $predicate
811
- * @param  array $list
812 751
  * @return mixed
813 752
  */
814 753
 function findLast() {
@@ -834,8 +773,6 @@  discard block
 block discarded – undo
834 773
  * @signature a -> [a] -> Maybe(Number) 
835 774
  * @signature v -> {k: v} -> Maybe(k)
836 775
  * @signature String -> String -> Maybe(Number)
837
- * @param  mixed $item
838
- * @param  array $list
839 776
  * @return int
840 777
  */
841 778
 function indexOf() {
@@ -863,8 +800,6 @@  discard block
 block discarded – undo
863 800
  *
864 801
  * @signature a -> [a] -> Number 
865 802
  * @signature String -> String -> Number
866
- * @param  mixed $item
867
- * @param  array $list
868 803
  * @return int
869 804
  */
870 805
 function lastIndexOf() {
@@ -888,8 +823,6 @@  discard block
 block discarded – undo
888 823
  * ```
889 824
  *
890 825
  * @signature (a -> a -> Boolean) -> [a] -> [a]
891
- * @param  callable $areEqual
892
- * @param  array $list
893 826
  * @return array
894 827
  */
895 828
 function uniqueBy() {
@@ -917,7 +850,6 @@  discard block
 block discarded – undo
917 850
  * ```
918 851
  *
919 852
  * @signature [a] -> [a]
920
- * @param  array $list
921 853
  * @return array
922 854
  */
923 855
 function unique() {
@@ -951,8 +883,6 @@  discard block
 block discarded – undo
951 883
  * ```
952 884
  *
953 885
  * @signature (a -> String) -> [a] -> {String: a}
954
- * @param  callable $fn
955
- * @param  array $list
956 886
  * @return array
957 887
  */
958 888
 function groupBy() {
Please login to merge, or discard this patch.
src/object.php 1 patch
Doc Comments   -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@  discard block
 block discarded – undo
27 27
  * ```
28 28
  *
29 29
  * @signature {k: v} -> {k: v}
30
- * @param  object $object
31 30
  * @return array
32 31
  */
33 32
 function attributes() {
@@ -95,8 +94,6 @@  discard block
 block discarded – undo
95 94
  * ```
96 95
  *
97 96
  * @signature String|Number -> [key => *] -> Boolean
98
- * @param  string $name
99
- * @param  array $object
100 97
  * @return mixed
101 98
  */
102 99
 function has() {
@@ -125,8 +122,6 @@  discard block
 block discarded – undo
125 122
  * ```
126 123
  *
127 124
  * @signature k -> {k: v} -> Maybe(v)
128
- * @param  string $name
129
- * @param  array $object
130 125
  * @return mixed
131 126
  */
132 127
 function get() {
Please login to merge, or discard this patch.
src/operators.php 1 patch
Doc Comments   -19 removed lines patch added patch discarded remove patch
@@ -8,8 +8,6 @@  discard block
 block discarded – undo
8 8
  * Returns `$a && $b`.
9 9
  *
10 10
  * @signature Boolean -> Boolean -> Boolean
11
- * @param  bool $a
12
- * @param  bool $b
13 11
  * @return bool
14 12
  */
15 13
 function and_() {
@@ -22,8 +20,6 @@  discard block
 block discarded – undo
22 20
  * Returns `$a || $b`.
23 21
  *
24 22
  * @signature Boolean -> Boolean -> Boolean
25
- * @param  bool $a
26
- * @param  bool $b
27 23
  * @return bool
28 24
  */
29 25
 function or_() {
@@ -36,7 +32,6 @@  discard block
 block discarded – undo
36 32
  * Returns `!$x`.
37 33
  *
38 34
  * @signature Boolean -> Boolean
39
- * @param  bool $x
40 35
  * @return bool
41 36
  */
42 37
 function not() {
@@ -50,8 +45,6 @@  discard block
 block discarded – undo
50 45
  * Returns `$x == $y`.
51 46
  *
52 47
  * @signature * -> * -> Boolean
53
- * @param  mixed $a
54
- * @param  mixed $b
55 48
  * @return bool
56 49
  */
57 50
 function eq() {
@@ -64,8 +57,6 @@  discard block
 block discarded – undo
64 57
  * Returns `$x === $y`.
65 58
  *
66 59
  * @signature * -> * -> Boolean
67
- * @param  mixed $a
68
- * @param  mixed $b
69 60
  * @return bool
70 61
  */
71 62
 function eqq() {
@@ -90,8 +81,6 @@  discard block
 block discarded – undo
90 81
  * ```
91 82
  *
92 83
  * @signature * -> * -> Boolean
93
- * @param  mixed $a
94
- * @param  mixed $b
95 84
  * @return bool
96 85
  */
97 86
 function equals() {
@@ -129,8 +118,6 @@  discard block
 block discarded – undo
129 118
  * Returns `$a < $b`.
130 119
  *
131 120
  * @signature * -> * -> Boolean
132
- * @param  mixed $a
133
- * @param  mixed $b
134 121
  * @return bool
135 122
  */
136 123
 function lt() {
@@ -143,8 +130,6 @@  discard block
 block discarded – undo
143 130
  * Returns `$a <= $b`.
144 131
  *
145 132
  * @signature * -> * -> Boolean
146
- * @param  mixed $a
147
- * @param  mixed $b
148 133
  * @return bool
149 134
  */
150 135
 function lte() {
@@ -157,8 +142,6 @@  discard block
 block discarded – undo
157 142
  * Returns `$a > $b`.
158 143
  *
159 144
  * @signature * -> * -> Boolean
160
- * @param  mixed $a
161
- * @param  mixed $b
162 145
  * @return bool
163 146
  */
164 147
 function gt() {
@@ -171,8 +154,6 @@  discard block
 block discarded – undo
171 154
  * Returns `$a >= $b`.
172 155
  *
173 156
  * @signature * -> * -> Boolean
174
- * @param  mixed $a
175
- * @param  mixed $b
176 157
  * @return bool
177 158
  */
178 159
 function gte() {
Please login to merge, or discard this patch.