@@ -9,6 +9,6 @@ |
||
9 | 9 | public function buildCommandLine($command, array $arguments = array()) |
10 | 10 | { |
11 | 11 | $arguments = array_map('escapeshellarg', $arguments); |
12 | - return escapeshellcmd($command) . ' ' . implode(' ', $arguments); |
|
12 | + return escapeshellcmd($command).' '.implode(' ', $arguments); |
|
13 | 13 | } |
14 | 14 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | // wrap in a `time` call |
30 | 30 | $this->timingFile = tempnam(sys_get_temp_dir(), 'db3v4l_'); |
31 | 31 | $process->setCommandLine( |
32 | - $this->timeCmd . ' ' . escapeshellarg('--output=' . $this->timingFile) . ' ' . escapeshellarg('--format=%M %e') . ' ' |
|
32 | + $this->timeCmd.' '.escapeshellarg('--output='.$this->timingFile).' '.escapeshellarg('--format=%M %e').' ' |
|
33 | 33 | . $process->getCommandLine()); |
34 | 34 | return $process; |
35 | 35 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | // wrap in a `time` call |
42 | 42 | $this->timingFile = tempnam(sys_get_temp_dir(), 'db3v4l_'); |
43 | 43 | $process->setCommandLine( |
44 | - $this->timeCmd . ' ' . escapeshellarg('--output=' . $this->timingFile) . ' ' . escapeshellarg('--format=%M %e') . ' ' |
|
44 | + $this->timeCmd.' '.escapeshellarg('--output='.$this->timingFile).' '.escapeshellarg('--format=%M %e').' ' |
|
45 | 45 | . $process->getCommandLine()); |
46 | 46 | |
47 | 47 | return $process; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | if ($onceIsEnough) { |
73 | - unlink ($this->timingFile); |
|
73 | + unlink($this->timingFile); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | return $results; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $currentProcesses = array_splice($processesQueue, 0, $maxParallel); |
29 | 29 | // start the initial stack of processes |
30 | 30 | foreach ($currentProcesses as $idx => $process) { |
31 | - $process->start(function ($type, $buffer) use ($callback, $idx, $process) { |
|
31 | + $process->start(function($type, $buffer) use ($callback, $idx, $process) { |
|
32 | 32 | if ($callback) { |
33 | 33 | $callback($type, $buffer, $idx, $process); |
34 | 34 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | // directly add and start new process after the previous finished |
45 | 45 | if (count($processesQueue) > 0) { |
46 | 46 | $nextProcess = array_shift($processesQueue); |
47 | - $nextProcess->start(function ($type, $buffer) use ($callback, $nextProcess) { |
|
47 | + $nextProcess->start(function($type, $buffer) use ($callback, $nextProcess) { |
|
48 | 48 | if ($callback) { |
49 | 49 | $callback($type, $buffer, $nextProcess); |
50 | 50 | } |
@@ -18,8 +18,8 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function list() |
20 | 20 | { |
21 | - $docs = glob($this->docRoot . '/*.md'); |
|
22 | - array_walk($docs, function(&$path, $key) {$path = basename($path);}); |
|
21 | + $docs = glob($this->docRoot.'/*.md'); |
|
22 | + array_walk($docs, function(&$path, $key) {$path = basename($path); }); |
|
23 | 23 | return $this->render('Doc/list.html.twig', ['docs' => $docs]); |
24 | 24 | } |
25 | 25 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | // sanitize |
35 | 35 | $filename = basename($filename); |
36 | 36 | |
37 | - $filename = $this->docRoot . '/' . $filename; |
|
37 | + $filename = $this->docRoot.'/'.$filename; |
|
38 | 38 | |
39 | 39 | if (!is_file($filename)) { |
40 | 40 | throw $this->createNotFoundException("The doc file '$filename' does not exist"); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public function list(DatabaseConfigurationManager $configurationManager) |
18 | 18 | { |
19 | 19 | $instances = []; |
20 | - foreach($configurationManager->listInstances() as $instanceName) { |
|
20 | + foreach ($configurationManager->listInstances() as $instanceName) { |
|
21 | 21 | $instances[$instanceName] = $configurationManager->getInstanceConfiguration($instanceName); |
22 | 22 | } |
23 | 23 | return $this->render('Instance/list.html.twig', ['instances' => $instances]); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | $dbToDropSpecs = []; |
59 | - foreach($instanceList as $instanceName => $instanceSpecs) { |
|
59 | + foreach ($instanceList as $instanceName => $instanceSpecs) { |
|
60 | 60 | $dbToDropSpecs[$instanceName] = [ |
61 | 61 | 'dbname' => $dbName |
62 | 62 | ]; |
@@ -74,6 +74,6 @@ discard block |
||
74 | 74 | |
75 | 75 | $this->writeResults($results, $time); |
76 | 76 | |
77 | - return (int)$results['failed']; |
|
77 | + return (int) $results['failed']; |
|
78 | 78 | } |
79 | 79 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | $newDbSpecs = []; |
77 | - foreach($instanceList as $instanceName => $instanceSpecs) { |
|
77 | + foreach ($instanceList as $instanceName => $instanceSpecs) { |
|
78 | 78 | $newDbSpecs[$instanceName] = [ |
79 | 79 | 'dbname' => $dbName |
80 | 80 | ]; |
@@ -93,6 +93,6 @@ discard block |
||
93 | 93 | |
94 | 94 | $this->writeResults($results, $time); |
95 | 95 | |
96 | - return (int)$results['failed']; |
|
96 | + return (int) $results['failed']; |
|
97 | 97 | } |
98 | 98 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | $this->writeResults($results, $time); |
49 | 49 | |
50 | - return (int)$results['failed']; |
|
50 | + return (int) $results['failed']; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | return $this->executeSqlAction( |
61 | 61 | $instanceList, |
62 | 62 | 'Listing of users', |
63 | - function ($schemaManager, $instanceName) { |
|
63 | + function($schemaManager, $instanceName) { |
|
64 | 64 | /** @var DatabaseSchemaManager $schemaManager */ |
65 | 65 | return $schemaManager->getListUsersSqlAction(); |
66 | 66 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | $this->writeResults($results, $time); |
49 | 49 | |
50 | - return (int)$results['failed']; |
|
50 | + return (int) $results['failed']; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | return $this->executeSqlAction( |
61 | 61 | $instanceList, |
62 | 62 | 'Listing of collations', |
63 | - function ($schemaManager, $instanceName) { |
|
63 | + function($schemaManager, $instanceName) { |
|
64 | 64 | /** @var DatabaseSchemaManager $schemaManager */ |
65 | 65 | return $schemaManager->getListCollationsSqlAction(); |
66 | 66 | } |