Skip to content

Commit

Permalink
Merge pull request #7 from nihongodera/analysis-8m1x1a
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
zachleigh authored Jan 28, 2017
2 parents 3c2c89e + f7963c7 commit 752f30d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions src/Parse/NoParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ public function handle($text, array $pluginWhiteList)
private function buildToken($text)
{
return [
'literal' => $text,
'lemma' => $text,
'reading' => $text,
'literal' => $text,
'lemma' => $text,
'reading' => $text,
'pronunciation' => $text,
];
}
Expand All @@ -96,7 +96,7 @@ private function buildProperties()
{
return [
'partOfSpeech' => null,
'grammar' => null,
'grammar' => null,
];
}
}
4 changes: 2 additions & 2 deletions src/Parse/PartOfSpeech/Classes/Doushi.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public function handle(array $properties, $previousWord, $previous, array $curre
/**
* Return true if POS is hijiritsu and inflection is not meireiI.
*
* @param array $current
* @param array $current
*
* @return boolean
* @return bool
*/
protected function isHijiritsuNotMeireiI($current)
{
Expand Down
10 changes: 5 additions & 5 deletions src/Parse/PartOfSpeech/Classes/Jodoushi.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ protected function isFuhenkagataAndNorU($current)
/**
* Return true if literal is なら and previous POS is meishi.
*
* @param array $previous
* @param array $current
* @param array $previous
* @param array $current
*
* @return boolean
* @return bool
*/
protected function isNaraAndPreviousIsMeishi($previous, $current)
{
Expand All @@ -90,9 +90,9 @@ protected function isNaraAndPreviousIsMeishi($previous, $current)
/**
* Return true inflection is tokushu and literal is な.
*
* @param array $current
* @param array $current
*
* @return boolean
* @return bool
*/
protected function isTokushuAndNa($current)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Parse/PartOfSpeech/Classes/MeishiFukushikanou.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public function handle(array $properties, $previousWord, $previous, array $curre
* Return true if next inflection is tokushuDa and POS2 is not
* sahensetsuzoku.
*
* @param array $current
* @param array $next
* @param array $current
* @param array $next
*
* @return boolean
* @return bool
*/
public function isTokushuDaNotSahensetsuzoku($current, $next)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Parse/PartOfSpeech/Classes/MeishiHijiritsu.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private function jodoushigokan($properties, $previous, $current, $next)
/**
* Return true if next POS1 is joshi and next POS2 is fukushika.
*
* @param array $next
* @param array $next
*
* @return bool
*/
Expand Down Expand Up @@ -118,7 +118,7 @@ private function keiyoudoushigokan($properties, $previous, $current, $next)
* Return true if next inflection is tokushuDa and inflection form is
* taigensetsuzoku or if POS2 is rentaika.
*
* @param array $next
* @param array $next
*
* @return bool
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Library/Furigana/Furigana.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private function setTags()
$openClose = explode('{{}}', $tag);

$this->tags[$name] = [
'open' => (isset($openClose[0]) ? $openClose[0] : ''),
'open' => (isset($openClose[0]) ? $openClose[0] : ''),
'close' => (isset($openClose[1]) ? $openClose[1] : ''),
];
}
Expand Down

0 comments on commit 752f30d

Please sign in to comment.