Skip to content

Commit

Permalink
Merge pull request #29 from antistatique/feature/fix--phpcs
Browse files Browse the repository at this point in the history
fix phpcs warnings
  • Loading branch information
WengerK authored Sep 14, 2023
2 parents b3e0b1a + 377675e commit 33ec093
Show file tree
Hide file tree
Showing 23 changed files with 33 additions and 28 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@
"license": "GPL-2.0-or-later",
"require-dev": {
"drupal/coder": "^8.3.1"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\factory_lollipop_paragraphs\FactoryType;

use Drupal\factory_lollipop\FactoryType\FactoryTypeInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\factory_lollipop\FactoryType\FactoryTypeInterface;
use Drupal\paragraphs\Entity\Paragraph;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\factory_lollipop_paragraphs\FactoryType;

use Drupal\factory_lollipop\FactoryType\FactoryTypeInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\factory_lollipop\FactoryType\FactoryTypeInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\paragraphs\Entity\ParagraphsType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\Tests\factory_lollipop_paragraphs_test\Kernel;

use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;
use Drupal\paragraphs\Entity\Paragraph;
use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;

/**
* Example of Factory Lollipop usage for Paragraph.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\Tests\factory_lollipop_paragraphs_test\Kernel;

use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;
use Drupal\paragraphs\Entity\Paragraph;
use Drupal\entity_test\Entity\EntityTest;
use Drupal\paragraphs\Entity\Paragraph;
use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;

/**
* Example of Factory Lollipop usage for Paragraph with entity reference fields.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\Tests\factory_lollipop_paragraphs_test\Kernel;

use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;
use Drupal\paragraphs\Entity\Paragraph;
use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;

/**
* Example of Factory Lollipop usage for Paragraph with fields.
Expand Down
6 changes: 3 additions & 3 deletions src/FactoryType/EntityFieldEntityReferenceFactoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Drupal\factory_lollipop\FactoryType;

use Drupal\field\Entity\FieldConfig;
use Drupal\field\FieldConfigInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\factory_lollipop\Traits\EntityReferenceTestTrait;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\FieldConfigInterface;

/**
* Creates Drupal Entity Reference Fields for use in tests.
Expand Down
4 changes: 2 additions & 2 deletions src/FactoryType/EntityFieldFactoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\factory_lollipop\FactoryType;

use Drupal\field\FieldConfigInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\field\FieldConfigInterface;

/**
* Creates Drupal Entity Fields for use in tests.
Expand Down
4 changes: 2 additions & 2 deletions src/FactoryType/FileFactoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Drupal\factory_lollipop\FactoryType;

use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\File\FileSystemInterface;
use Drupal\file\FileInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\file\FileInterface;

/**
* Creates Drupal Files for use in tests.
Expand Down
2 changes: 1 addition & 1 deletion src/FactoryType/MediaFactoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\media\MediaInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\media\MediaInterface;

/**
* Creates Drupal Medias for use in tests.
Expand Down
2 changes: 1 addition & 1 deletion src/FactoryType/MenuLinkFactoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Drupal\factory_lollipop\FactoryType;

use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\menu_link_content\MenuLinkContentInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\menu_link_content\MenuLinkContentInterface;

/**
* Creates Drupal Menu Link for use in tests.
Expand Down
4 changes: 2 additions & 2 deletions src/FactoryType/NodeFactoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Drupal\factory_lollipop\FactoryType;

use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\node\NodeInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\node\NodeInterface;

/**
* Creates Drupal Nodes for use in tests.
Expand Down
2 changes: 1 addition & 1 deletion src/FactoryType/NodeTypeFactoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Drupal\factory_lollipop\FactoryType;

use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\node\NodeTypeInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\node\NodeTypeInterface;

/**
* Creates Drupal Node Type for use in tests.
Expand Down
2 changes: 1 addition & 1 deletion src/FactoryType/TaxonomyTermFactoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\taxonomy\TermInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\taxonomy\TermInterface;

/**
* Creates Drupal Taxonomy Term for use in tests.
Expand Down
2 changes: 1 addition & 1 deletion src/FactoryType/UserFactoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Drupal\factory_lollipop\FactoryType;

use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Password\PasswordGeneratorInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\factory_lollipop\Traits\UserCreationTrait;
use Drupal\user\UserInterface;
use Drupal\Core\Password\PasswordGeneratorInterface;

/**
* Creates Drupal Users for use in tests.
Expand Down
2 changes: 1 addition & 1 deletion src/FactoryType/VocabularyFactoryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Drupal\factory_lollipop\FactoryType;

use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\taxonomy\VocabularyInterface;
use Drupal\factory_lollipop\Traits\RandomGeneratorTrait;
use Drupal\taxonomy\VocabularyInterface;

/**
* Creates Drupal Vocabulary for use in tests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\Tests\factory_lollipop_test\Kernel;

use Drupal\file\Entity\File as EntityFile;
use Drupal\media\MediaInterface;
use Drupal\media\Plugin\media\Source\File;
use Drupal\file\Entity\File as EntityFile;
use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\Tests\factory_lollipop_test\Kernel;

use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;
use Drupal\system\Entity\Menu;
use Drupal\system\MenuInterface;
use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;

/**
* Example of Factory Lollipop usage for Menu.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Drupal\Core\Url;
use Drupal\menu_link_content\Entity\MenuLinkContent;
use Drupal\menu_link_content\MenuLinkContentInterface;
use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;
use Drupal\system\Entity\Menu;
use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;

/**
* Example of Factory Lollipop usage for Menu Link.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Drupal\Tests\factory_lollipop_test\Kernel;

use Drupal\menu_link_content\MenuLinkContentInterface;
use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;
use Drupal\system\Entity\Menu;
use Drupal\Tests\factory_lollipop\Kernel\LollipopKernelTestBase;

/**
* Example of Factory Lollipop usage for Menu Link Hierarchy.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/ChainFactoryResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\Tests\factory_lollipop\Unit\Resolver;

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\factory_lollipop\FactoryInterface;
use Drupal\factory_lollipop\Resolver\ChainFactoryResolver;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Tests\UnitTestCase;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/ChainFactoryTypeResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\Tests\factory_lollipop\Unit\Resolver;

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\factory_lollipop\FactoryType\FactoryTypeInterface;
use Drupal\factory_lollipop\Resolver\ChainFactoryTypeResolver;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Tests\UnitTestCase;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/FixtureFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Drupal\factory_lollipop\FactoryType\FactoryTypeInterface;
use Drupal\factory_lollipop\FixtureFactory;
use Drupal\factory_lollipop\Resolver\ChainFactoryTypeResolver;
use Drupal\factory_lollipop\Resolver\ChainFactoryResolver;
use Drupal\factory_lollipop\Resolver\ChainFactoryTypeResolver;
use Drupal\Tests\UnitTestCase;

/**
Expand Down

0 comments on commit 33ec093

Please sign in to comment.