@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | public function getTransformerClass($class) |
53 | 53 | { |
54 | - $class = $this->getNamespace() . '\\' . $class; |
|
54 | + $class = $this->getNamespace().'\\'.$class; |
|
55 | 55 | |
56 | 56 | if (class_exists($class)) { |
57 | 57 | return $class; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | protected function getStub() |
36 | 36 | { |
37 | - return __DIR__ . '/stubs/transformer.stub'; |
|
37 | + return __DIR__.'/stubs/transformer.stub'; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -46,6 +46,6 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getDefaultNamespace($rootNamespace) |
48 | 48 | { |
49 | - return $rootNamespace . '\Transformers'; |
|
49 | + return $rootNamespace.'\Transformers'; |
|
50 | 50 | } |
51 | 51 | } |
@@ -18,16 +18,16 @@ |
||
18 | 18 | $model = Mockery::mock(MockedModel::class); |
19 | 19 | |
20 | 20 | $model->shouldReceive('doSomething') |
21 | - ->once() |
|
22 | - ->withNoArgs() |
|
23 | - ->andReturn('Ran'); |
|
21 | + ->once() |
|
22 | + ->withNoArgs() |
|
23 | + ->andReturn('Ran'); |
|
24 | 24 | |
25 | 25 | $collection = new TransformableCollection([$model]); |
26 | 26 | |
27 | 27 | $transformer = new TransformerStub(); |
28 | 28 | |
29 | 29 | $this->assertEquals(['Ran'], $transformer->transformCollection($collection) |
30 | - ->toArray()); |
|
30 | + ->toArray()); |
|
31 | 31 | } |
32 | 32 | } |
33 | 33 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | public function it_allows_transformation_with_pagination() |
57 | 57 | { |
58 | 58 | $this->collection = $this->collection->transformToWithPagination('TestUser') |
59 | - ->toArray(); |
|
59 | + ->toArray(); |
|
60 | 60 | $this->assertArrayHasKey('data', $this->collection); |
61 | 61 | $this->assertArrayHasKey('total', $this->collection); |
62 | 62 | } |