mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Code optimation by PHP-Code Sniffer
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
namespace Integration\Entity\Source;
|
||||
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Infinito\Repository\Source\SourceRepository;
|
||||
use Infinito\Entity\Source\PureSourceInterface;
|
||||
use Infinito\Entity\Source\PureSource;
|
||||
use Infinito\Entity\Source\PureSourceInterface;
|
||||
use Infinito\Repository\Source\SourceRepository;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
|
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace Tests\Integration\Entity\Source;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* This class tests if all needed Depencies for a source are implemented!
|
||||
@@ -22,9 +22,6 @@ class SourceIntegrationTest extends TestCase
|
||||
*/
|
||||
protected $sources;
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
*/
|
||||
private function iterate(string $path): void
|
||||
{
|
||||
$directoryIterator = new \DirectoryIterator($path);
|
||||
@@ -55,11 +52,6 @@ class SourceIntegrationTest extends TestCase
|
||||
$this->iterate(self::SOURCE_DIRECTORY);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function filterSourcePath(string $path): string
|
||||
{
|
||||
$path = str_replace('/Abstract', '/', $path);
|
||||
@@ -68,11 +60,6 @@ class SourceIntegrationTest extends TestCase
|
||||
return $path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function getInterfacePath(string $path): string
|
||||
{
|
||||
return $this->filterSourcePath($path).'Interface.php';
|
||||
|
Reference in New Issue
Block a user