Code optimation by PHP-Code Sniffer

This commit is contained in:
2020-04-02 21:13:35 +02:00
parent 725ca5b149
commit ac5a3f1d5a
314 changed files with 665 additions and 1688 deletions

View File

@@ -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';