Passed
Push — master ( f4a7a1...e8fd46 )
by Alexey
03:49
created
src/Cache/tests/CacheTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
 
29 29
         $pool->shouldReceive('getItem')->with('key')->andReturn(
30 30
             Mockery::mock(\Psr\Cache\CacheItemInterface::class)
31
-                   ->shouldReceive('get')
32
-                   ->withNoArgs()
33
-                   ->andReturn('value')
34
-                   ->getMock()
31
+                    ->shouldReceive('get')
32
+                    ->withNoArgs()
33
+                    ->andReturn('value')
34
+                    ->getMock()
35 35
         );
36 36
         $this->assertSame('value', $cache->get('key'));
37 37
 
Please login to merge, or discard this patch.
src/Mail/tests/MailerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,8 +147,8 @@
 block discarded – undo
147 147
         $eventDispatcher = new \Venta\Event\EventDispatcher();
148 148
         $mailer = new Venta\Mail\Mailer($config, $eventDispatcher);
149 149
         $message = $mailer->getMessageBuilder()
150
-                          ->setTo('[email protected]')
151
-                          ->setFrom('[email protected]');
150
+                            ->setTo('[email protected]')
151
+                            ->setFrom('[email protected]');
152 152
 
153 153
         $this->assertEquals(['[email protected]' => null], $message->getTo());
154 154
         $this->assertEquals(['[email protected]' => null], $message->getFrom());
Please login to merge, or discard this patch.
src/Container/src/Container.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
     public function __construct()
95 95
     {
96 96
         $this->setArgumentResolver(new ArgumentResolver($this))
97
-             ->setObjectInflector(new ObjectInflector($this->argumentResolver));
97
+                ->setObjectInflector(new ObjectInflector($this->argumentResolver));
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
src/Container/tests/ObjectInflectorTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
 
28 28
         // Defining expectations.
29 29
         $resolver->shouldReceive('reflectCallable')
30
-                 ->with([TestClass::class, 'setValue'])
31
-                 ->andReturn($reflection)
32
-                 ->once();
30
+                    ->with([TestClass::class, 'setValue'])
31
+                    ->andReturn($reflection)
32
+                    ->once();
33 33
         $resolver->shouldReceive('resolveArguments')
34
-                 ->with($reflection)
35
-                 ->andReturn($callback)
36
-                 ->once();
34
+                    ->with($reflection)
35
+                    ->andReturn($callback)
36
+                    ->once();
37 37
 
38 38
         // Creating inflector, setting resolver, adding inflection.
39 39
         $inflector = new ObjectInflector($resolver);
Please login to merge, or discard this patch.
src/Container/tests/ContainerTest.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -353,11 +353,11 @@  discard block
 block discarded – undo
353 353
     public function canResolveFromInvokableObject()
354 354
     {
355 355
         $factory = Mockery::mock(TestClassFactory::class)
356
-                          ->shouldReceive('__invoke')
357
-                          ->withNoArgs()
358
-                          ->andReturn(Mockery::mock(TestClassContract::class))
359
-                          ->once()
360
-                          ->getMock();
356
+                            ->shouldReceive('__invoke')
357
+                            ->withNoArgs()
358
+                            ->andReturn(Mockery::mock(TestClassContract::class))
359
+                            ->once()
360
+                            ->getMock();
361 361
 
362 362
         $container = new Venta\Container\Container;
363 363
         $container->bindFactory(TestClassContract::class, $factory);
@@ -370,11 +370,11 @@  discard block
 block discarded – undo
370 370
     public function canResolveFromObjectMethodArray()
371 371
     {
372 372
         $factory = Mockery::mock(TestClassFactory::class)
373
-                          ->shouldReceive('create')
374
-                          ->withNoArgs()
375
-                          ->andReturn(Mockery::mock(TestClassContract::class))
376
-                          ->once()
377
-                          ->getMock();
373
+                            ->shouldReceive('create')
374
+                            ->withNoArgs()
375
+                            ->andReturn(Mockery::mock(TestClassContract::class))
376
+                            ->once()
377
+                            ->getMock();
378 378
 
379 379
         $container = new Venta\Container\Container;
380 380
         $container->bindFactory(TestClassContract::class, [$factory, 'create']);
@@ -462,15 +462,15 @@  discard block
 block discarded – undo
462 462
         $reflection = new ReflectionFunction($closure);
463 463
         $resolver = Mockery::mock(\Venta\Contracts\Container\ArgumentResolver::class);
464 464
         $resolver->shouldReceive('reflectCallable')
465
-                 ->with($closure)
466
-                 ->andReturn($reflection)
467
-                 ->once();
465
+                    ->with($closure)
466
+                    ->andReturn($reflection)
467
+                    ->once();
468 468
         $resolver->shouldReceive('resolveArguments')
469
-                 ->with($reflection)
470
-                 ->andReturn(function () {
471
-                     return [new stdClass()];
472
-                 })
473
-                 ->once();
469
+                    ->with($reflection)
470
+                    ->andReturn(function () {
471
+                        return [new stdClass()];
472
+                    })
473
+                    ->once();
474 474
 
475 475
         $inflector = Mockery::mock(ObjectInflector::class);
476 476
         $inflector->shouldReceive('applyInflections');
Please login to merge, or discard this patch.
src/Framework/tests/HttpApplicationTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@
 block discarded – undo
70 70
         $middlewareCollector->shouldReceive('pushMiddleware')->with('name', 'middleware')->once();
71 71
         $strategy->shouldReceive('dispatch')->with($route)->andReturn($response)->once();
72 72
         $pipeline->shouldReceive('handle')
73
-                 ->with($request, Mockery::type(Closure::class)
74
-                 )->andReturnUsing(function ($request, $last) {
73
+                    ->with($request, Mockery::type(Closure::class)
74
+                    )->andReturnUsing(function ($request, $last) {
75 75
                 return $last($request);
76 76
             })->once();
77 77
         $emitter->shouldReceive('emit')->with($response)->once();
Please login to merge, or discard this patch.
src/Framework/tests/ErrorHandlerProviderTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $provider->provideServices($app);
34 34
         $collector = Mockery::mock(\Venta\Contracts\Routing\MiddlewareCollector::class);
35 35
         $collector->shouldReceive('pushMiddleware')
36
-                  ->with('error_handler', \Venta\Framework\ErrorHandler\ErrorHandlerMiddleware::class);
36
+                    ->with('error_handler', \Venta\Framework\ErrorHandler\ErrorHandlerMiddleware::class);
37 37
         $provider->provideMiddlewares($collector);
38 38
     }
39 39
 
Please login to merge, or discard this patch.