Skip to content

Commit

Permalink
Fixs code review (final class, return void type)
Browse files Browse the repository at this point in the history
  • Loading branch information
spras committed Feb 14, 2020
1 parent c2270cb commit 8e89751
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Feature: Importing taxonomies from csv with the command-line interface
And I should have at least the following taxonomy codes in the database:
| taxon1 |
| taxon2 |
| taxon11 |
| taxon11 |
2 changes: 1 addition & 1 deletion spec/Processor/TaxonomyProcessorSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Sylius\Component\Taxonomy\Factory\TaxonFactoryInterface;
use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface;

class TaxonomyProcessorSpec extends ObjectBehavior
final class TaxonomyProcessorSpec extends ObjectBehavior
{
public function let(
TaxonFactoryInterface $taxonFactory,
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Compiler/RegisterImporterPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private function registerImportFormBlockEvent(ContainerBuilder $container, strin
;
}

public function buildEventHookName(string $type): string
private function buildEventHookName(string $type): string
{
if (isset($this->eventHookNames[$type])) {
return $this->eventHookNames[$type];
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/services_import_spreadsheet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ services:
- "%sylius.importer.fail_on_incomplete%"
- "%sylius.importer.stop_on_failure%"
tags:
- { name: sylius.importer, type: taxonomy, format: xlsx }
- { name: sylius.importer, type: taxonomy, format: xlsx }
2 changes: 1 addition & 1 deletion tests/Behat/Context/CliTaxonomiesContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class CliTaxonomiesContext extends CliBaseContext
/**
* @Then I should have at least the following taxonomy codes in the database:
*/
public function iShouldHaveAtLeastTheFollowingTaxonomyCodesInTheDatabase(TableNode $taxonomyCodes)
public function iShouldHaveAtLeastTheFollowingTaxonomyCodesInTheDatabase(TableNode $taxonomyCodes): void
{
foreach ($taxonomyCodes as $taxonomyCode) {
$taxonomy = $this->repository->findBy(['code' => $taxonomyCode]);
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/TaxonomiesContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Tests\FriendsOfSylius\SyliusImportExportPlugin\Behat\Page\TaxonCreatePageInterface;
use Webmozart\Assert\Assert;

class TaxonomiesContext implements Context
final class TaxonomiesContext implements Context
{
/** @var TaxonCreatePageInterface */
private $taxonomyCreatePage;
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Page/TaxonCreatePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Sylius\Behat\Page\Admin\Taxon\CreatePage;
use Symfony\Component\Routing\RouterInterface;

class TaxonCreatePage extends CreatePage implements TaxonCreatePageInterface
final class TaxonCreatePage extends CreatePage implements TaxonCreatePageInterface
{
/** @var string */
protected $filesPath;
Expand Down

0 comments on commit 8e89751

Please sign in to comment.