@@ -50,7 +50,7 @@ |
||
50 | 50 | $output->writeln("Start composer require " . $package_name); |
51 | 51 | |
52 | 52 | $process = Process::fromShellCommandline("composer require " . $package_name); |
53 | - $process->run(function ($type, $buffer) { |
|
53 | + $process->run(function($type, $buffer) { |
|
54 | 54 | echo $buffer; |
55 | 55 | }); |
56 | 56 |
@@ -37,17 +37,17 @@ discard block |
||
37 | 37 | $package_name = $input->getArgument('package-name'); |
38 | 38 | |
39 | 39 | $process = Process::fromShellCommandline("echo Start composer require " . $package_name); |
40 | - $process->run(function ($type, $buffer) { |
|
40 | + $process->run(function($type, $buffer) { |
|
41 | 41 | echo $buffer; |
42 | 42 | }); |
43 | 43 | |
44 | 44 | $process = Process::fromShellCommandline($cd . "chmod 777 composer.json"); |
45 | - $process->run(function ($type, $buffer) { |
|
45 | + $process->run(function($type, $buffer) { |
|
46 | 46 | echo $buffer; |
47 | 47 | }); |
48 | 48 | |
49 | 49 | $process = Process::fromShellCommandline($cd . "composer require " . $package_name); |
50 | - $process->run(function ($type, $buffer) { |
|
50 | + $process->run(function($type, $buffer) { |
|
51 | 51 | echo $buffer; |
52 | 52 | }); |
53 | 53 | |
@@ -56,12 +56,12 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | $process = Process::fromShellCommandline($cd . "chmod 644 composer.json"); |
59 | - $process->run(function ($type, $buffer) { |
|
59 | + $process->run(function($type, $buffer) { |
|
60 | 60 | echo $buffer; |
61 | 61 | }); |
62 | 62 | |
63 | 63 | $process = Process::fromShellCommandline("echo Change version of " . $package_name . " is finished."); |
64 | - $process->run(function ($type, $buffer) { |
|
64 | + $process->run(function($type, $buffer) { |
|
65 | 65 | echo $buffer; |
66 | 66 | }); |
67 | 67 |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | private function getToken() |
91 | 91 | { |
92 | 92 | $token = null; |
93 | - $response = $this->client->request("GET", $this->package->getProjectUrl()."ribs-admin/packages/dist/send-token/"); |
|
93 | + $response = $this->client->request("GET", $this->package->getProjectUrl() . "ribs-admin/packages/dist/send-token/"); |
|
94 | 94 | $datas = $response->getStatusCode() == 200 ? $response->getContent() : null; |
95 | 95 | |
96 | 96 | if ($datas) { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | private function getComposerLockJson() |
111 | 111 | { |
112 | 112 | if ($this->package && !$this->package->isIsLocal()) { |
113 | - $response = $this->client->request("GET", $this->package->getProjectUrl().$this->package->getComposerLockUrl()); |
|
113 | + $response = $this->client->request("GET", $this->package->getProjectUrl() . $this->package->getComposerLockUrl()); |
|
114 | 114 | $composer_lock = $response->getStatusCode() == 200 ? $response->getContent() : null; |
115 | 115 | } else { |
116 | 116 | $composer_lock = file_get_contents('../composer.lock'); |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | "version" => $version, |
202 | 202 | ]); |
203 | 203 | |
204 | - $response = $this->client->request("POST", $this->package->getProjectUrl().'ribs-admin/packages/dist/change-version/', [ |
|
204 | + $response = $this->client->request("POST", $this->package->getProjectUrl() . 'ribs-admin/packages/dist/change-version/', [ |
|
205 | 205 | "headers" => $form_data->getPreparedHeaders()->toArray(), |
206 | 206 | "body" => $form_data->bodyToIterable() |
207 | 207 | ]); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $success = true; |
81 | 81 | if ($file) { |
82 | 82 | try { |
83 | - $file->move('../config/'.$folder, $file->getClientOriginalName()); |
|
83 | + $file->move('../config/' . $folder, $file->getClientOriginalName()); |
|
84 | 84 | } catch (FileException $exception) { |
85 | 85 | $success = false; |
86 | 86 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | $input = new ArrayInput([ |
119 | 119 | 'command' => 'ribsadmin:change-package-version', |
120 | - 'package-name' => $package_name.":".$version, |
|
120 | + 'package-name' => $package_name . ":" . $version, |
|
121 | 121 | ]); |
122 | 122 | |
123 | 123 | $output = new BufferedOutput(OutputInterface::VERBOSITY_NORMAL, true); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $ch = curl_init(); |
30 | 30 | curl_setopt($ch, CURLOPT_URL, $slack_webhook); |
31 | 31 | curl_setopt($ch, CURLOPT_POST, 1); |
32 | - curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($data_json))); |
|
32 | + curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Content-Length: ' . strlen($data_json))); |
|
33 | 33 | curl_setopt($ch, CURLOPT_POSTFIELDS, $data_json); |
34 | 34 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
35 | 35 | curl_exec($ch); |
@@ -45,8 +45,7 @@ |
||
45 | 45 | ]); |
46 | 46 | |
47 | 47 | foreach ($modules as $module) { |
48 | - $navigation = json_decode(file_get_contents($this->get("ribs_admin.globals")->getBaseBundlePath |
|
49 | - ($module->getPackageName(), $module->getDevMode()) . "/Resources/json/navigation.json"), true); |
|
48 | + $navigation = json_decode(file_get_contents($this->get("ribs_admin.globals")->getBaseBundlePath($module->getPackageName(), $module->getDevMode()) . "/Resources/json/navigation.json"), true); |
|
50 | 49 | |
51 | 50 | foreach ($navigation["items"] as $item) { |
52 | 51 | if ($access_rights->testRight($item["right"]) && (!isset($item["position"]) || $item["position"] === "left")) { |