Skip to content

Commit

Permalink
PSR2
Browse files Browse the repository at this point in the history
  • Loading branch information
leodido committed Jul 28, 2015
1 parent 622091a commit c9e63e9
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 18 deletions.
1 change: 0 additions & 1 deletion library/Listener/ListenerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ public function validatePlugin($plugin)
));
}
}

}
2 changes: 1 addition & 1 deletion library/ModelStubInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Matryoshka doesn't provide a persistence layer implementation itself,
* but it can work with any third party component that acts as datagateway.
* To accomplish this goal Matryoshka uses criteria interfaces that developer have to implement.
* Classes implementing this interface are mainly intended to provide a set of services consumed by
* Classes implementing this interface are mainly intended to provide a set of services consumed by
* the criteria implementations.
*/
interface ModelStubInterface extends ModelPrototypeInterface
Expand Down
2 changes: 1 addition & 1 deletion library/Object/AbstractCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ public function exchangeArray($data)
$this->storage = $data;
return $storage;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ public function getPrototypeStrategy()

return $this->prototypeStrategy;
}

}
2 changes: 1 addition & 1 deletion tests/Criteria/CallbackCriteriaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function testApply()
$scope = null;
$return = ['return'];

$criteria = new CallbackCriteria(function () use (&$argv, &$scope,$return) {
$criteria = new CallbackCriteria(function () use (&$argv, &$scope, $return) {
$argv = func_get_args();
$scope = $this;
return $return;
Expand Down
2 changes: 1 addition & 1 deletion tests/Hydrator/ClassMethodsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function setUp()
$this->mockObject->expects($this->any())->method('getModel')->will($this->returnValue(null));
}

public function test__constructor()
public function testCtor()
{
$this->assertTrue($this->hydrator->getUnderscoreSeparatedKeys());
}
Expand Down
1 change: 0 additions & 1 deletion tests/Hydrator/Strategy/HasOneStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,5 @@ public function testPrototypeStrategy()

$strategy->setPrototypeStrategy($prototypeStrategy);
$this->assertInstanceOf('\Matryoshka\Model\Object\AbstractObject', $strategy->hydrate([]));

}
}
1 change: 0 additions & 1 deletion tests/Listener/ListenerManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ public function testValidatePlugin()
$pluginManager = new ListenerManager();
$pluginManager->validatePlugin(new ListenerAggregate());
}

}
2 changes: 0 additions & 2 deletions tests/Object/AbstractCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,4 @@ public function testExchangeArrayStringArgumentFail()
$ar = $this->getMockForAbstractClass(AbstractCollection::class, [['foo' => 'bar']]);
$old = $ar->exchangeArray('Bacon');
}


}
1 change: 0 additions & 1 deletion tests/TestAsset/ActiveRecordObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@
*/
class ActiveRecordObject extends AbstractActiveRecord
{

}
2 changes: 1 addition & 1 deletion tests/TestAsset/ArrayGateway/ArrayGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/**
* Class ArrayGateway
*
*
* Simple Array datagateway for mock and testing
*/
class ArrayGateway
Expand Down
4 changes: 2 additions & 2 deletions tests/TestAsset/ArrayObjectIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function next()
public function valid()
{
$key = key($this->var);
$var = ($key !== NULL && $key !== FALSE);
$var = ($key !== null && $key !== false);
return $var;
}
}
}
5 changes: 1 addition & 4 deletions tests/TestAsset/ListenerAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ class ListenerAggregate implements ListenerAggregateInterface

public function attach(EventManagerInterface $events)
{

}


}
}

0 comments on commit c9e63e9

Please sign in to comment.