Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from baleen/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
gsomoza committed Jul 21, 2015
2 parents e1a07e7 + 6cf2b26 commit 4682289
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/Container/ServiceProvider/HelperSetProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testRegister()

$this->assertSingletonProvided(
HelperSetProvider::SERVICE_HELPERSET,
function () use ($self, $container) {
function() use ($self, $container) {
list(, $callback) = func_get_args();
$self->assertInstanceOf(HelperSet::class, $callback());
return $container;
Expand Down
1 change: 0 additions & 1 deletion test/Container/ServiceProvider/RepositoryProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function mkdir()

namespace BaleenTest\Baleen\Container\ServiceProvider;

use Baleen\Cli\Config\AppConfig;
use Baleen\Cli\Container\ServiceProvider\AppConfigProvider;
use Baleen\Cli\Container\ServiceProvider\DefaultProvider;
use Baleen\Cli\Container\ServiceProvider\RepositoryProvider;
Expand Down
8 changes: 4 additions & 4 deletions test/Container/ServiceProvider/ServiceProviderTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function tearDown()
}

/**
* @param ServiceProvider|m\MockInterface $instance
* @param m\Mock $instance
*/
protected function setInstance($instance)
{
Expand All @@ -97,7 +97,7 @@ protected function setInstance($instance)

/**
* @param $service
* @param $callback
* @param \Closure $callback
* @return m\Mock
*/
public function assertSingletonProvided($service, $callback)
Expand All @@ -108,7 +108,7 @@ public function assertSingletonProvided($service, $callback)

/**
* @param $service
* @param $type
* @param string $type
* @param $callback
* @return m\Mock
*/
Expand Down Expand Up @@ -150,7 +150,7 @@ function(callable $factory) use ($instanceOf, $factoryArgs, $additionalAssertion
* Returns a closure that calls $callback with scope $this (this test case object), passing the service $factory
* as the first argument.
*
* @param $callback
* @param \Closure $callback
* @return \Closure
*/
protected function assertableCallback($callback)
Expand Down

0 comments on commit 4682289

Please sign in to comment.