@@ -62,6 +62,9 @@ |
||
62 | 62 | . '</fieldset>'; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param \Symfony\Component\HttpFoundation\Request $superGlobals |
|
67 | + */ |
|
65 | 68 | protected function setFormOptions($superGlobals, $knownLabels) |
66 | 69 | { |
67 | 70 | $sReturn = []; |
@@ -31,10 +31,10 @@ discard block |
||
31 | 31 | |
32 | 32 | private function listOfKnownLabels($superGlobals, $knownLabels) |
33 | 33 | { |
34 | - $informatorKnownLabels = array_diff($knownLabels, ['--- List of known labels']); |
|
35 | - $tmpOptions = []; |
|
34 | + $informatorKnownLabels = array_diff($knownLabels, [ '--- List of known labels' ]); |
|
35 | + $tmpOptions = [ ]; |
|
36 | 36 | foreach ($informatorKnownLabels as $value) { |
37 | - $tmpOptions[] = '<input type="radio" name="Label" id="Label_' . $value . '" value="' . $value . '" ' |
|
37 | + $tmpOptions[ ] = '<input type="radio" name="Label" id="Label_' . $value . '" value="' . $value . '" ' |
|
38 | 38 | . $this->turnRequestedValueIntoCheckboxStatus($superGlobals, 'Label', $value) |
39 | 39 | . '/>' |
40 | 40 | . '<label for="Label_' . $value . '">' . $value . '</label>'; |
@@ -47,40 +47,40 @@ discard block |
||
47 | 47 | |
48 | 48 | private function providers($inAry) |
49 | 49 | { |
50 | - $tmpOptions = []; |
|
51 | - foreach ($this->config['Servers'] as $key => $value) { |
|
52 | - $tmpOptions[] = '<a href="' . $value['url'] . '" target="_blank">run-me</a> ' |
|
53 | - . '<input type="radio" name="' . $inAry['ConfigName'] . '" id="' |
|
54 | - . $inAry['ConfigName'] . '_' . $key . '" value="' . $key . '" ' |
|
55 | - . $this->turnRequestedValueIntoCheckboxStatus($inAry['SuperGlobals'], $inAry['ConfigName'], $key) |
|
50 | + $tmpOptions = [ ]; |
|
51 | + foreach ($this->config[ 'Servers' ] as $key => $value) { |
|
52 | + $tmpOptions[ ] = '<a href="' . $value[ 'url' ] . '" target="_blank">run-me</a> ' |
|
53 | + . '<input type="radio" name="' . $inAry[ 'ConfigName' ] . '" id="' |
|
54 | + . $inAry[ 'ConfigName' ] . '_' . $key . '" value="' . $key . '" ' |
|
55 | + . $this->turnRequestedValueIntoCheckboxStatus($inAry[ 'SuperGlobals' ], $inAry[ 'ConfigName' ], $key) |
|
56 | 56 | . '/>' |
57 | - . '<label for="' . $inAry['ConfigName'] . '_' . $key . '">' . $value['name'] . '</label>'; |
|
57 | + . '<label for="' . $inAry[ 'ConfigName' ] . '_' . $key . '">' . $value[ 'name' ] . '</label>'; |
|
58 | 58 | } |
59 | 59 | return '<fieldset style="float:left;">' |
60 | - . '<legend>' . $inAry['TitleStart'] . ' config providers</legend>' |
|
60 | + . '<legend>' . $inAry[ 'TitleStart' ] . ' config providers</legend>' |
|
61 | 61 | . implode('<br/>', $tmpOptions) |
62 | 62 | . '</fieldset>'; |
63 | 63 | } |
64 | 64 | |
65 | 65 | protected function setFormOptions($superGlobals, $knownLabels) |
66 | 66 | { |
67 | - $sReturn = []; |
|
68 | - $sReturn[] = $this->typeOfResults($superGlobals); |
|
69 | - $sReturn[] = $this->providers([ |
|
67 | + $sReturn = [ ]; |
|
68 | + $sReturn[ ] = $this->typeOfResults($superGlobals); |
|
69 | + $sReturn[ ] = $this->providers([ |
|
70 | 70 | 'SuperGlobals' => $superGlobals, |
71 | 71 | 'TitleStart' => 'Source', |
72 | 72 | 'ConfigName' => 'localConfig', |
73 | 73 | ]); |
74 | - $sReturn[] = $this->providers([ |
|
74 | + $sReturn[ ] = $this->providers([ |
|
75 | 75 | 'SuperGlobals' => $superGlobals, |
76 | 76 | 'TitleStart' => 'Target', |
77 | 77 | 'ConfigName' => 'serverConfig', |
78 | 78 | ]); |
79 | - $sReturn[] = $this->listOfKnownLabels($superGlobals, $knownLabels); |
|
79 | + $sReturn[ ] = $this->listOfKnownLabels($superGlobals, $knownLabels); |
|
80 | 80 | return '<div class="tabbertab" id="tabOptions" title="Options">' |
81 | 81 | . '<style type="text/css" media="all" scoped>label { width: auto; }</style>' |
82 | 82 | . '<form method="get" action="' |
83 | - . $_SERVER['PHP_SELF'] . '">' |
|
83 | + . $_SERVER[ 'PHP_SELF' ] . '">' |
|
84 | 84 | . '<input type="submit" value="Apply" />' |
85 | 85 | . '<br/>' . implode('', $sReturn) |
86 | 86 | . '</form>' |