Skip to content

Commit 1e76176

Browse files
committed
Format all *.php code; add some missing typehints
1 parent 0204655 commit 1e76176

17 files changed

Lines changed: 18 additions & 46 deletions

LeanMapperQuery/Caller.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* for the Lean Mapper library (http://leanmapper.com)
66
* Copyright (c) 2013 Michal Bohuslávek
77
*/
8-
98
namespace LeanMapperQuery;
109

1110
/**

LeanMapperQuery/Entity.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@
55
* for the Lean Mapper library (http://leanmapper.com)
66
* Copyright (c) 2013 Michal Bohuslávek
77
*/
8-
98
namespace LeanMapperQuery;
109

1110
use LeanMapper;
12-
use LeanMapper\Filtering;
13-
use LeanMapper\Fluent;
14-
use LeanMapper\Reflection\Property;
15-
use LeanMapper\Relationship;
16-
use LeanMapper\Result;
1711
use LeanMapperQuery\Caller;
1812
use LeanMapperQuery\Exception\InvalidArgumentException;
1913
use LeanMapperQuery\Exception\InvalidMethodCallException;
2014
use LeanMapperQuery\Exception\InvalidRelationshipException;
2115
use LeanMapperQuery\Exception\InvalidStateException;
2216
use LeanMapperQuery\Exception\MemberAccessException;
2317
use LeanMapperQuery\IQuery;
18+
use LeanMapper\Filtering;
19+
use LeanMapper\Fluent;
20+
use LeanMapper\Reflection\Property;
21+
use LeanMapper\Relationship;
22+
use LeanMapper\Result;
2423

2524
/**
2625
* @author Michal Bohuslávek
@@ -83,7 +82,6 @@ public static function queryEntityProperty(LeanMapper\Entity $entity, $field, IQ
8382
$targetTable = $relationship->getTargetTable();
8483
$referencingColumn = $relationship->getColumnReferencingSourceTable();
8584
$rows = $entity->row->referencing($targetTable, $referencingColumn, new Filtering($filters), $strategy);
86-
8785
} elseif ($relationship instanceof Relationship\HasMany) {
8886
$filters[] = function (Fluent $fluent) use ($mapper, $query) {
8987
$query->applyQuery($fluent, $mapper, new QueryTarget\HasManyTargetTable);
@@ -148,10 +146,8 @@ public function __call($name, array $arguments)
148146
list(, $method, $field) = $matches;
149147
$field = lcfirst($field);
150148
return $this->$method($field, $query);
151-
152149
} else {
153150
return parent::__call($name, $arguments);
154151
}
155152
}
156-
157153
}

LeanMapperQuery/Exception/Exception.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* for the Lean Mapper library (http://leanmapper.com)
66
* Copyright (c) 2013 Michal Bohuslávek
77
*/
8-
98
namespace LeanMapperQuery\Exception;
109

1110
/**

LeanMapperQuery/Exception/InvalidArgumentException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* for the Lean Mapper library (http://leanmapper.com)
66
* Copyright (c) 2013 Michal Bohuslávek
77
*/
8-
98
namespace LeanMapperQuery\Exception;
109

1110
/**

LeanMapperQuery/Exception/InvalidMethodCallException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* for the Lean Mapper library (http://leanmapper.com)
66
* Copyright (c) 2013 Michal Bohuslávek
77
*/
8-
98
namespace LeanMapperQuery\Exception;
109

1110
/**

LeanMapperQuery/Exception/InvalidRelationshipException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* for the Lean Mapper library (http://leanmapper.com)
66
* Copyright (c) 2013 Michal Bohuslávek
77
*/
8-
98
namespace LeanMapperQuery\Exception;
109

1110
/**

LeanMapperQuery/Exception/InvalidStateException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* for the Lean Mapper library (http://leanmapper.com)
66
* Copyright (c) 2013 Michal Bohuslávek
77
*/
8-
98
namespace LeanMapperQuery\Exception;
109

1110
/**

LeanMapperQuery/Exception/MemberAccessException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* for the Lean Mapper library (http://leanmapper.com)
66
* Copyright (c) 2013 Michal Bohuslávek
77
*/
8-
98
namespace LeanMapperQuery\Exception;
109

1110
/**

LeanMapperQuery/Exception/NonExistingMethodException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* for the Lean Mapper library (http://leanmapper.com)
66
* Copyright (c) 2013 Michal Bohuslávek
77
*/
8-
98
namespace LeanMapperQuery\Exception;
109

1110
/**

LeanMapperQuery/Exception/NotImplementedException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* This file is part of the LeanMapperQuery extension
55
* for the Lean Mapper library (http://leanmapper.com)
66
*/
7-
87
namespace LeanMapperQuery\Exception;
98

109
class NotImplementedException extends Exception

0 commit comments

Comments
 (0)