Skip to content

Commit

Permalink
StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
Korbeil committed Jul 19, 2018
1 parent a0e1ccc commit 466e4de
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Service/AbstractTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ protected function format($original, $translationHtmlEncoded)

return $translation;
}
}
}
2 changes: 1 addition & 1 deletion src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function translate($string, $from, $to)
}

/**
* @param array $strings
* @param array $strings
* @param string $from
* @param string $to
*
Expand Down
6 changes: 3 additions & 3 deletions src/TranslatorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ interface TranslatorService
public function translate($string, $from, $to);

/**
* @param array $strings array of strings to translate
* @param string $from from what locale
* @param string $to to what locale
* @param array $strings array of strings to translate
* @param string $from from what locale
* @param string $to to what locale
*
* @return array Return the translated strings
*
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/AbstractTranslatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ abstract class AbstractTranslatorTest extends TestCase

public function testTranslate()
{
if ($this->translator === null) {
if (null === $this->translator) {
$this->markTestSkipped('No translator set.');
}

Expand All @@ -57,4 +57,4 @@ public function testTranslate()
$results = $this->translator->translateArray($this->requested, $this->from, $this->to);
$this->assertEquals($this->expected, $results);
}
}
}
1 change: 0 additions & 1 deletion tests/Integration/GoogleTranslatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

namespace Translation\translator\tests\Integration;

use PHPUnit\Framework\TestCase;
use Translation\Translator\Service\GoogleTranslator;

/**
Expand Down

0 comments on commit 466e4de

Please sign in to comment.