Skip to content

Commit af176c5

Browse files
committed
lint: cs fix
1 parent f30304c commit af176c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/UnderscoreArray.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function unique($fn = null)
116116
return new static(\array_unique($this->data));
117117
}
118118

119-
$ids = $data = [];
119+
$ids = [];
120120
$fn = $this->valueFn($fn);
121121

122122
return $this->filter(function ($value, $index) use ($fn, &$ids) {
@@ -179,7 +179,7 @@ public function intersection($data)
179179
{
180180
$data = $this->asArray($data);
181181

182-
return $this->filter(function ($value, $index) use ($data) {
182+
return $this->filter(function ($value) use ($data) {
183183
return \in_array($value, $data);
184184
});
185185
}

src/UnderscoreCollection.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,13 @@ public function findWhere(array $props)
294294
}
295295

296296
/**
297-
* Props matcher used by where() and findWhere().
297+
* Gives props matcher callback used by where() and findWhere().
298298
*
299299
* @internal
300300
*
301301
* @param array $props Key value pairs.
302302
*
303-
* @return true
303+
* @return callable
304304
*/
305305
protected function matcher(array $props)
306306
{

0 commit comments

Comments
 (0)