@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function toArray() |
26 | 26 | { |
27 | - return array_map(function ($value) { |
|
27 | + return array_map(function($value) { |
|
28 | 28 | if ($value instanceof Module) { |
29 | 29 | return $value->json()->getAttributes(); |
30 | 30 | } |
@@ -135,7 +135,7 @@ |
||
135 | 135 | $process->setTimeout($this->timeout); |
136 | 136 | |
137 | 137 | if ($this->console instanceof Command) { |
138 | - $process->run(function ($type, $line) { |
|
138 | + $process->run(function($type, $line) { |
|
139 | 139 | $this->console->line($line); |
140 | 140 | }); |
141 | 141 | } |
@@ -122,7 +122,7 @@ |
||
122 | 122 | return json_decode($this->getContents(), 1); |
123 | 123 | } |
124 | 124 | |
125 | - return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function () { |
|
125 | + return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function() { |
|
126 | 126 | return json_decode($this->getContents(), 1); |
127 | 127 | }); |
128 | 128 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * @return mixed |
|
60 | + * @return string |
|
61 | 61 | */ |
62 | 62 | protected function getTemplateContents() |
63 | 63 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @return mixed |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | protected function getDestinationFilePath() |
76 | 76 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * @return mixed |
|
60 | + * @return string |
|
61 | 61 | */ |
62 | 62 | protected function getTemplateContents() |
63 | 63 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @return mixed |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | protected function getDestinationFilePath() |
76 | 76 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * @return mixed |
|
60 | + * @return string |
|
61 | 61 | */ |
62 | 62 | protected function getTemplateContents() |
63 | 63 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @return mixed |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | protected function getDestinationFilePath() |
76 | 76 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * @return mixed |
|
60 | + * @return string |
|
61 | 61 | */ |
62 | 62 | protected function getTemplateContents() |
63 | 63 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @return mixed |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | protected function getDestinationFilePath() |
76 | 76 | { |
@@ -12,14 +12,14 @@ discard block |
||
12 | 12 | public function setUp() |
13 | 13 | { |
14 | 14 | parent::setUp(); |
15 | - $path = __DIR__ . '/stubs/module.json'; |
|
15 | + $path = __DIR__.'/stubs/module.json'; |
|
16 | 16 | $this->json = new Json($path, $this->app['files']); |
17 | 17 | } |
18 | 18 | |
19 | 19 | /** @test */ |
20 | 20 | public function it_gets_the_file_path() |
21 | 21 | { |
22 | - $path = __DIR__ . '/stubs/module.json'; |
|
22 | + $path = __DIR__.'/stubs/module.json'; |
|
23 | 23 | |
24 | 24 | $this->assertEquals($path, $this->json->getPath()); |
25 | 25 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** @test */ |
52 | 52 | public function it_makes_json_class() |
53 | 53 | { |
54 | - $path = __DIR__ . '/stubs/module.json'; |
|
54 | + $path = __DIR__.'/stubs/module.json'; |
|
55 | 55 | $json = Json::make($path, $this->app['files']); |
56 | 56 | |
57 | 57 | $this->assertInstanceOf(Json::class, $json); |