Skip to content

Commit

Permalink
stanard arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBelicza committed Nov 21, 2017
1 parent b4e91a2 commit b641f5d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions src/Tool/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ protected function getSentences(): array

return array_values(
array_filter(
array_map(array($this, 'cleanSentence'), $sentences)
array_map(
[$this, 'cleanSentence'],
$sentences
)
)
);
}
Expand All @@ -165,7 +168,10 @@ protected function getWords(string $subText): array

$words = array_values(
array_filter(
array_map(array($this, 'cleanWord'), $words)
array_map(
[$this, 'cleanWord'],
$words
)
)
);

Expand Down
4 changes: 2 additions & 2 deletions src/Tool/StopWords/English.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class English extends StopWordsAbstract
*
* @var array
*/
protected $words = array(
protected $words = [
'a',
'about',
'above',
Expand Down Expand Up @@ -342,5 +342,5 @@ class English extends StopWordsAbstract
'yours',
'yourself',
'yourselves'
);
];
}
4 changes: 2 additions & 2 deletions src/Tool/StopWords/Italian.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Italian extends StopWordsAbstract
*
* @var array
*/
protected $words = array(
protected $words = [
'a',
'abbastanza',
'abbia',
Expand Down Expand Up @@ -677,5 +677,5 @@ class Italian extends StopWordsAbstract
'vostro',
'ã¨',
'è'
);
];
}

0 comments on commit b641f5d

Please sign in to comment.