Completed
Push — master ( bcb1fd...6ec4f0 )
by Daniel
03:36
created
source/CompareTable.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -35,15 +35,15 @@  discard block
 block discarded – undo
35 35
 
36 36
     protected function displayTableFromMultiLevelArray($inArray)
37 37
     {
38
-        if ((!is_array($inArray['source'])) || (!is_array($inArray['destination']))) {
38
+        if ((!is_array($inArray[ 'source' ])) || (!is_array($inArray[ 'destination' ]))) {
39 39
             return '';
40 40
         }
41
-        $this->superGlobals = $inArray['SuperGlobals'];
41
+        $this->superGlobals = $inArray[ 'SuperGlobals' ];
42 42
         return '<table style="width:100%">'
43
-                . $this->tableHeader(['Servers' => $inArray['Servers']])
43
+                . $this->tableHeader([ 'Servers' => $inArray[ 'Servers' ] ])
44 44
                 . $this->tableBody([
45
-                    'source'      => $inArray['source'],
46
-                    'destination' => $inArray['destination'],
45
+                    'source'      => $inArray[ 'source' ],
46
+                    'destination' => $inArray[ 'destination' ],
47 47
                 ])
48 48
                 . '</table>';
49 49
     }
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
 
60 60
     private function displayTableRow($inArray)
61 61
     {
62
-        $sString = $inArray['rowContent'];
63
-        if ($inArray['displayOnlyDifferent']) {
64
-            if ($inArray['first'] == $inArray['second']) {
62
+        $sString = $inArray[ 'rowContent' ];
63
+        if ($inArray[ 'displayOnlyDifferent' ]) {
64
+            if ($inArray[ 'first' ] == $inArray[ 'second' ]) {
65 65
                 $sString = '';
66
-            } elseif ($inArray['first'] != $inArray['second']) {
67
-                $sString = $inArray['rowContent'];
66
+            } elseif ($inArray[ 'first' ] != $inArray[ 'second' ]) {
67
+                $sString = $inArray[ 'rowContent' ];
68 68
             }
69 69
         }
70 70
         return $sString;
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
 
73 73
     private function prepareArrayForTableBody($inArray)
74 74
     {
75
-        $source    = $inArray['source'];
76
-        $dest      = $inArray['destination'];
77
-        $firstRow  = $this->mergeArraysIntoFirstSecond($source, $dest, ['first', 'second']);
78
-        $secondRow = $this->mergeArraysIntoFirstSecond($dest, $source, ['second', 'first']);
75
+        $source    = $inArray[ 'source' ];
76
+        $dest      = $inArray[ 'destination' ];
77
+        $firstRow  = $this->mergeArraysIntoFirstSecond($source, $dest, [ 'first', 'second' ]);
78
+        $secondRow = $this->mergeArraysIntoFirstSecond($dest, $source, [ 'second', 'first' ]);
79 79
         $row       = array_merge($firstRow, $secondRow);
80 80
         ksort($row);
81 81
         return $row;
@@ -85,32 +85,32 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $row                  = $this->prepareArrayForTableBody($inArray);
87 87
         $displayOnlyDifferent = $this->decideDisplayAllOrOnlyDifferent();
88
-        $aString              = [];
88
+        $aString              = [ ];
89 89
         foreach ($row as $key => $value) {
90
-            $rowString = '<tr><td style="width:20%;">' . $key . '</td><td style="width:40%;">'
91
-                    . str_replace(',', ', ', $value['first']) . '</td><td style="width:40%;">'
92
-                    . str_replace(',', ', ', $value['second']) . '</td></tr>';
93
-            $aString[] = $this->displayTableRow([
90
+            $rowString = '<tr><td style="width:20%;">'.$key.'</td><td style="width:40%;">'
91
+                    . str_replace(',', ', ', $value[ 'first' ]).'</td><td style="width:40%;">'
92
+                    . str_replace(',', ', ', $value[ 'second' ]).'</td></tr>';
93
+            $aString[ ] = $this->displayTableRow([
94 94
                 'rowContent'           => $rowString,
95 95
                 'displayOnlyDifferent' => $displayOnlyDifferent,
96
-                'first'                => $value['first'],
97
-                'second'               => $value['second'],
96
+                'first'                => $value[ 'first' ],
97
+                'second'               => $value[ 'second' ],
98 98
             ]);
99 99
         }
100
-        return '<tbody>' . implode('', $aString) . '</tbody>';
100
+        return '<tbody>'.implode('', $aString).'</tbody>';
101 101
     }
102 102
 
103 103
     private function tableHeader($inArray)
104 104
     {
105
-        $urlArguments = '?Label=' . $this->superGlobals->get('Label');
105
+        $urlArguments = '?Label='.$this->superGlobals->get('Label');
106 106
         return '<thead><tr>'
107 107
                 . '<th>Identifier</th>'
108
-                . '<th><a href="' . $inArray['Servers'][$this->superGlobals->get('localConfig')]['url']
109
-                . $urlArguments . '" target="_blank">'
110
-                . $inArray['Servers'][$this->superGlobals->get('localConfig')]['name'] . '</a></th>'
111
-                . '<th><a href="' . $inArray['Servers'][$this->superGlobals->get('serverConfig')]['url']
112
-                . $urlArguments . '" target="_blank">'
113
-                . $inArray['Servers'][$this->superGlobals->get('serverConfig')]['name'] . '</a></th>'
108
+                . '<th><a href="'.$inArray[ 'Servers' ][ $this->superGlobals->get('localConfig') ][ 'url' ]
109
+                . $urlArguments.'" target="_blank">'
110
+                . $inArray[ 'Servers' ][ $this->superGlobals->get('localConfig') ][ 'name' ].'</a></th>'
111
+                . '<th><a href="'.$inArray[ 'Servers' ][ $this->superGlobals->get('serverConfig') ][ 'url' ]
112
+                . $urlArguments.'" target="_blank">'
113
+                . $inArray[ 'Servers' ][ $this->superGlobals->get('serverConfig') ][ 'name' ].'</a></th>'
114 114
                 . '</tr></thead>';
115 115
     }
116 116
 }
Please login to merge, or discard this patch.
source/OutputFormBuilder.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -34,15 +34,15 @@  discard block
 block discarded – undo
34 34
 
35 35
     private function listOfKnownLabels($inArray)
36 36
     {
37
-        $informatorLabels = array_diff($inArray['KnownLabels'], ['--- List of known labels']);
38
-        $tmpOptions            = [];
37
+        $informatorLabels = array_diff($inArray[ 'KnownLabels' ], [ '--- List of known labels' ]);
38
+        $tmpOptions = [ ];
39 39
         foreach ($informatorLabels as $value) {
40
-            $tmpOptions[] = '<input type="radio" name="Label" id="Label_' . $value . '" value="' . $value . '" '
40
+            $tmpOptions[ ] = '<input type="radio" name="Label" id="Label_'.$value.'" value="'.$value.'" '
41 41
                     . $this->turnRequestedValueIntoCheckboxStatus([
42 42
                         'CheckedValue'  => $value,
43 43
                         'RequestedName' => 'Label',
44 44
                     ])
45
-                    . '/><label for="Label_' . $value . '">' . $value . '</label>';
45
+                    . '/><label for="Label_'.$value.'">'.$value.'</label>';
46 46
         }
47 47
         return '<fieldset style="float:left;">'
48 48
                 . '<legend>Informator Label to use</legend>'
@@ -52,20 +52,20 @@  discard block
 block discarded – undo
52 52
 
53 53
     private function providers($inArray)
54 54
     {
55
-        $tmpOptions = [];
56
-        foreach ($inArray['Servers'] as $key => $value) {
57
-            $tmpOptions[] = '<a href="' . $value['url'] . '" target="_blank">run-me</a>&nbsp;'
58
-                    . '<input type="radio" name="' . $inArray['ConfigName'] . '" id="'
59
-                    . $inArray['ConfigName'] . '_' . $key . '" value="' . $key . '" '
55
+        $tmpOptions = [ ];
56
+        foreach ($inArray[ 'Servers' ] as $key => $value) {
57
+            $tmpOptions[ ] = '<a href="'.$value[ 'url' ].'" target="_blank">run-me</a>&nbsp;'
58
+                    . '<input type="radio" name="'.$inArray[ 'ConfigName' ].'" id="'
59
+                    . $inArray[ 'ConfigName' ].'_'.$key.'" value="'.$key.'" '
60 60
                     . $this->turnRequestedValueIntoCheckboxStatus([
61 61
                         'CheckedValue'  => (string) $key,
62
-                        'RequestedName' => $inArray['ConfigName'],
62
+                        'RequestedName' => $inArray[ 'ConfigName' ],
63 63
                     ])
64 64
                     . '/>'
65
-                    . '<label for="' . $inArray['ConfigName'] . '_' . $key . '">' . $value['name'] . '</label>';
65
+                    . '<label for="'.$inArray[ 'ConfigName' ].'_'.$key.'">'.$value[ 'name' ].'</label>';
66 66
         }
67 67
         return '<fieldset style="float:left;">'
68
-                . '<legend>' . $inArray['TitleStart'] . ' config providers</legend>'
68
+                . '<legend>'.$inArray[ 'TitleStart' ].' config providers</legend>'
69 69
                 . implode('<br/>', $tmpOptions)
70 70
                 . '</fieldset>';
71 71
     }
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
         return '<div class="tabbertab" id="tabOptions" title="Options">'
77 77
                 . '<style type="text/css" media="all" scoped>label { width: auto; }</style>'
78 78
                 . '<form method="get" action="'
79
-                . $inArray['SuperGlobals']->server->get('PHP_SELF')
79
+                . $inArray[ 'SuperGlobals' ]->server->get('PHP_SELF')
80 80
                 . '">'
81 81
                 . '<input type="submit" value="Apply" />'
82
-                . '<br/>' . implode('', $sReturn)
82
+                . '<br/>'.implode('', $sReturn)
83 83
                 . '</form>'
84 84
                 . '<div style="float:none;clear:both;height:1px;">&nbsp;</div>'
85 85
                 . '</div><!--from tabOptions-->';
@@ -87,32 +87,32 @@  discard block
 block discarded – undo
87 87
 
88 88
     private function setFormOptions($inArray)
89 89
     {
90
-        $this->defaults     = $inArray['Defaults'];
91
-        $this->superGlobals = $inArray['SuperGlobals'];
92
-        $sReturn            = [];
93
-        $sReturn[]          = $this->typeOfResults();
94
-        $sReturn[]          = $this->providers([
90
+        $this->defaults     = $inArray[ 'Defaults' ];
91
+        $this->superGlobals = $inArray[ 'SuperGlobals' ];
92
+        $sReturn            = [ ];
93
+        $sReturn[ ]          = $this->typeOfResults();
94
+        $sReturn[ ]          = $this->providers([
95 95
             'ConfigName' => 'localConfig',
96
-            'Servers'    => $inArray['Servers'],
96
+            'Servers'    => $inArray[ 'Servers' ],
97 97
             'TitleStart' => 'Source',
98 98
         ]);
99
-        $sReturn[]          = $this->providers([
99
+        $sReturn[ ] = $this->providers([
100 100
             'ConfigName' => 'serverConfig',
101
-            'Servers'    => $inArray['Servers'],
101
+            'Servers'    => $inArray[ 'Servers' ],
102 102
             'TitleStart' => 'Target',
103 103
         ]);
104
-        $sReturn[]          = $this->listOfKnownLabels(['KnownLabels' => $inArray['KnownLabels']]);
104
+        $sReturn[ ] = $this->listOfKnownLabels([ 'KnownLabels' => $inArray[ 'KnownLabels' ] ]);
105 105
         return $sReturn;
106 106
     }
107 107
 
108 108
     private function turnRequestedValueIntoCheckboxStatus($inArray)
109 109
     {
110
-        if (is_null($this->superGlobals->get($inArray['RequestedName']))) {
111
-            $valToSet = (string) $this->defaults[$inArray['RequestedName']];
112
-            $this->superGlobals->request->set($inArray['RequestedName'], $valToSet);
110
+        if (is_null($this->superGlobals->get($inArray[ 'RequestedName' ]))) {
111
+            $valToSet = (string) $this->defaults[ $inArray[ 'RequestedName' ] ];
112
+            $this->superGlobals->request->set($inArray[ 'RequestedName' ], $valToSet);
113 113
         }
114 114
         $checkboxStatus = '';
115
-        if ($this->superGlobals->get($inArray['RequestedName']) === $inArray['CheckedValue']) {
115
+        if ($this->superGlobals->get($inArray[ 'RequestedName' ]) === $inArray[ 'CheckedValue' ]) {
116 116
             $checkboxStatus = 'checked ';
117 117
         }
118 118
         return $checkboxStatus;
Please login to merge, or discard this patch.
source/Compare.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
         echo $this->setHeaderHtml();
52 52
         $rqst         = new \Symfony\Component\HttpFoundation\Request;
53 53
         $superGlobals = $rqst->createFromGlobals();
54
-        $this->prepareForOutputForm(['SuperGlobals' => $superGlobals]);
54
+        $this->prepareForOutputForm([ 'SuperGlobals' => $superGlobals ]);
55 55
         if (!is_null($superGlobals->get('Label'))) {
56
-            $this->processInfos(['sGlobals' => $superGlobals]);
57
-            echo $this->setFormCurlInfos(['SuperGlobals' => $superGlobals]);
58
-            echo $this->setFormInfos(['SuperGlobals' => $superGlobals]);
56
+            $this->processInfos([ 'sGlobals' => $superGlobals ]);
57
+            echo $this->setFormCurlInfos([ 'SuperGlobals' => $superGlobals ]);
58
+            echo $this->setFormInfos([ 'SuperGlobals' => $superGlobals ]);
59 59
         }
60 60
         echo $this->setFooterHtml();
61 61
     }
@@ -63,42 +63,42 @@  discard block
 block discarded – undo
63 63
     private function getConfiguration()
64 64
     {
65 65
         $strdConfig = $this->configuredDeployedInformators();
66
-        foreach ($strdConfig['informators'] as $key => $value) {
67
-            $this->config['Servers'][] = [
66
+        foreach ($strdConfig[ 'informators' ] as $key => $value) {
67
+            $this->config[ 'Servers' ][ ] = [
68 68
                 'name' => $key,
69 69
                 'url'  => $value,
70 70
             ];
71 71
         }
72
-        $haystack                                         = array_keys($strdConfig['informators']);
73
-        $this->config['Defaults']['Label']                = $strdConfig['default']['label'];
74
-        $this->config['Defaults']['localConfig']          = array_search($strdConfig['default']['source'], $haystack);
75
-        $this->config['Defaults']['serverConfig']         = array_search($strdConfig['default']['target'], $haystack);
76
-        $this->config['Defaults']['displayOnlyDifferent'] = $strdConfig['default']['typeOfResults'];
72
+        $haystack                                         = array_keys($strdConfig[ 'informators' ]);
73
+        $this->config[ 'Defaults' ][ 'Label' ]                = $strdConfig[ 'default' ][ 'label' ];
74
+        $this->config[ 'Defaults' ][ 'localConfig' ]          = array_search($strdConfig[ 'default' ][ 'source' ], $haystack);
75
+        $this->config[ 'Defaults' ][ 'serverConfig' ]         = array_search($strdConfig[ 'default' ][ 'target' ], $haystack);
76
+        $this->config[ 'Defaults' ][ 'displayOnlyDifferent' ] = $strdConfig[ 'default' ][ 'typeOfResults' ];
77 77
     }
78 78
 
79 79
     private function prepareForOutputForm($inArray)
80 80
     {
81
-        $urlToGetLbl = $this->config['Servers'][$this->config['Defaults']['localConfig']]['url']
82
-                . '?Label=---' . urlencode(' List of known labels');
83
-        $knownLabels = $this->getContentFromUrlThroughCurlAsArrayIfJson($urlToGetLbl)['response'];
81
+        $urlToGetLbl = $this->config[ 'Servers' ][ $this->config[ 'Defaults' ][ 'localConfig' ] ][ 'url' ]
82
+                . '?Label=---'.urlencode(' List of known labels');
83
+        $knownLabels = $this->getContentFromUrlThroughCurlAsArrayIfJson($urlToGetLbl)[ 'response' ];
84 84
         echo $this->setOutputForm([
85
-            'Defaults'     => $this->config['Defaults'],
85
+            'Defaults'     => $this->config[ 'Defaults' ],
86 86
             'KnownLabels'  => $knownLabels,
87
-            'Servers'      => $this->config['Servers'],
88
-            'SuperGlobals' => $inArray['SuperGlobals'],
87
+            'Servers'      => $this->config[ 'Servers' ],
88
+            'SuperGlobals' => $inArray[ 'SuperGlobals' ],
89 89
         ]);
90 90
     }
91 91
 
92 92
     private function processInfos($inArray)
93 93
     {
94
-        $this->localConfiguration  = ['response' => '', 'info' => ''];
95
-        $this->serverConfiguration = ['response' => '', 'info' => ''];
96
-        if (!is_null($inArray['sGlobals']->get('localConfig')) && !is_null($inArray['sGlobals']->get('serverConfig'))) {
97
-            $urlArguments              = '?Label=' . urlencode($inArray['sGlobals']->get('Label'));
98
-            $source                    = $this->config['Servers'][$inArray['sGlobals']->get('localConfig')]['url']
94
+        $this->localConfiguration  = [ 'response' => '', 'info' => '' ];
95
+        $this->serverConfiguration = [ 'response' => '', 'info' => '' ];
96
+        if (!is_null($inArray[ 'sGlobals' ]->get('localConfig')) && !is_null($inArray[ 'sGlobals' ]->get('serverConfig'))) {
97
+            $urlArguments              = '?Label='.urlencode($inArray[ 'sGlobals' ]->get('Label'));
98
+            $source                    = $this->config[ 'Servers' ][ $inArray[ 'sGlobals' ]->get('localConfig') ][ 'url' ]
99 99
                     . $urlArguments;
100 100
             $this->localConfiguration  = $this->getContentFromUrlThroughCurlAsArrayIfJson($source);
101
-            $destination               = $this->config['Servers'][$inArray['sGlobals']->get('serverConfig')]['url']
101
+            $destination               = $this->config[ 'Servers' ][ $inArray[ 'sGlobals' ]->get('serverConfig') ][ 'url' ]
102 102
                     . $urlArguments;
103 103
             $this->serverConfiguration = $this->getContentFromUrlThroughCurlAsArrayIfJson($destination);
104 104
         }
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
     {
121 121
         return '<div class="tabbertab" id="tabCurl" title="CURL infos">'
122 122
                 . $this->displayTableFromMultiLevelArray([
123
-                    'source'       => $this->localConfiguration['info'],
124
-                    'destination'  => $this->serverConfiguration['info'],
125
-                    'Servers'      => $this->config['Servers'],
126
-                    'SuperGlobals' => $inArray['SuperGlobals'],
123
+                    'source'       => $this->localConfiguration[ 'info' ],
124
+                    'destination'  => $this->serverConfiguration[ 'info' ],
125
+                    'Servers'      => $this->config[ 'Servers' ],
126
+                    'SuperGlobals' => $inArray[ 'SuperGlobals' ],
127 127
                 ])
128 128
                 . '</div><!--from tabCurl-->';
129 129
     }
@@ -131,13 +131,13 @@  discard block
 block discarded – undo
131 131
     private function setFormInfos($inArray)
132 132
     {
133 133
         return '<div class="tabbertab'
134
-                . (is_null($inArray['SuperGlobals']->get('Label')) ? '' : ' tabbertabdefault')
134
+                . (is_null($inArray[ 'SuperGlobals' ]->get('Label')) ? '' : ' tabbertabdefault')
135 135
                 . '" id="tabConfigs" title="Informations">'
136 136
                 . $this->displayTableFromMultiLevelArray([
137
-                    'source'       => $this->localConfiguration['response'],
138
-                    'destination'  => $this->serverConfiguration['response'],
139
-                    'Servers'      => $this->config['Servers'],
140
-                    'SuperGlobals' => $inArray['SuperGlobals'],
137
+                    'source'       => $this->localConfiguration[ 'response' ],
138
+                    'destination'  => $this->serverConfiguration[ 'response' ],
139
+                    'Servers'      => $this->config[ 'Servers' ],
140
+                    'SuperGlobals' => $inArray[ 'SuperGlobals' ],
141 141
                 ])
142 142
                 . '</div><!--from tabConfigs-->';
143 143
     }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                 ])
153 153
                 . $this->setJavascriptContent('document.write(\'<style type="text/css">'
154 154
                         . '.tabber{display:none;}</style>\');')
155
-                . '<h1>' . $this->configuredApplicationName() . '</h1>'
155
+                . '<h1>'.$this->configuredApplicationName().'</h1>'
156 156
                 . '<div class="tabber" id="tab">';
157 157
     }
158 158
 }
Please login to merge, or discard this patch.
source/CompareResults.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
     private function buildKey($inArray)
33 33
     {
34
-        $aReturn = [];
34
+        $aReturn = [ ];
35 35
         foreach ($inArray as $key => $val) {
36
-            $aReturn[] = str_repeat('_', $key) . $val;
36
+            $aReturn[ ] = str_repeat('_', $key).$val;
37 37
         }
38 38
         return implode('', $aReturn);
39 39
     }
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
         return $sReturn;
49 49
     }
50 50
 
51
-    protected function mergeArraysIntoFirstSecond($stAry, $ndAry, $pSq = ['first', 'second'])
51
+    protected function mergeArraysIntoFirstSecond($stAry, $ndAry, $pSq = [ 'first', 'second' ])
52 52
     {
53
-        $row = [];
53
+        $row = [ ];
54 54
         foreach ($stAry as $key => $val) {
55 55
             if (is_array($val)) {
56 56
                 foreach ($val as $ky2 => $vl2) {
@@ -58,27 +58,27 @@  discard block
 block discarded – undo
58 58
                         foreach ($vl2 as $ky3 => $vl3) {
59 59
                             if (is_array($vl3)) {
60 60
                                 foreach ($vl3 as $ky4 => $vl4) {
61
-                                    $row[$this->buildKey([$key, $ky2, $ky3, $ky4])] = [
62
-                                        $pSq[0] => $vl4,
63
-                                        $pSq[1] => $this->emptyIfNotSet($ndAry[$key][$ky2][$ky3][$ky4]),
61
+                                    $row[ $this->buildKey([ $key, $ky2, $ky3, $ky4 ]) ] = [
62
+                                        $pSq[ 0 ] => $vl4,
63
+                                        $pSq[ 1 ] => $this->emptyIfNotSet($ndAry[ $key ][ $ky2 ][ $ky3 ][ $ky4 ]),
64 64
                                     ];
65 65
                                 }
66 66
                             } else {
67
-                                $row[$this->buildKey([$key, $ky2, $ky3])] = [
68
-                                    $pSq[0] => $vl3,
69
-                                    $pSq[1] => $this->emptyIfNotSet($ndAry[$key][$ky2][$ky3]),
67
+                                $row[ $this->buildKey([ $key, $ky2, $ky3 ]) ] = [
68
+                                    $pSq[ 0 ] => $vl3,
69
+                                    $pSq[ 1 ] => $this->emptyIfNotSet($ndAry[ $key ][ $ky2 ][ $ky3 ]),
70 70
                                 ];
71 71
                             }
72 72
                         }
73 73
                     } else {
74
-                        $row[$this->buildKey([$key, $ky2])] = [
75
-                            $pSq[0] => $vl2,
76
-                            $pSq[1] => $this->emptyIfNotSet($ndAry[$key][$ky2]),
74
+                        $row[ $this->buildKey([ $key, $ky2 ]) ] = [
75
+                            $pSq[ 0 ] => $vl2,
76
+                            $pSq[ 1 ] => $this->emptyIfNotSet($ndAry[ $key ][ $ky2 ]),
77 77
                         ];
78 78
                     }
79 79
                 }
80 80
             } else {
81
-                $row[$key] = [$pSq[0] => $val, $pSq[1] => $this->emptyIfNotSet($ndAry[$key])];
81
+                $row[ $key ] = [ $pSq[ 0 ] => $val, $pSq[ 1 ] => $this->emptyIfNotSet($ndAry[ $key ]) ];
82 82
             }
83 83
         }
84 84
         return $row;
Please login to merge, or discard this patch.