@@ -29,6 +29,7 @@ |
||
29 | 29 | * @param \Symfony\Component\Filesystem\Filesystem $filesystem |
30 | 30 | * @param \ComponentManager\Platform\Platform $platform |
31 | 31 | * @param \stdClass $options |
32 | + * @return void |
|
32 | 33 | */ |
33 | 34 | public function __construct(Filesystem $filesystem, Platform $platform, |
34 | 35 | stdClass $options); |
@@ -13,8 +13,8 @@ |
||
13 | 13 | use ComponentManager\ComponentSpecification; |
14 | 14 | use ComponentManager\ComponentVersion; |
15 | 15 | use ComponentManager\Platform\Platform; |
16 | -use stdClass; |
|
17 | 16 | use Symfony\Component\Filesystem\Filesystem; |
17 | +use stdClass; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Package repository interface. |
@@ -11,7 +11,6 @@ |
||
11 | 11 | namespace ComponentManager\Platform; |
12 | 12 | |
13 | 13 | use ComponentManager\Exception\PlatformException; |
14 | -use Symfony\Component\DependencyInjection\Definition; |
|
15 | 14 | |
16 | 15 | class PlatformFactory { |
17 | 16 | /** |
@@ -74,16 +74,16 @@ |
||
74 | 74 | if ($this->project === null) { |
75 | 75 | if ($projectFilename === null) { |
76 | 76 | $projectFilename = PlatformUtil::workingDirectory() |
77 | - . PlatformUtil::directorySeparator() |
|
78 | - . 'componentmgr.json'; |
|
77 | + . PlatformUtil::directorySeparator() |
|
78 | + . 'componentmgr.json'; |
|
79 | 79 | } else { |
80 | 80 | $projectFilename = PlatformUtil::expandPath($projectFilename); |
81 | 81 | } |
82 | 82 | |
83 | 83 | if ($projectLockFilename === null) { |
84 | 84 | $projectLockFilename = PlatformUtil::workingDirectory() |
85 | - . PlatformUtil::directorySeparator() |
|
86 | - . 'componentmgr.lock.json'; |
|
85 | + . PlatformUtil::directorySeparator() |
|
86 | + . 'componentmgr.lock.json'; |
|
87 | 87 | } else { |
88 | 88 | $projectLockFilename = PlatformUtil::expandPath( |
89 | 89 | $projectLockFilename); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @return \ComponentManager\Moodle |
53 | 53 | */ |
54 | - protected function getMoodle($moodleDirectory=null) { |
|
54 | + protected function getMoodle($moodleDirectory = null) { |
|
55 | 55 | if ($this->moodle === null) { |
56 | 56 | $moodleDirectory = ($moodleDirectory === null) |
57 | 57 | ? PlatformUtil::workingDirectory() : $moodleDirectory; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @return \ComponentManager\Project\Project |
72 | 72 | */ |
73 | - protected function getProject($projectFilename=null, $projectLockFilename=null) { |
|
73 | + protected function getProject($projectFilename = null, $projectLockFilename = null) { |
|
74 | 74 | if ($this->project === null) { |
75 | 75 | if ($projectFilename === null) { |
76 | 76 | $projectFilename = PlatformUtil::workingDirectory() |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | return new Component($componentSpecification->getName(), $versions, |
97 | - $this); |
|
97 | + $this); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * @param string|null $tagName |
54 | 54 | * @param string|null $appId |
55 | 55 | */ |
56 | - public function __construct($tagName=null, $appId=null) { |
|
56 | + public function __construct($tagName = null, $appId = null) { |
|
57 | 57 | $this->tagName = ($tagName === null) ? 'console.command' : $tagName; |
58 | 58 | $this->appId = ($appId === null) ? 'console.application' : $appId; |
59 | 59 | } |