Skip to content

Commit edf51b5

Browse files
committed
StyleCI
1 parent 8b41a80 commit edf51b5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/Illuminate/Container/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ protected function getCallbacksForType($abstract, $object, array $callbacksPerTy
10461046
$results = [];
10471047

10481048
foreach ($callbacksPerType as $type => $callbacks) {
1049-
if ($type === $abstract || ( $object instanceof $type && !in_array( $type, $this->resolveStack ) ) ) {
1049+
if ($type === $abstract || ($object instanceof $type && ! in_array($type, $this->resolveStack))) {
10501050
$results = array_merge($results, $callbacks);
10511051
}
10521052
}

tests/Container/ContainerTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -384,17 +384,17 @@ public function testResolvingCallbacksAreCalledOnceForImplementations()
384384
$resolving_invocations = 0;
385385
$after_resolving_invocations = 0;
386386

387-
$container->resolving( IContainerContractStub::class, function( ) use ( &$resolving_invocations ) {
387+
$container->resolving(IContainerContractStub::class, function () use (&$resolving_invocations) {
388388
$resolving_invocations++;
389-
} );
390-
$container->afterResolving( IContainerContractStub::class, function( ) use ( &$after_resolving_invocations ) {
389+
});
390+
$container->afterResolving(IContainerContractStub::class, function () use (&$after_resolving_invocations) {
391391
$after_resolving_invocations++;
392-
} );
393-
$container->bind(IContainerContractStub::class, ContainerImplementationStub::class );
394-
$container->make( IContainerContractStub::class );
392+
});
393+
$container->bind(IContainerContractStub::class, ContainerImplementationStub::class);
394+
$container->make(IContainerContractStub::class);
395395

396-
$this->assertEquals( 1, $resolving_invocations );
397-
$this->assertEquals( 1, $after_resolving_invocations );
396+
$this->assertEquals(1, $resolving_invocations);
397+
$this->assertEquals(1, $after_resolving_invocations);
398398
}
399399

400400
public function testUnsetRemoveBoundInstances()

0 commit comments

Comments
 (0)