Skip to content

Commit

Permalink
Merge pull request #192 from iranianpep/analysis-zEBvdG
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
iranianpep committed Jul 18, 2017
2 parents 6a3888b + d2e6d1e commit 1b679e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Botonomous/CommandExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Botonomous\utility\MessageUtility;
use NlpTools\Stemmers\PorterStemmer;
use NlpTools\Tokenizers\WhitespaceAndPunctuationTokenizer;
use NlpTools\Tokenizers\WhitespaceTokenizer;

/**
* Class CommandExtractor.
Expand Down
4 changes: 2 additions & 2 deletions tests/Botonomous/CommandExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public function testGetCommandWithKeywordByMessage()
$commandObject = $commandExtractor->getCommandByMessage("What's the weather like?");
$this->assertEquals($commandObjects['weather'], $commandObject);

$command = $commandExtractor->getCommandByMessage("Can you forecast the visitors?");
$command = $commandExtractor->getCommandByMessage('Can you forecast the visitors?');
$this->assertEquals($commandObjects['report'], $command);

$config = new Config();
Expand All @@ -351,7 +351,7 @@ public function testGetCommandWithKeywordByMessage()
$expected = isset($commandObjects[$defaultCommand]) ? $commandObjects[$defaultCommand] : null;

// since there is no command, it tries to get the default command but it also depends to $commandsArray
$command = $commandExtractor->getCommandByMessage("there is no command in this message and no keywords");
$command = $commandExtractor->getCommandByMessage('there is no command in this message and no keywords');
$this->assertEquals($expected, $command);

$commandContainer->setAll($originalCommands);
Expand Down

0 comments on commit 1b679e4

Please sign in to comment.