Skip to content

Commit

Permalink
organize uses and fixed coding styles
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Dec 27, 2015
1 parent af72343 commit 9beb93c
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 22 deletions.
4 changes: 1 addition & 3 deletions library/PSX/Controller/Behaviour/ImporterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@

namespace PSX\Controller\Behaviour;

use PSX\Data\TransformerInterface;
use PSX\Data\Record\Importer;
use PSX\Data\Record\ImporterManager;
use PSX\Data\Record\ImporterInterface;
use PSX\Data\TransformerInterface;
use PSX\Validate\ValidatorAwareInterface;
use PSX\Validate\ValidatorInterface;

Expand Down
2 changes: 0 additions & 2 deletions library/PSX/Controller/Tool/DocumentationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
use PSX\Api\DocumentationInterface;
use PSX\Api\Resource;
use PSX\Api\Resource\Generator;
use PSX\Api\Resource\Generator\HtmlAbstract;
use PSX\Controller\ApiAbstract;
use PSX\Data\Record;
use PSX\Data\SchemaInterface;
use PSX\Data\Schema\Generator as SchemaGenerator;
use PSX\Exception;
use PSX\Http\Exception as HttpException;
Expand Down
2 changes: 1 addition & 1 deletion library/PSX/Data/Record/GraphTraverser.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function traverseValue($value, VisitorInterface $visitor)
}

/**
* Method which reveals the true value of an object if it has a known
* Method which reveals the true value of an object if it has a known
* interface. Note this resolves also all Traversable instances to an array
*
* @param mixed $object
Expand Down
5 changes: 2 additions & 3 deletions library/PSX/Data/Record/ImporterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@

namespace PSX\Data\Record;

use PSX\Data\RecordInterface;
use PSX\Data\Record\FactoryFactory;
use PSX\Data\Record\Importer;
use PSX\Data\SchemaInterface;
use PSX\Data\RecordInterface;
use PSX\Data\Schema\Assimilator;
use PSX\Data\SchemaInterface;
use PSX\Sql\TableInterface;

/**
Expand Down
1 change: 0 additions & 1 deletion library/PSX/Data/Record/Transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

namespace PSX\Data\Record;

use PSX\Data\RecordInterface;
use PSX\Data\Record\Visitor\RecordSerializeVisitor;
use PSX\Data\Record\Visitor\StdClassSerializeVisitor;

Expand Down
1 change: 0 additions & 1 deletion library/PSX/Validate/ValidatorAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use PSX\Data\Record\GraphTraverser;
use PSX\Data\Record\Visitor\ValidationVisitor;
use PSX\Validate;
use RuntimeException;

/**
* ValidatorAbstract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public function doInsert()

$this->testCase->assertInstanceOf('PSX\Data\RecordInterface', $data);

// we check that the validator is only applied for the request. If the
// importer manager is not immutable the importer would also have the
// we check that the validator is only applied for the request. If the
// importer manager is not immutable the importer would also have the
// request validator
$message = new Message([], '{"title": "foofoofoo"}');
$data = $this->importer->import($this->schemaManager->getSchema('PSX\Controller\Foo\Schema\NestedEntry'), $message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
use PSX\Loader\Context;
use PSX\Test\Environment;
use PSX\Validate;
use PSX\Validate\Property;
use PSX\Validate\Validator;

/**
* TestSchemaApiController
Expand Down
1 change: 0 additions & 1 deletion tests/PSX/Data/Record/Visitor/ValidationVisitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

use PSX\Data\Record;
use PSX\Data\Record\GraphTraverser;
use PSX\Test\Assert;
use PSX\Uri;
use PSX\Validate\ValidatorInterface;

Expand Down
2 changes: 1 addition & 1 deletion tests/PSX/Data/Record/Visitor/XmlWriterVisitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function testInvalidElementName()

$key = '';
for ($i = 0; $i <= 0x7F; $i++) {
$key.= chr($i);
$key.= chr($i);
}

$record = Record::fromArray([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@
namespace PSX\Data\Schema\Visitor;

use PSX\Data\Schema\Property;
use PSX\Data\Schema\Visitor\ValidationVisitor;
use PSX\DateTime;
use PSX\DateTime\Date;
use PSX\DateTime\Duration;
use PSX\DateTime\Time;
use PSX\Uri;
use PSX\Validate\Validator;

/**
* Checks whether the validator is called for each property
Expand Down
1 change: 0 additions & 1 deletion tests/PSX/Json/ComparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
namespace PSX\Json;

use PSX\Data\Record;
use stdClass;

/**
* ComparatorTest
Expand Down
2 changes: 1 addition & 1 deletion tests/PSX/LoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

use Monolog\Handler\NullHandler;
use Monolog\Logger;
use PSX\Dispatch\FilterInterface as DispatchFilterInterface;
use PSX\Dispatch\FilterChainInterface;
use PSX\Dispatch\FilterInterface as DispatchFilterInterface;
use PSX\Http\Request;
use PSX\Http\RequestInterface;
use PSX\Http\Response;
Expand Down

0 comments on commit 9beb93c

Please sign in to comment.