Completed
Pull Request — develop (#7)
by
unknown
25:42 queued 15:41
created
src/TransformableCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Commands/TransformerMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
46 46
      */
47 47
     protected function getDefaultNamespace($rootNamespace)
48 48
     {
49
-        return $rootNamespace . '\Transformers';
49
+        return $rootNamespace.'\Transformers';
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
tests/TransformerTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,16 +18,16 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/TransformableCollectionTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.