Completed
Branch master (b0fa36)
by Ronan
06:20
created
Category
src/Action/SharedAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         }
57 57
         $deploymentDir = $context->getOrThrow('deployment_dir', 'Invalid or missing deployment directory');
58 58
         // Get the shared items from the configuration object
59
-        $shared     = $configuration->get('shared', []);
59
+        $shared = $configuration->get('shared', []);
60 60
         if (0 == count($shared)) {
61 61
             $this->info(
62 62
                 $deployment,
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 ]
80 80
             );
81 81
             foreach ($shared['folders'] as $folder) {
82
-                $sharedDir      = File::join($sharedBaseDir, $folder);
82
+                $sharedDir = File::join($sharedBaseDir, $folder);
83 83
                 $thisDeploymentDir = File::join($deploymentDir, $folder);
84 84
 
85 85
                 // Create the shared directory if needed
Please login to merge, or discard this patch.
src/Action/CheckoutAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             $project,
64 64
             $deployment,
65 65
             $deploymentDir,
66
-            function ($type, $header, $detail = '') use ($deployment) {
66
+            function($type, $header, $detail = '') use ($deployment) {
67 67
                 $this->eventFinder->event(
68 68
                     $type,
69 69
                     $deployment,
Please login to merge, or discard this patch.
src/Action/ScanConfigurationAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $remoteConfiguration = $this->provider->scanConfiguration(
44 44
             $project,
45 45
             $deployment,
46
-            function ($type, $header, $detail = '') use ($deployment) {
46
+            function($type, $header, $detail = '') use ($deployment) {
47 47
                 $this->eventFinder->event(
48 48
                     $type,
49 49
                     $deployment,
Please login to merge, or discard this patch.
src/Action/ComposerAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
                 "Command - {$command}",
54 54
             ]
55 55
         );
56
-        $process      = new Process(
56
+        $process = new Process(
57 57
             explode(' ', $command),
58 58
             $deploymentDir,
59 59
             [
Please login to merge, or discard this patch.
src/Queue/DeployJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
             $builder->run(
110 110
                 $configuration,
111 111
                 $context,
112
-                function ($data) use ($project) {
112
+                function($data) use ($project) {
113 113
                     Log::debug($data, [
114 114
                         'project' => $project->toArray(),
115 115
                     ]);
Please login to merge, or discard this patch.
src/Queue/ReactivateJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
             $builder->run(
103 103
                 $configuration,
104 104
                 $context,
105
-                function ($data) use ($project) {
105
+                function($data) use ($project) {
106 106
                     Log::debug($data, [
107 107
                         'project' => $project->toArray(),
108 108
                     ]);
Please login to merge, or discard this patch.
src/Notifier/NotifierProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
      */
27 27
     public function register(Container $container)
28 28
     {
29
-        $container->share(SlackAdaptor::class, function () {
29
+        $container->share(SlackAdaptor::class, function() {
30 30
             return new SlackAdaptor();
31 31
         });
32 32
 
33
-        $container->share(Manager::class, function ($c) {
33
+        $container->share(Manager::class, function($c) {
34 34
             $manager = new Manager();
35 35
             $manager->registerAdaptor($c->get(SlackAdaptor::class));
36 36
 
Please login to merge, or discard this patch.
src/Provider/Github.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @var string
34 34
      */
35
-    protected $headUrl     = 'https://api.github.com/repos/{repository}/git/refs/heads/{branch}';
35
+    protected $headUrl = 'https://api.github.com/repos/{repository}/git/refs/heads/{branch}';
36 36
 
37 37
     /**
38 38
      * @var string
39 39
      */
40
-    protected $commitUrl   = 'https://api.github.com/repos/{repository}/commits/{sha}';
40
+    protected $commitUrl = 'https://api.github.com/repos/{repository}/commits/{sha}';
41 41
 
42 42
     /**
43 43
      * @var string
@@ -47,22 +47,22 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * @var string
49 49
      */
50
-    protected $configUrl   = 'https://api.github.com/repos/{repository}/contents/deploy.yaml?ref={sha}';
50
+    protected $configUrl = 'https://api.github.com/repos/{repository}/contents/deploy.yaml?ref={sha}';
51 51
 
52 52
     /**
53 53
      * @var string
54 54
      */
55
-    protected $repoUrl     = 'https://github.com/{repository}';
55
+    protected $repoUrl = 'https://github.com/{repository}';
56 56
 
57 57
     /**
58 58
      * @var string
59 59
      */
60
-    protected $branchUrl   = 'https://github.com/{repository}/tree/{branch}';
60
+    protected $branchUrl = 'https://github.com/{repository}/tree/{branch}';
61 61
 
62 62
     /**
63 63
      * @var string
64 64
      */
65
-    protected $shaUrl      = 'https://github.com/{repository}/commit/{sha}';
65
+    protected $shaUrl = 'https://github.com/{repository}/commit/{sha}';
66 66
 
67 67
     /**
68 68
      * Class constructor
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         }
173 173
         $statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
174 174
         curl_close($curl);
175
-        if($statusCode != 200){
175
+        if ($statusCode != 200) {
176 176
             $data = json_decode($data, true);
177 177
             $closure(
178 178
                 'error',
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
         $statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
281 281
         curl_close($curl);
282 282
         fclose($handle);
283
-        if($statusCode != 200){
283
+        if ($statusCode != 200) {
284 284
             $closure(
285 285
                 'error',
286 286
                 'Error downloading codebase',
Please login to merge, or discard this patch.
src/Provider/ProviderProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,19 +23,19 @@
 block discarded – undo
23 23
     public function register(Container $container)
24 24
     {
25 25
         // Github
26
-        $container->share(Github::class, function ($c){
26
+        $container->share(Github::class, function($c) {
27 27
             $token = Settings::get('providers.github.token');
28 28
 
29 29
             return new Github($token);
30 30
         });
31 31
         // Gitlab
32
-        $container->share(Gitlab::class, function ($c){
32
+        $container->share(Gitlab::class, function($c) {
33 33
             $token = Settings::get('providers.gitlab.token');
34 34
 
35 35
             return new Gitlab($token);
36 36
         });
37 37
 
38
-        $container->share(Factory::class, function ($c) {
38
+        $container->share(Factory::class, function($c) {
39 39
             $factory = new Factory();
40 40
             $factory->addProvider($c->get(Github::class));
41 41
             $factory->addProvider($c->get(Gitlab::class));
Please login to merge, or discard this patch.