@@ -57,7 +57,7 @@ public static function queryEntityProperty(LeanMapper\Entity $entity, $field, IQ
5757 throw new MemberAccessException ("Cannot access undefined property ' $ field' in entity " . get_called_class () . '. ' );
5858 }
5959 if (!$ property ->hasRelationship ()) {
60- throw new InvalidArgumentException ("Property ' {$ property ->getName ()}' in entity " . get_called_class () . " has no relationship. " );
60+ throw new InvalidArgumentException ("Property ' {$ property ->getName ()}' in entity " . get_called_class () . " has no relationship. " );
6161 }
6262 $ class = $ property ->getType ();
6363 $ filters = $ entity ->createImplicitFilters ($ class , new Caller ($ entity , $ property ))->getFilters ();
@@ -136,12 +136,12 @@ public static function queryEntityProperty(LeanMapper\Entity $entity, $field, IQ
136136
137137 public function __call ($ name , array $ arguments )
138138 {
139- if (preg_match ('#^( ' . implode ('| ' , static ::$ magicMethodsPrefixes ). ')(.+)$# ' , $ name , $ matches )) {
139+ if (preg_match ('#^( ' . implode ('| ' , static ::$ magicMethodsPrefixes ) . ')(.+)$# ' , $ name , $ matches )) {
140140 if (count ($ arguments ) !== 1 ) {
141141 throw new InvalidMethodCallException (get_called_class () . ":: $ name expects exactly 1 argument. " . count ($ arguments ) . ' given. ' );
142142 }
143143 list ($ query ) = $ arguments ;
144- if (!$ query instanceof IQuery) {
144+ if (! $ query instanceof IQuery) {
145145 throw new InvalidArgumentException ('Argument 1 passed to ' . get_called_class () . ":: $ name must implement interface LeanMapperQuery \\IQuery. " . gettype ($ query ) . ' given. ' );
146146 }
147147 list (, $ method , $ field ) = $ matches ;
0 commit comments