@@ -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); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** @test */ |
| 61 | 61 | public function it_sets_a_path() |
| 62 | 62 | { |
| 63 | - $path = __DIR__ . '/stubs/module.json'; |
|
| 63 | + $path = __DIR__.'/stubs/module.json'; |
|
| 64 | 64 | $this->assertEquals($path, $this->json->getPath()); |
| 65 | 65 | |
| 66 | 66 | $this->json->setPath('some/path.json'); |
@@ -126,6 +126,6 @@ discard block |
||
| 126 | 126 | ] |
| 127 | 127 | } |
| 128 | 128 | '; |
| 129 | - $this->assertEquals($expected, (string)$this->json); |
|
| 129 | + $this->assertEquals($expected, (string) $this->json); |
|
| 130 | 130 | } |
| 131 | 131 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | public function setUp() |
| 14 | 14 | { |
| 15 | 15 | parent::setUp(); |
| 16 | - $this->module = new Module($this->app, 'Recipe', __DIR__ . '/stubs/Recipe'); |
|
| 16 | + $this->module = new Module($this->app, 'Recipe', __DIR__.'/stubs/Recipe'); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** @test */ |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** @test */ |
| 50 | 50 | public function it_gets_module_path() |
| 51 | 51 | { |
| 52 | - $this->assertEquals(__DIR__ . '/stubs/Recipe', $this->module->getPath()); |
|
| 52 | + $this->assertEquals(__DIR__.'/stubs/Recipe', $this->module->getPath()); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** @test */ |