Completed
Push — master ( 6e9d6d...537dfc )
by Amine
02:21 queued 22s
created
src/operators.php 1 patch
Doc Comments   -23 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 notEq() {
@@ -78,8 +69,6 @@  discard block
 block discarded – undo
78 69
  * Returns `$x === $y`.
79 70
  *
80 71
  * @signature * -> * -> Boolean
81
- * @param  mixed $a
82
- * @param  mixed $b
83 72
  * @return bool
84 73
  */
85 74
 function eqq() {
@@ -92,8 +81,6 @@  discard block
 block discarded – undo
92 81
  * Returns `$x !== $y`.
93 82
  *
94 83
  * @signature * -> * -> Boolean
95
- * @param  mixed $a
96
- * @param  mixed $b
97 84
  * @return bool
98 85
  */
99 86
 function notEqq() {
@@ -118,8 +105,6 @@  discard block
 block discarded – undo
118 105
  * ```
119 106
  *
120 107
  * @signature * -> * -> Boolean
121
- * @param  mixed $a
122
- * @param  mixed $b
123 108
  * @return bool
124 109
  */
125 110
 function equals() {
@@ -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 lt() {
@@ -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 lte() {
@@ -185,8 +166,6 @@  discard block
 block discarded – undo
185 166
  * Returns `$a > $b`.
186 167
  *
187 168
  * @signature * -> * -> Boolean
188
- * @param  mixed $a
189
- * @param  mixed $b
190 169
  * @return bool
191 170
  */
192 171
 function gt() {
@@ -199,8 +178,6 @@  discard block
 block discarded – undo
199 178
  * Returns `$a >= $b`.
200 179
  *
201 180
  * @signature * -> * -> Boolean
202
- * @param  mixed $a
203
- * @param  mixed $b
204 181
  * @return bool
205 182
  */
206 183
 function gte() {
Please login to merge, or discard this patch.
build.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -634,8 +634,6 @@  discard block
 block discarded – undo
634 634
  * Gets an element of the stream methods list.
635 635
  *
636 636
  * @signature String -> Block -> String
637
- * @param  string $moduleName
638
- * @param  object $block
639 637
  * @return string
640 638
  */
641 639
 function stream_method_link() {
@@ -661,7 +659,6 @@  discard block
 block discarded – undo
661 659
  * Dump a variable and returns it.
662 660
  *
663 661
  * @signature a -> a
664
- * @param  mixed $something
665 662
  * @return mixed
666 663
  */
667 664
 function log() {
Please login to merge, or discard this patch.
src/Classes/Stream.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * Creates a new Stream.
37 37
      *
38 38
      * @param  mixed $data
39
-     * @return Tarsana\Functional\Stream
39
+     * @return Stream
40 40
      */
41 41
     public static function of($data)
42 42
     {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * Adds a new operation to the Stream class.
48 48
      *
49 49
      * @param  string $name
50
-     * @param  string $signature
50
+     * @param  string $signatures
51 51
      * @param  callable $fn
52 52
      * @return void
53 53
      */
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * Checks if the Stream class has an operation with the given name.
66 66
      *
67 67
      * @param  string  $name
68
-     * @return boolean
68
+     * @return \PHPUnit_Framework_Constraint_TraversableContains
69 69
      */
70 70
     public static function hasOperation($name)
71 71
     {
@@ -87,7 +87,6 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * Creates a new Stream with some data.
89 89
      *
90
-     * @param mixed $data
91 90
      */
92 91
     protected function __construct($stream)
93 92
     {
@@ -120,7 +119,7 @@  discard block
 block discarded – undo
120 119
      *
121 120
      * @param  string $name The name of the operation
122 121
      * @param  array  $args
123
-     * @return Tarsana\Functional\Stream
122
+     * @return Stream
124 123
      */
125 124
     public function __call($name, $args)
126 125
     {
Please login to merge, or discard this patch.
src/common.php 1 patch
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
  * ```
27 27
  *
28 28
  * @signature * -> String
29
- * @param  mixed $data
30 29
  * @return string
31 30
  */
32 31
 function type() {
@@ -73,8 +72,6 @@  discard block
 block discarded – undo
73 72
  *
74 73
  * @stream
75 74
  * @signature String -> * -> Boolean
76
- * @param  string $type
77
- * @param  mixed $data
78 75
  * @return boolean
79 76
  */
80 77
 function is() {
@@ -109,7 +106,6 @@  discard block
 block discarded – undo
109 106
  *
110 107
  * @stream
111 108
  * @signature * -> String
112
- * @param  mixed $something
113 109
  * @return string
114 110
  */
115 111
 function toString () {
Please login to merge, or discard this patch.
src/Internal/_functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
  * @param  callable $fn
86 86
  * @param  int $argsCount
87 87
  * @param  array  $boundArgs
88
- * @return callable
88
+ * @return \Closure
89 89
  */
90 90
 function _curried_function($fn, $argsCount, $boundArgs = []) {
91 91
     return function() use($fn, $argsCount, $boundArgs) {
Please login to merge, or discard this patch.
src/Internal/_stream.php 1 patch
Doc Comments   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  * Returns supported types in signatures.
41 41
  *
42 42
  * @signature List
43
- * @return array
43
+ * @return string[]
44 44
  */
45 45
 function _stream_types() {
46 46
     return [
@@ -126,7 +126,6 @@  discard block
 block discarded – undo
126 126
  * @signature String -> String -> Maybe(Function) -> Operation
127 127
  * @param  string $name
128 128
  * @param  string $signature
129
- * @param  callable $fn
130 129
  * @return array
131 130
  */
132 131
 function _stream_operation($name, $signature, $callable = null) {
@@ -190,8 +189,6 @@  discard block
 block discarded – undo
190 189
  * F\_stream_ensure_type('List -> Bar', 'Bar'); // throws "Stream: invalid signature 'List -> Bar' it should follow the syntax 'TypeArg1 -> TypeArg2 -> ... -> ReturnType' and types to use are Boolean, Number, String, Resource, Function, List, Array, Object, Any"
191 190
  * ```
192 191
  * @signature String -> String -> String
193
- * @param  string $signature
194
- * @param  string $type
195 192
  * @return string
196 193
  */
197 194
 function _stream_ensure_type() {
@@ -491,8 +488,6 @@  discard block
 block discarded – undo
491 488
  * ```
492 489
  *
493 490
  * @signature [String] -> Operation -> Boolean
494
- * @param  array $argsTypes
495
- * @param  array $operation
496 491
  * @return bool
497 492
  */
498 493
 function _stream_operation_is_applicable() {
Please login to merge, or discard this patch.
src/math.php 1 patch
Doc Comments   -23 removed lines patch added patch discarded remove patch
@@ -14,8 +14,6 @@  discard block
 block discarded – undo
14 14
  *
15 15
  * @stream
16 16
  * @signature Number -> Number -> Number
17
- * @param  int|float $x
18
- * @param  int|float $y
19 17
  * @return int|float
20 18
  */
21 19
 function plus() {
@@ -35,8 +33,6 @@  discard block
 block discarded – undo
35 33
  *
36 34
  * @stream
37 35
  * @signature Number -> Number -> Number
38
- * @param  int|float $x
39
- * @param  int|float $y
40 36
  * @return int|float
41 37
  */
42 38
 function minus() {
@@ -57,7 +53,6 @@  discard block
 block discarded – undo
57 53
  *
58 54
  * @stream
59 55
  * @signature Number -> Number
60
- * @param  int|float $x
61 56
  * @return int|float
62 57
  */
63 58
 function negate() {
@@ -78,8 +73,6 @@  discard block
 block discarded – undo
78 73
  *
79 74
  * @stream
80 75
  * @signature Number -> Number -> Number
81
- * @param  int|float $x
82
- * @param  int|float $y
83 76
  * @return int|float
84 77
  */
85 78
 function multiply() {
@@ -99,8 +92,6 @@  discard block
 block discarded – undo
99 92
  *
100 93
  * @stream
101 94
  * @signature Number -> Number -> Number
102
- * @param  int|float $x
103
- * @param  int|float $y
104 95
  * @return int|float
105 96
  */
106 97
 function divide() {
@@ -120,8 +111,6 @@  discard block
 block discarded – undo
120 111
  *
121 112
  * @stream
122 113
  * @signature Number -> Number -> Number
123
- * @param  int|float $x
124
- * @param  int|float $y
125 114
  * @return int|float
126 115
  */
127 116
 function modulo() {
@@ -142,7 +131,6 @@  discard block
 block discarded – undo
142 131
  *
143 132
  * @stream
144 133
  * @signature [Number] -> Number
145
- * @param  array $numbers
146 134
  * @return int|float
147 135
  */
148 136
 function sum() {
@@ -163,7 +151,6 @@  discard block
 block discarded – undo
163 151
  *
164 152
  * @stream
165 153
  * @signature [Number] -> Number
166
- * @param  array $numbers
167 154
  * @return int|float
168 155
  */
169 156
 function product() {
@@ -184,8 +171,6 @@  discard block
 block discarded – undo
184 171
  *
185 172
  * @stream
186 173
  * @signature Number -> Number -> Number
187
- * @param  number $a
188
- * @param  number $b
189 174
  * @return number
190 175
  */
191 176
 function min() {
@@ -206,9 +191,6 @@  discard block
 block discarded – undo
206 191
  *
207 192
  * @stream
208 193
  * @signature (a -> Number) -> a -> a -> a
209
- * @param  callable $fn
210
- * @param  mixed $a
211
- * @param  mixed $b
212 194
  * @return mixed
213 195
  */
214 196
 function minBy() {
@@ -229,8 +211,6 @@  discard block
 block discarded – undo
229 211
  *
230 212
  * @stream
231 213
  * @signature Number -> Number -> Number
232
- * @param  number $a
233
- * @param  number $b
234 214
  * @return number
235 215
  */
236 216
 function max() {
@@ -251,9 +231,6 @@  discard block
 block discarded – undo
251 231
  *
252 232
  * @stream
253 233
  * @signature (a -> Number) -> a -> a -> a
254
- * @param  callable $fn
255
- * @param  mixed $a
256
- * @param  mixed $b
257 234
  * @return mixed
258 235
  */
259 236
 function maxBy() {
Please login to merge, or discard this patch.
src/object.php 1 patch
Doc Comments   -24 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@  discard block
 block discarded – undo
22 22
  * ```
23 23
  *
24 24
  * @signature a -> a
25
- * @param  mixed $value
26 25
  * @return mixed
27 26
  */
28 27
 function clone_() {
@@ -73,7 +72,6 @@  discard block
 block discarded – undo
73 72
  *
74 73
  * @stream
75 74
  * @signature {k: v} -> {k: v}
76
- * @param  object|array $object
77 75
  * @return array
78 76
  */
79 77
 function attributes() {
@@ -98,7 +96,6 @@  discard block
 block discarded – undo
98 96
  * @stream
99 97
  * @signature [*] -> [Number]
100 98
  * @signature {k: v} -> [k]
101
- * @param object|array $object
102 99
  * @return array
103 100
  */
104 101
 function keys() {
@@ -121,7 +118,6 @@  discard block
 block discarded – undo
121 118
  * @stream
122 119
  * @signature [a] -> [a]
123 120
  * @signature {k: v} -> [v]
124
- * @param object|array $object
125 121
  * @return array
126 122
  */
127 123
 function values() {
@@ -162,8 +158,6 @@  discard block
 block discarded – undo
162 158
  *
163 159
  * @stream
164 160
  * @signature k -> {k: v} -> Boolean
165
- * @param  string|int $name
166
- * @param  mixed $object
167 161
  * @return bool
168 162
  */
169 163
 function has() {
@@ -195,8 +189,6 @@  discard block
 block discarded – undo
195 189
  *
196 190
  * @stream
197 191
  * @signature k -> {k: v} -> Maybe(v)
198
- * @param  string $name
199
- * @param  array $object
200 192
  * @return mixed
201 193
  */
202 194
 function get() {
@@ -227,8 +219,6 @@  discard block
 block discarded – undo
227 219
  *
228 220
  * @stream
229 221
  * @signature [k] -> {k: v} -> v
230
- * @param  array $path
231
- * @param  mixed $object
232 222
  * @return mixed
233 223
  */
234 224
 function getPath() {
@@ -259,9 +249,6 @@  discard block
 block discarded – undo
259 249
  *
260 250
  * @stream
261 251
  * @signature k -> v -> {k: v} -> {k: v}
262
- * @param  string|int $name
263
- * @param  mixed $value
264
- * @param  mixed $object
265 252
  * @return mixed
266 253
  */
267 254
 function set() {
@@ -293,9 +280,6 @@  discard block
 block discarded – undo
293 280
  *
294 281
  * @stream
295 282
  * @signature k -> (v -> v) -> {k: v} -> {k: v}
296
- * @param  string|int $name
297
- * @param  callable $fn
298
- * @param  mixed $object
299 283
  * @return mixed
300 284
  */
301 285
 function update() {
@@ -321,9 +305,6 @@  discard block
 block discarded – undo
321 305
  *
322 306
  * @stream
323 307
  * @signature (a -> Boolean) -> k -> {k : a} -> Boolean
324
- * @param  callable $predicate
325
- * @param  string|int $key
326
- * @param  mixed $object
327 308
  * @return bool
328 309
  */
329 310
 function satisfies() {
@@ -356,8 +337,6 @@  discard block
 block discarded – undo
356 337
  *
357 338
  * @stream
358 339
  * @signature {String: (a -> Boolean)} -> {k : a} -> Boolean
359
- * @param  array $predicates
360
- * @param  mixed $object
361 340
  * @return bool
362 341
  */
363 342
 function satisfiesAll() {
@@ -394,8 +373,6 @@  discard block
 block discarded – undo
394 373
  *
395 374
  * @stream
396 375
  * @signature {String: (a -> Boolean)} -> {k : a} -> Boolean
397
- * @param  array $predicates
398
- * @param  mixed $object
399 376
  * @return bool
400 377
  */
401 378
 function satisfiesAny() {
@@ -420,7 +397,6 @@  discard block
 block discarded – undo
420 397
  *
421 398
  * @stream
422 399
  * @signature {k: v} -> [(k,v)]
423
- * @param  array $object
424 400
  * @return array
425 401
  */
426 402
 function toPairs() {
Please login to merge, or discard this patch.
src/string.php 1 patch
Doc Comments   -28 removed lines patch added patch discarded remove patch
@@ -14,8 +14,6 @@  discard block
 block discarded – undo
14 14
  *
15 15
  * @stream
16 16
  * @signature String -> String -> [String]
17
- * @param string $delimiter
18
- * @param string $string
19 17
  * @return array
20 18
  */
21 19
 function split() {
@@ -34,8 +32,6 @@  discard block
 block discarded – undo
34 32
  *
35 33
  * @stream
36 34
  * @signature String -> [String] -> String
37
- * @param string $glue
38
- * @param array $pieces
39 35
  * @return string
40 36
  */
41 37
 function join() {
@@ -59,9 +55,6 @@  discard block
 block discarded – undo
59 55
  *
60 56
  * @stream
61 57
  * @signature String|[String] -> String|[String] -> String -> String
62
- * @param  string $search
63
- * @param  string $replacement
64
- * @param  string $string
65 58
  * @return string
66 59
  */
67 60
 function replace() {
@@ -81,9 +74,6 @@  discard block
 block discarded – undo
81 74
  *
82 75
  * @stream
83 76
  * @signature String -> String -> String -> String
84
- * @param  string $pattern
85
- * @param  string $replacement
86
- * @param  string $string
87 77
  * @return string
88 78
  */
89 79
 function regReplace() {
@@ -101,7 +91,6 @@  discard block
 block discarded – undo
101 91
  *
102 92
  * @stream
103 93
  * @signature String -> String
104
- * @param  string $string
105 94
  * @return string
106 95
  */
107 96
 function upperCase() {
@@ -119,7 +108,6 @@  discard block
 block discarded – undo
119 108
  *
120 109
  * @stream
121 110
  * @signature String -> String
122
- * @param  string $string
123 111
  * @return string
124 112
  */
125 113
 function lowerCase() {
@@ -137,7 +125,6 @@  discard block
 block discarded – undo
137 125
  *
138 126
  * @stream
139 127
  * @signature String -> String
140
- * @param  string $string
141 128
  * @return string
142 129
  */
143 130
 function camelCase() {
@@ -164,8 +151,6 @@  discard block
 block discarded – undo
164 151
  *
165 152
  * @stream
166 153
  * @signature String -> String -> String
167
- * @param  string $delimiter
168
- * @param  string $string
169 154
  * @return string
170 155
  */
171 156
 function snakeCase() {
@@ -194,8 +179,6 @@  discard block
 block discarded – undo
194 179
  *
195 180
  * @stream
196 181
  * @signature String -> String -> Boolean
197
- * @param  string $token
198
- * @param  string $string
199 182
  * @return bool
200 183
  */
201 184
 function startsWith() {
@@ -220,8 +203,6 @@  discard block
 block discarded – undo
220 203
  *
221 204
  * @stream
222 205
  * @signature String -> String -> Boolean
223
- * @param  string $token
224
- * @param  string $string
225 206
  * @return bool
226 207
  */
227 208
 function endsWith() {
@@ -246,8 +227,6 @@  discard block
 block discarded – undo
246 227
  *
247 228
  * @stream
248 229
  * @signature String -> String -> Boolean
249
- * @param  string $pattern
250
- * @param  string $string
251 230
  * @return bool
252 231
  */
253 232
 function test() {
@@ -270,8 +249,6 @@  discard block
 block discarded – undo
270 249
  *
271 250
  * @stream
272 251
  * @signature String -> String -> [String]
273
- * @param  string $pattern
274
- * @param  string $string
275 252
  * @return array
276 253
  */
277 254
 function match() {
@@ -295,8 +272,6 @@  discard block
 block discarded – undo
295 272
  *
296 273
  * @stream
297 274
  * @signature String -> String -> Number
298
- * @param  string $token
299
- * @param  string $text
300 275
  * @return int
301 276
  */
302 277
 function occurences() {
@@ -322,9 +297,6 @@  discard block
 block discarded – undo
322 297
  *
323 298
  * @stream
324 299
  * @signature String -> String -> String -> [String]
325
- * @param  string $surrounders
326
- * @param  string $separator
327
- * @param  sring $text
328 300
  * @return array
329 301
  */
330 302
 function chunks() {
Please login to merge, or discard this patch.