[cs] remove unused imports, short array and order imports on tests

This commit is contained in:
TomasVotruba
2017-11-12 21:23:54 +01:00
committed by Jaap van Otterdijk
parent 6e5fc0c312
commit 44c0ac7d5f
6 changed files with 4 additions and 14 deletions
@@ -12,10 +12,6 @@
namespace phpDocumentor\Reflection; namespace phpDocumentor\Reflection;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\StandardTagFactory;
use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlock\Tags\See;
/** /**
* @coversNothing * @coversNothing
-2
View File
@@ -13,9 +13,7 @@
namespace phpDocumentor\Reflection; namespace phpDocumentor\Reflection;
use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\StandardTagFactory;
use phpDocumentor\Reflection\DocBlock\Tag; use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlock\Tags\See;
/** /**
* @coversNothing * @coversNothing
-1
View File
@@ -12,7 +12,6 @@
namespace phpDocumentor\Reflection\DocBlock; namespace phpDocumentor\Reflection\DocBlock;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock; use phpDocumentor\Reflection\DocBlock;
/** /**
@@ -36,18 +36,18 @@ class AlignFormatterTest extends \PHPUnit_Framework_TestCase
*/ */
public function testFormatterCallsToStringAndReturnsAStandardRepresentation() public function testFormatterCallsToStringAndReturnsAStandardRepresentation()
{ {
$tags = array( $tags = [
new Param('foobar', new String_()), new Param('foobar', new String_()),
new Version('1.2.0'), new Version('1.2.0'),
new Link('http://www.example.com', new Description('Examples')) new Link('http://www.example.com', new Description('Examples'))
); ];
$fixture = new AlignFormatter($tags); $fixture = new AlignFormatter($tags);
$expected = array( $expected = [
'@param string $foobar', '@param string $foobar',
'@version 1.2.0', '@version 1.2.0',
'@link http://www.example.com Examples' '@link http://www.example.com Examples'
); ];
foreach ($tags as $key => $tag) { foreach ($tags as $key => $tag) {
$this->assertSame( $this->assertSame(
@@ -12,7 +12,6 @@
namespace phpDocumentor\Reflection\DocBlock\Tags\Formatter; namespace phpDocumentor\Reflection\DocBlock\Tags\Formatter;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\Tags\Generic; use phpDocumentor\Reflection\DocBlock\Tags\Generic;
-2
View File
@@ -15,9 +15,7 @@ namespace phpDocumentor\Reflection\DocBlock\Tags;
use Mockery as m; use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
use phpDocumentor\Reflection\TypeResolver;
use phpDocumentor\Reflection\Types\Context; use phpDocumentor\Reflection\Types\Context;
use phpDocumentor\Reflection\Types\String_;
/** /**
* @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Source * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Source