Skip to content

Commit

Permalink
Normalized blank lines at the EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
mibk committed Apr 14, 2014
1 parent f21c9f7 commit 65a385e
Show file tree
Hide file tree
Showing 41 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.gitattributes export-ignore
.gitignore export-ignore
tests/ export-ignore
tests/ export-ignore
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/.idea
/_local
/vendor
/composer.lock
/composer.lock
2 changes: 1 addition & 1 deletion LeanMapper/Exception/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/
class Exception extends \Exception
{
}
}
2 changes: 1 addition & 1 deletion LeanMapper/Exception/InvalidAnnotationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/
class InvalidAnnotationException extends Exception
{
}
}
2 changes: 1 addition & 1 deletion LeanMapper/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/
class InvalidArgumentException extends Exception
{
}
}
2 changes: 1 addition & 1 deletion LeanMapper/Exception/InvalidMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/
class InvalidMethodCallException extends Exception
{
}
}
2 changes: 1 addition & 1 deletion LeanMapper/Exception/InvalidStateException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/
class InvalidStateException extends Exception
{
}
}
2 changes: 1 addition & 1 deletion LeanMapper/Exception/InvalidValueException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/
class InvalidValueException extends Exception
{
}
}
2 changes: 1 addition & 1 deletion LeanMapper/Exception/MemberAccessException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/
class MemberAccessException extends Exception
{
}
}
2 changes: 1 addition & 1 deletion LeanMapper/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/
class RuntimeException extends Exception
{
}
}
2 changes: 1 addition & 1 deletion LeanMapper/Exception/UtilityClassException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*/
class UtilityClassException extends Exception
{
}
}
4 changes: 2 additions & 2 deletions LeanMapper/IEntityFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ public function createEntity($entityClass, $arg = null);
* @return mixed
*/
public function createCollection(array $entities);
}

}
4 changes: 2 additions & 2 deletions LeanMapper/IMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ public function getTableByRepositoryClass($repositoryClass);
* @return array|ImplicitFilters
*/
public function getImplicitFilters($entityClass, Caller $caller = null);
}

}
2 changes: 1 addition & 1 deletion LeanMapper/Reflection/Aliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ public function translate($identifier)
return $return;
}

}
}
2 changes: 1 addition & 1 deletion LeanMapper/Reflection/AliasesBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ public function getAliases($namespace = '')
return new Aliases($this->aliases, $namespace);
}

}
}
2 changes: 1 addition & 1 deletion LeanMapper/Reflection/AliasesParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ public static function parseSource($source, $namespace = '')
return $builder->getAliases($namespace);
}

}
}
2 changes: 1 addition & 1 deletion LeanMapper/Relationship/BelongsToMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
*/
class BelongsToMany extends BelongsTo
{
}
}
2 changes: 1 addition & 1 deletion LeanMapper/Relationship/BelongsToOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
*/
class BelongsToOne extends BelongsTo
{
}
}
2 changes: 1 addition & 1 deletion LeanMapper/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
require_once __DIR__ . '/Reflection/PropertyType.php';
require_once __DIR__ . '/Repository.php';
require_once __DIR__ . '/Result.php';
require_once __DIR__ . '/Row.php';
require_once __DIR__ . '/Row.php';
2 changes: 1 addition & 1 deletion tests/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ php-win.ini
RunTests.bat
coverage.dat
db/library.sq3
LeanMapper/dev*.phpt
LeanMapper/dev*.phpt
2 changes: 1 addition & 1 deletion tests/LeanMapper/DefaultMapper.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Assert::equal('book_tag', $mapper->getRelationshipTable('book', 'tag'));

Assert::equal('author_id', $mapper->getRelationshipColumn('book', 'author'));

Assert::equal('author', $mapper->getTableByRepositoryClass('Model\Repository\AuthorRepository'));
Assert::equal('author', $mapper->getTableByRepositoryClass('Model\Repository\AuthorRepository'));
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.assign.1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ $book->author = $author;
$result = $book->getModifiedRowData();
list($key, $value) = each($result);

Assert::equal(array('author_customid' => 1), $book->getRowData());
Assert::equal(array('author_customid' => 1), $book->getRowData());
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.assign.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ Assert::exception(function () use ($book) {

Assert::exception(function () use ($book) {
$book->assign('hello');
}, 'LeanMapper\Exception\InvalidArgumentException', 'Argument $values in Book::assign must contain either array or instance of Traversable, string given.');
}, 'LeanMapper\Exception\InvalidArgumentException', 'Argument $values in Book::assign must contain either array or instance of Traversable, string given.');
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.assignment.1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ Assert::equal(array (

$book->author = $author;

Assert::type('Author', $book->author);
Assert::type('Author', $book->author);
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.construct.defaults.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ Assert::exception(function () use ($book) {

Assert::exception(function () use ($book) {
$book->getData();
}, 'LeanMapper\Exception\Exception', "Cannot get value of property 'id' in entity Book due to low-level failure: missing 'id' column in row with id -1.");
}, 'LeanMapper\Exception\Exception', "Cannot get value of property 'id' in entity Book due to low-level failure: missing 'id' column in row with id -1.");
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.construct.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ $row->detach();

Assert::exception(function () use ($row) {
new Book($row);
}, 'LeanMapper\Exception\InvalidArgumentException', 'It is not allowed to create entity Book from detached instance of LeanMapper\Row.');
}, 'LeanMapper\Exception\InvalidArgumentException', 'It is not allowed to create entity Book from detached instance of LeanMapper\Row.');
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.defaults.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ Assert::equal(null, $property->getDefaultValue());

Assert::exception(function () use ($entityReflection) {
PropertyFactory::createFromAnnotation('property', 'DateTime $created = 10', $entityReflection);
}, 'LeanMapper\Exception\InvalidAnnotationException', "Invalid property definition given: @property DateTime \$created = 10 in entity EmptyEntity, only properties of basic types may have default values specified.");
}, 'LeanMapper\Exception\InvalidAnnotationException', "Invalid property definition given: @property DateTime \$created = 10 in entity EmptyEntity, only properties of basic types may have default values specified.");
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.emptyQuery.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ $book->attach(1);

$book->getData();

Assert::equal(0, count($queries));
Assert::equal(0, count($queries));
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.enum.1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ Assert::equal(ExtraAuthor::TYPE_EXTRA, $author->type);

$author->stateUse = DbLayer::ATTR_CASE; // usage of use statement

Assert::equal(PDO::ATTR_CASE, $author->stateUse);
Assert::equal(PDO::ATTR_CASE, $author->stateUse);
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.enum.2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ Assert::equal(Project::STATE_CREATED, $project->state);

Assert::throws(function () use ($project) {
$project->state = 'reopened';
}, 'LeanMapper\Exception\InvalidValueException', "Given value is not from possible values enumeration in property 'state' in entity Project.");
}, 'LeanMapper\Exception\InvalidValueException', "Given value is not from possible values enumeration in property 'state' in entity Project.");
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.filters.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ $connection->registerFilter('sixth', 'exit', Connection::WIRE_ENTITY_AND_PROPERT
Assert::equal('ep', $connection->getWiringSchema('sixth'));

$connection->registerFilter('seventh', 'exit');
Assert::equal('', $connection->getWiringSchema('seventh'));
Assert::equal('', $connection->getWiringSchema('seventh'));
4 changes: 2 additions & 2 deletions tests/LeanMapper/Entity.getRowData.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AuthorRepository extends LeanMapper\Repository
}
return $this->createEntity($entry);
}

}

//////////
Expand Down Expand Up @@ -66,4 +66,4 @@ Assert::equal(array(
'id' => 3,
'name' => 'Martin Fowler',
'web' => null
), $author->getRowData());
), $author->getRowData());
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.propertyRead.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ Assert::exception(function () use ($author) {

Assert::exception(function () use ($author) {
$author->setName('test');
}, 'LeanMapper\Exception\MemberAccessException', "Cannot write to read-only property 'name' in entity Author.");
}, 'LeanMapper\Exception\MemberAccessException', "Cannot write to read-only property 'name' in entity Author.");
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.scope.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ Assert::equal('http://martinfowler.com', $author->web);

$author->web = 'http://www.leanmapper.com';

Assert::equal('http://www.leanmapper.com', $author->web);
Assert::equal('http://www.leanmapper.com', $author->web);
2 changes: 1 addition & 1 deletion tests/LeanMapper/Entity.types.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ $dibiRow = new DibiRow(array(
$book = new Book(Result::createInstance($dibiRow, 'book', $connection, $mapper)->getRow(Result::DETACHED_ROW_ID));

Assert::type('DibiDateTime', $book->published);
Assert::type('DateTime', $book->published);
Assert::type('DateTime', $book->published);
2 changes: 1 addition & 1 deletion tests/LeanMapper/EntityFactory.createCollection.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ $authors = $authorRepository->findAll();

Assert::type('ArrayObject', $authors);

Assert::equal(5, count($authors));
Assert::equal(5, count($authors));
2 changes: 1 addition & 1 deletion tests/LeanMapper/Repository.events.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ Assert::equal(array(
'before persist: John Doe',
'before create: John Doe',
'after persist: John Doe',
), $log->getArrayCopy());
), $log->getArrayCopy());
2 changes: 1 addition & 1 deletion tests/LeanMapper/Repository.persistence.1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ Assert::equal(7, $author->id);

Assert::exception(function () use ($authorRepository, $author) {
$author->id = 8;
}, 'LeanMapper\Exception\InvalidArgumentException', "ID can only be set in detached rows.");
}, 'LeanMapper\Exception\InvalidArgumentException', "ID can only be set in detached rows.");
2 changes: 1 addition & 1 deletion tests/LeanMapper/Result.cleanReferencingResultsCache.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ Assert::equal('popular,ebook', implodeTags($book->tags));

$book->refreshTags();

Assert::equal('ebook', implodeTags($book->tags));
Assert::equal('ebook', implodeTags($book->tags));
2 changes: 1 addition & 1 deletion tests/LeanMapper/Row.isset.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ $row = new Row(Result::createInstance(new DibiRow(array('id' => 1, 'name' => tru

Assert::true(isset($row->name));

Assert::false(isset($row->test));
Assert::false(isset($row->test));
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ class TestMapper extends DefaultMapper

$mapper = new TestMapper;

$entityFactory = new DefaultEntityFactory;
$entityFactory = new DefaultEntityFactory;

0 comments on commit 65a385e

Please sign in to comment.