mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
[cs] remove unused imports, short array and order imports on tests
This commit is contained in:
committed by
Jaap van Otterdijk
parent
6e5fc0c312
commit
44c0ac7d5f
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user