Passed
Push — master ( df31bf...3cfae0 )
by Brice
02:35
created
src/Domain/Package.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         PackageConfiguration $packageConfiguration,
32 32
         ?Source $source,
33 33
         ?Dist $dist
34
-    ){
34
+    ) {
35 35
         if (is_null($source) and is_null($dist)) {
36 36
             throw new \RuntimeException(sprintf('Package "%s" must have at least a source or a dist', $name));
37 37
         }
Please login to merge, or discard this patch.
src/Application/Cli/InstallCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
 
51 51
         $composerURL = $helper->ask($input, $output, (new Question(
52 52
             'Enter the CompoLab server URL (eg. https://composer.my-website.com): '
53
-        ))->setNormalizer(function ($value) {
53
+        ))->setNormalizer(function($value) {
54 54
             return trim((string) $value);
55
-        })->setValidator(function ($value) {
55
+        })->setValidator(function($value) {
56 56
             if (!filter_var($value, FILTER_VALIDATE_URL)) {
57 57
                 throw new \InvalidArgumentException('Invalid URL');
58 58
             }
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
         $composerPublicDirPath = $helper->ask($input, $output, (new Question(
63 63
             'Enter the path to CompoLab `public` directory (leave empty to auto configure): ',
64 64
             sprintf('%s/public', $root)
65
-        ))->setNormalizer(function ($value) {
65
+        ))->setNormalizer(function($value) {
66 66
             return trim((string) $value);
67
-        })->setValidator(function ($value) {
67
+        })->setValidator(function($value) {
68 68
             if (!is_dir($value)) {
69 69
                 throw new \InvalidArgumentException('Invalid directory path');
70 70
             }
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
 
74 74
         $gitlabURL = $helper->ask($input, $output, (new Question(
75 75
             'Enter your GitLab server URL (eg. https://gitlab.my-website.com): '
76
-        ))->setNormalizer(function ($value) {
76
+        ))->setNormalizer(function($value) {
77 77
             return trim((string) $value);
78
-        })->setValidator(function ($value) {
78
+        })->setValidator(function($value) {
79 79
             if (!filter_var($value, FILTER_VALIDATE_URL)) {
80 80
                 throw new \InvalidArgumentException('Invalid URL');
81 81
             }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         $gitlabToken = $helper->ask($input, $output, (new Question(
86 86
             'Enter a valid Gitlab authentication token (url_token method): '
87
-        ))->setNormalizer(function ($value) {
87
+        ))->setNormalizer(function($value) {
88 88
             return trim((string) $value);
89 89
         })->setHidden(true));
90 90
 
Please login to merge, or discard this patch.
src/Application/GitlabRepositoryManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
         $gitlab = $project->getClient();
47 47
         $pager = new ResultPager($gitlab);
48
-        foreach ($pager->fetchall($gitlab->tags, 'all', [ $project->id ]) as $tagData) {
48
+        foreach ($pager->fetchall($gitlab->tags, 'all', [$project->id]) as $tagData) {
49 49
             try {
50 50
                 $this->registerTag(Tag::fromArray($gitlab, $project, $tagData));
51 51
 
Please login to merge, or discard this patch.
src/Application/Http/Controller/GitlabController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         if (!isset($event['project_id']) or !$project = Project::fromArray(
40 40
             $this->gitlab,
41 41
             $this->gitlab->projects()->show($event['project_id']))
42
-        ){
42
+        ) {
43 43
             throw new BadRequestHttpException('Impossible te retrieve a Gitlab project from the request');
44 44
         }
45 45
 
Please login to merge, or discard this patch.