From f7963c7b6315a14ff25e6d62d85c637b541dc3ad Mon Sep 17 00:00:00 2001 From: Zach Leigh Date: Sat, 28 Jan 2017 07:40:15 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Parse/NoParser.php | 8 ++++---- src/Parse/PartOfSpeech/Classes/Doushi.php | 4 ++-- src/Parse/PartOfSpeech/Classes/Jodoushi.php | 10 +++++----- src/Parse/PartOfSpeech/Classes/MeishiFukushikanou.php | 6 +++--- src/Parse/PartOfSpeech/Classes/MeishiHijiritsu.php | 4 ++-- src/Plugins/Library/Furigana/Furigana.php | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Parse/NoParser.php b/src/Parse/NoParser.php index 3e5b9ff..c046ed2 100644 --- a/src/Parse/NoParser.php +++ b/src/Parse/NoParser.php @@ -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, ]; } @@ -96,7 +96,7 @@ private function buildProperties() { return [ 'partOfSpeech' => null, - 'grammar' => null, + 'grammar' => null, ]; } } diff --git a/src/Parse/PartOfSpeech/Classes/Doushi.php b/src/Parse/PartOfSpeech/Classes/Doushi.php index 6352a4e..d161cf8 100644 --- a/src/Parse/PartOfSpeech/Classes/Doushi.php +++ b/src/Parse/PartOfSpeech/Classes/Doushi.php @@ -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) { diff --git a/src/Parse/PartOfSpeech/Classes/Jodoushi.php b/src/Parse/PartOfSpeech/Classes/Jodoushi.php index 90b1749..0b4e885 100644 --- a/src/Parse/PartOfSpeech/Classes/Jodoushi.php +++ b/src/Parse/PartOfSpeech/Classes/Jodoushi.php @@ -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) { @@ -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) { diff --git a/src/Parse/PartOfSpeech/Classes/MeishiFukushikanou.php b/src/Parse/PartOfSpeech/Classes/MeishiFukushikanou.php index 9b2f807..7ad37a7 100644 --- a/src/Parse/PartOfSpeech/Classes/MeishiFukushikanou.php +++ b/src/Parse/PartOfSpeech/Classes/MeishiFukushikanou.php @@ -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) { diff --git a/src/Parse/PartOfSpeech/Classes/MeishiHijiritsu.php b/src/Parse/PartOfSpeech/Classes/MeishiHijiritsu.php index cfadd8a..8abb094 100644 --- a/src/Parse/PartOfSpeech/Classes/MeishiHijiritsu.php +++ b/src/Parse/PartOfSpeech/Classes/MeishiHijiritsu.php @@ -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 */ @@ -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 */ diff --git a/src/Plugins/Library/Furigana/Furigana.php b/src/Plugins/Library/Furigana/Furigana.php index 7c7a94b..613a47a 100644 --- a/src/Plugins/Library/Furigana/Furigana.php +++ b/src/Plugins/Library/Furigana/Furigana.php @@ -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] : ''), ]; }