Completed
Pull Request — master (#3788)
by Craig
01:31
created
src/lib/legacy/viewplugins/function.img.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     }
110 110
 
111 111
     // language
112
-    $lang =  ZLanguage::transformFS(ZLanguage::getLanguageCode());
112
+    $lang = ZLanguage::transformFS(ZLanguage::getLanguageCode());
113 113
 
114 114
     if ($sysplugin) {
115 115
         $osplugdir    = DataUtil::formatForOS($sysplugin);
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             // theme directory
140 140
             $ostheme       = DataUtil::formatForOS(UserUtil::getTheme());
141 141
             $theme = ThemeUtil::getTheme($ostheme);
142
-            $themePath = null === $theme ? '' : $theme->getRelativePath().'/Resources/public/images';
142
+            $themePath = null === $theme ? '' : $theme->getRelativePath() . '/Resources/public/images';
143 143
             $themepath     = $themePath;
144 144
             $corethemepath = "themes/$ostheme/images";
145 145
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                 $themepathOld     = "themes/$ostheme/templates/modules/$osmodname/images";
154 154
 
155 155
                 $module = ModUtil::getModule($modinfo['name']);
156
-                $moduleBasePath  = null === $module ? '' : $module->getRelativePath().'/Resources/public/images';
156
+                $moduleBasePath  = null === $module ? '' : $module->getRelativePath() . '/Resources/public/images';
157 157
                 $modlangpath     = "$moduleBasePath/$lang";
158 158
                 $modpath         = $moduleBasePath;
159 159
                 $modlangpathOld  = "$moduleDir/$osmoddir/images/$lang";
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
     $imgtag = '<img ';
249 249
     foreach ($params as $key => $value) {
250
-        $imgtag .= $key . '="' .$value  . '" ';
250
+        $imgtag .= $key . '="' . $value . '" ';
251 251
     }
252 252
     $imgtag .= '/>';
253 253
 
Please login to merge, or discard this patch.
src/lib/legacy/viewplugins/function.pagerabc.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         // predefined abc
112 112
         if (strtolower($params['skin']) == 'hu') {
113 113
             // Hungarian
114
-            $pager['names']  = $pager['values'] = ['A', '?', 'B', 'C', 'D', 'E', '?', 'F', 'G', 'H', 'I', '?', 'J', 'K', 'L', 'M', 'N', 'O', '?', '?', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', '?', '?', 'U', 'V', 'W', 'X', 'Y', 'Z'];
114
+            $pager['names'] = $pager['values'] = ['A', '?', 'B', 'C', 'D', 'E', '?', 'F', 'G', 'H', 'I', '?', 'J', 'K', 'L', 'M', 'N', 'O', '?', '?', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', '?', '?', 'U', 'V', 'W', 'X', 'Y', 'Z'];
115 115
             //$params['names']  = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U'    ,'V','W','X','Y','Z'];
116 116
             //$params['values'] = ['A,?','B','C','D','E,?','F','G','H','I,?','J','K','L','M','N','O,?,?,O','P','Q','R','S','T','U,?,?,U','V','W','X','Y','Z'];
117 117
         } else {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         unset($params['route']);
142 142
     }
143 143
 
144
-    $pagerUrl = function ($pager) use ($view) {
144
+    $pagerUrl = function($pager) use ($view) {
145 145
         if (!isset($pager['route'])) {
146 146
             return ModUtil::url($pager['module'], $pager['type'], $pager['func'], $pager['args']);
147 147
         }
@@ -201,24 +201,24 @@  discard block
 block discarded – undo
201 201
     unset($pager['args'][$pager['posvar']]);
202 202
 
203 203
     // begin to fill the output
204
-    $output = '<ul class="'.$params['class'].'">'."\n";
204
+    $output = '<ul class="' . $params['class'] . '">' . "\n";
205 205
 
206 206
     $style = '';
207 207
     if ($params['printempty']) {
208 208
         $active = '';
209 209
         if (!empty($params['class_numon'])) {
210 210
             if (!isset($allVars[$pager['posvar']])) {
211
-                $style = ' class="'.$params['class_numon'].'"';
211
+                $style = ' class="' . $params['class_numon'] . '"';
212 212
                 $active = 'class="active"';
213 213
             } elseif (!empty($params['class_num'])) {
214
-                $style = ' class="'.$params['class_num'].'"';
214
+                $style = ' class="' . $params['class_num'] . '"';
215 215
             } else {
216 216
                 $style = '';
217 217
             }
218 218
         }
219 219
         $vars[$pager['posvar']] = '';
220 220
         $urltemp = DataUtil::formatForDisplay($pagerUrl($pager));
221
-        $output .= '<li '.$active.'><a '.$style.' href="'.$urltemp.'"> -'."\n</a></li>";
221
+        $output .= '<li ' . $active . '><a ' . $style . ' href="' . $urltemp . '"> -' . "\n</a></li>";
222 222
     }
223 223
 
224 224
     $style = '';
@@ -226,17 +226,17 @@  discard block
 block discarded – undo
226 226
         $active = '';
227 227
         if (!empty($params['class_numon'])) {
228 228
             if (isset($allVars[$pager['posvar']]) && $allVars[$pager['posvar']] == $pager['values'][$i]) {
229
-                $style = ' class="'.$params['class_numon'].'"';
229
+                $style = ' class="' . $params['class_numon'] . '"';
230 230
                 $active = 'class="active"';
231 231
             } elseif (!empty($params['class_num'])) {
232
-                $style = ' class="'.$params['class_num'].'"';
232
+                $style = ' class="' . $params['class_num'] . '"';
233 233
             } else {
234 234
                 $style = '';
235 235
             }
236 236
         }
237 237
         $pager['args'][$pager['posvar']] = $pager['values'][$i];
238 238
         $urltemp = DataUtil::formatForDisplay($pagerUrl($pager));
239
-        $output .= '<li '.$active.'><a '.$style.' href="'.$urltemp.'">'.$pager['names'][$i]."</a></li>\n";
239
+        $output .= '<li ' . $active . '><a ' . $style . ' href="' . $urltemp . '">' . $pager['names'][$i] . "</a></li>\n";
240 240
     }
241 241
     $output .= "</ul>\n";
242 242
 
Please login to merge, or discard this patch.
src/lib/legacy/viewplugins/insert.getstatusmsg.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -78,15 +78,15 @@  discard block
 block discarded – undo
78 78
             $params['tag'] = 'div';
79 79
         }
80 80
 
81
-        $result .= '<'.$params['tag'].' class="'.$class.'"';
81
+        $result .= '<' . $params['tag'] . ' class="' . $class . '"';
82 82
 
83 83
         if (!is_null($params['style'])) {
84
-            $result .= ' style="'.$params['style'].'"';
84
+            $result .= ' style="' . $params['style'] . '"';
85 85
         }
86 86
 
87 87
         $result .= '>';
88 88
         $result .= implode('<hr />', $messages);
89
-        $result .= '</'.$params['tag'].'>';
89
+        $result .= '</' . $params['tag'] . '>';
90 90
     }
91 91
     /**
92 92
      * Get warning messages.
@@ -108,15 +108,15 @@  discard block
 block discarded – undo
108 108
             $params['tag'] = 'div';
109 109
         }
110 110
 
111
-        $result .= '<'.$params['tag'].' class="'.$class.'"';
111
+        $result .= '<' . $params['tag'] . ' class="' . $class . '"';
112 112
 
113 113
         if ($params['style']) {
114
-            $result .= ' style="'.$params['style'].'"';
114
+            $result .= ' style="' . $params['style'] . '"';
115 115
         }
116 116
 
117 117
         $result .= '>';
118 118
         $result .= implode('<hr />', $messages);
119
-        $result .= '</'.$params['tag'].'>';
119
+        $result .= '</' . $params['tag'] . '>';
120 120
     }
121 121
 
122 122
     /**
@@ -139,15 +139,15 @@  discard block
 block discarded – undo
139 139
             $params['tag'] = 'div';
140 140
         }
141 141
 
142
-        $result .= '<'.$params['tag'].' class="'.$class.'"';
142
+        $result .= '<' . $params['tag'] . ' class="' . $class . '"';
143 143
 
144 144
         if ($params['style']) {
145
-            $result .= ' style="'.$params['style'].'"';
145
+            $result .= ' style="' . $params['style'] . '"';
146 146
         }
147 147
 
148 148
         $result .= '>';
149 149
         $result .= implode('<hr />', $messages);
150
-        $result .= '</'.$params['tag'].'>';
150
+        $result .= '</' . $params['tag'] . '>';
151 151
     }
152 152
 
153 153
     if (empty($total_messages)) {
Please login to merge, or discard this patch.
src/lib/legacy/viewplugins/function.useravatar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
 
74 74
         $avatarURL = 'http://www.gravatar.com/avatar.php?gravatar_id=' . md5($email);
75 75
         if (isset($params['rating']) && !empty($params['rating'])) {
76
-            $avatarURL .= "&rating=".$params['rating'];
76
+            $avatarURL .= "&rating=" . $params['rating'];
77 77
         }
78 78
         if (isset($params['size']) && !empty($params['size'])) {
79
-            $avatarURL .= "&size=".$params['size'];
79
+            $avatarURL .= "&size=" . $params['size'];
80 80
         }
81
-        $avatarURL .= "&default=".urlencode(System::getBaseUrl() . $avatarpath . '/' . $gravatarimage);
81
+        $avatarURL .= "&default=" . urlencode(System::getBaseUrl() . $avatarpath . '/' . $gravatarimage);
82 82
     } else {
83 83
         // e.g. blank.gif or empty avatars
84 84
         return false;
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
 
92 92
     $html = '<img ' . $classString . ' src="' . DataUtil::formatForDisplay($avatarURL) . '" title="' . DataUtil::formatForDisplay($uname) . '" alt="' . DataUtil::formatForDisplay($uname) . '"';
93 93
     if (isset($params['width'])) {
94
-        $html .= ' width="'.$params['width'].'"';
94
+        $html .= ' width="' . $params['width'] . '"';
95 95
     }
96 96
     if (isset($params['height'])) {
97
-        $html .= ' height="'.$params['height'].'"';
97
+        $html .= ' height="' . $params['height'] . '"';
98 98
     }
99 99
     $html .= ' />';
100 100
 
Please login to merge, or discard this patch.
src/lib/legacy/dbobject/DBUtil.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
                     list(, $tab) = explode(' ', $sql);
318 318
                 }
319 319
                 if (strpos($sql, 'delete') === 0) {
320
-                    list(, , $tab) = explode(' ', $sql);
320
+                    list(,, $tab) = explode(' ', $sql);
321 321
                 }
322 322
                 if ($tab && strpos($tab, 'session_info') === false) {
323 323
                     self::flushCache($tab);
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
                         }
797 797
                         $vArray[] = self::_formatForStore($str);
798 798
                     } else {
799
-                        $vArray[] =  self::_typesafeQuotedValue($table, $key, $object[$key]);
799
+                        $vArray[] = self::_typesafeQuotedValue($table, $key, $object[$key]);
800 800
                     }
801 801
                 }
802 802
             } else {
@@ -2093,7 +2093,7 @@  discard block
 block discarded – undo
2093 2093
 
2094 2094
             // process the where depending of the operator
2095 2095
             if ($op == 'AND') {
2096
-                $where[] = "obj_id IN (SELECT {$prefix}obj_id FROM $catmapobjtbl table$n WHERE {$prefix}reg_id = '".DataUtil::formatForStore($propids[$property])."' AND $wherecat)";
2096
+                $where[] = "obj_id IN (SELECT {$prefix}obj_id FROM $catmapobjtbl table$n WHERE {$prefix}reg_id = '" . DataUtil::formatForStore($propids[$property]) . "' AND $wherecat)";
2097 2097
             } else {
2098 2098
                 $where[] = "(reg_id='" . DataUtil::formatForStore($propids[$property]) . "' AND $wherecat)";
2099 2099
             }
@@ -2424,7 +2424,7 @@  discard block
 block discarded – undo
2424 2424
     {
2425 2425
         @trigger_error('DBUtil is deprecated. please use Doctrine 2 instead.', E_USER_DEPRECATED);
2426 2426
 
2427
-        $key = $column . $where. serialize($categoryFilter) . $subquery;
2427
+        $key = $column . $where . serialize($categoryFilter) . $subquery;
2428 2428
         $sum = self::getCache($table, $key);
2429 2429
         if ($sum !== false) {
2430 2430
             return $sum;
@@ -2475,7 +2475,7 @@  discard block
 block discarded – undo
2475 2475
     {
2476 2476
         @trigger_error('DBUtil is deprecated. please use Doctrine 2 instead.', E_USER_DEPRECATED);
2477 2477
 
2478
-        $key = $column . $where. (int)$distinct . serialize($categoryFilter) . $subquery;
2478
+        $key = $column . $where . (int)$distinct . serialize($categoryFilter) . $subquery;
2479 2479
         $sum = self::getCache($table, $key);
2480 2480
         if ($sum !== false) {
2481 2481
             return $sum;
@@ -2638,7 +2638,7 @@  discard block
 block discarded – undo
2638 2638
         $tables = self::getTables();
2639 2639
         $tableName = $tables[$table];
2640 2640
         $columns = $tables["{$table}_column"];
2641
-        $fieldName = isset($columns[$field]) ? 'tbl.'.$columns[$field] : $field;
2641
+        $fieldName = isset($columns[$field]) ? 'tbl.' . $columns[$field] : $field;
2642 2642
 
2643 2643
         $sqlJoinArray = self::_processJoinArray($table, $joinInfo);
2644 2644
         $sqlJoin = $sqlJoinArray[0];
@@ -2905,7 +2905,7 @@  discard block
 block discarded – undo
2905 2905
         //$dst = ($distinct ? 'DISTINCT' : '');
2906 2906
         $sqlStart = "SELECT COUNT(*) ";
2907 2907
         $sqlFrom = "FROM $tableName AS tbl ";
2908
-        $sqlGroupBy = (empty($sqlJoinArray[3])) ? '' : 'GROUP BY '.implode(', ', $sqlJoinArray[3]);
2908
+        $sqlGroupBy = (empty($sqlJoinArray[3])) ? '' : 'GROUP BY ' . implode(', ', $sqlJoinArray[3]);
2909 2909
 
2910 2910
         $sql = "$sqlStart $sqlJoinFieldList $sqlFrom $sqlJoin $where $sqlGroupBy";
2911 2911
         $res = self::executeSQL($sql);
@@ -3194,9 +3194,9 @@  discard block
 block discarded – undo
3194 3194
             // we have a {$tablename}_column_def array as defined in tables.php. This is a real array, not a string.
3195 3195
             // The format is like "C(24) NOTNULL DEFAULT ''" which means we have to prepend the field name now
3196 3196
             $typemap = [
3197
-                'B' => 'blob',    // NOTE: not supported in Doctrine 2
3197
+                'B' => 'blob', // NOTE: not supported in Doctrine 2
3198 3198
                 'C' => 'string',
3199
-                'C2' => 'blob',   // NOTE: not supported in Doctrine 2
3199
+                'C2' => 'blob', // NOTE: not supported in Doctrine 2
3200 3200
                 'D' => 'date',
3201 3201
                 'F' => 'float',
3202 3202
                 'I' => 'integer',
Please login to merge, or discard this patch.
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
         $tables = self::getTables();
873 873
         $tableName = $tables[$table];
874 874
 
875
-        $sql = "UPDATE $tableName SET ";
875
+        $sql = "update $tableName SET ";
876 876
 
877 877
         // set standard architecture fields
878 878
         ObjectUtil::setStandardFieldsOnObjectUpdate($object, $force);
@@ -1179,7 +1179,7 @@  discard block
 block discarded – undo
1179 1179
             if (!$object[$idfield]) {
1180 1180
                 throw new Exception(__('Object does not have an ID'));
1181 1181
             }
1182
-            $sql .= "WHERE $fieldName = " . self::_typesafeQuotedValue($table, $idfield, $object[$idfield]);
1182
+            $sql .= "where $fieldName = " . self::_typesafeQuotedValue($table, $idfield, $object[$idfield]);
1183 1183
         } else {
1184 1184
             $sql .= self::_checkWhereClause($where);
1185 1185
             $object['__fake_field__'] = 'Fake entry to mark deleteWhere() return as valid object';
@@ -1905,7 +1905,7 @@  discard block
 block discarded – undo
1905 1905
             $orderby = self::_checkOrderByField($table, $field); // "ORDER BY $columns[$field]";
1906 1906
         }
1907 1907
 
1908
-        $sql = "SELECT $dSql $assoc FROM $tableName AS tbl $where $orderby";
1908
+        $sql = "select $dSql $assoc FROM $tableName AS tbl $where $orderby";
1909 1909
 
1910 1910
         $res = self::executeSQL($sql, $limitOffset, $limitNumRows, $exitOnError);
1911 1911
         if ($res === false) {
@@ -1965,7 +1965,7 @@  discard block
 block discarded – undo
1965 1965
         $columns = $tables["{$table}_column"];
1966 1966
         $field = isset($columns[$field]) ? $columns[$field] : $field;
1967 1967
 
1968
-        $sql = "SELECT $option($field) FROM $tableName AS tbl";
1968
+        $sql = "select $option($field) FROM $tableName AS tbl";
1969 1969
         $where = self::_checkWhereClause($where);
1970 1970
 
1971 1971
         $sql .= ' ' . $where;
@@ -2007,7 +2007,7 @@  discard block
 block discarded – undo
2007 2007
             $assocKey = isset($tables["{$table}_primary_key_column"]) ? $tables["{$table}_primary_key_column"] : 'id';
2008 2008
         }
2009 2009
 
2010
-        $sql = "SELECT $assocKey AS $assocKey, $option($fieldName) AS $option FROM $tableName AS tbl";
2010
+        $sql = "select $assocKey AS $assocKey, $option($fieldName) AS $option FROM $tableName AS tbl";
2011 2011
         $where = self::_checkWhereClause($where);
2012 2012
 
2013 2013
         $sql .= ' ' . $where;
@@ -2648,8 +2648,8 @@  discard block
 block discarded – undo
2648 2648
         $orderby = self::_checkOrderByClause($orderby, $table);
2649 2649
 
2650 2650
         $dSql = ($distinct ? "DISTINCT($fieldName)" : "$fieldName");
2651
-        $sqlStart = "SELECT $dSql ";
2652
-        $sqlFrom = "FROM $tableName AS tbl ";
2651
+        $sqlStart = "select $dSql ";
2652
+        $sqlFrom = "from $tableName AS tbl ";
2653 2653
 
2654 2654
         $sql = "$sqlStart $sqlJoinFieldList $sqlFrom $sqlJoin $where $orderby";
2655 2655
 
@@ -2759,7 +2759,7 @@  discard block
 block discarded – undo
2759 2759
         $disableJoins = System::getVar('disableJoinss');
2760 2760
 
2761 2761
         $sqlStart  = "SELECT " . ($distinct ? 'DISTINCT ' : '') . self::_getAllColumnsQualified($table, 'tbl', $columnArray);
2762
-        $sqlFrom   = "FROM $tableName AS tbl ";
2762
+        $sqlFrom   = "from $tableName AS tbl ";
2763 2763
 
2764 2764
         if ($useJoins && !$disableJoins) {
2765 2765
             $sqlJoinArray     = self::_processJoinArray($table, $joinInfo, $columnArray);
@@ -2904,7 +2904,7 @@  discard block
 block discarded – undo
2904 2904
         $where = self::_checkWhereClause($where);
2905 2905
         //$dst = ($distinct ? 'DISTINCT' : '');
2906 2906
         $sqlStart = "SELECT COUNT(*) ";
2907
-        $sqlFrom = "FROM $tableName AS tbl ";
2907
+        $sqlFrom = "from $tableName AS tbl ";
2908 2908
         $sqlGroupBy = (empty($sqlJoinArray[3])) ? '' : 'GROUP BY '.implode(', ', $sqlJoinArray[3]);
2909 2909
 
2910 2910
         $sql = "$sqlStart $sqlJoinFieldList $sqlFrom $sqlJoin $where $sqlGroupBy";
Please login to merge, or discard this patch.
src/lib/legacy/dbobject/ObjectUtil.php 1 patch
Upper-Lower-Casing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -391,12 +391,12 @@  discard block
 block discarded – undo
391 391
         }
392 392
 
393 393
         if ($direction == 'up') {
394
-            $sql = "SELECT $column[$idcolumn], $column[$field]
394
+            $sql = "select $column[$idcolumn], $column[$field]
395 395
                     FROM $table
396 396
                     WHERE $column[$field] < '" . DataUtil::formatForStore($seq) . "' $where2
397 397
                     ORDER BY $column[$field] DESC LIMIT 0,1";
398 398
         } elseif ($direction == 'down') {
399
-            $sql = "SELECT $column[$idcolumn], $column[$field]
399
+            $sql = "select $column[$idcolumn], $column[$field]
400 400
                     FROM $table
401 401
                     WHERE $column[$field] > '" . DataUtil::formatForStore($seq) . "' $where2
402 402
                     ORDER BY $column[$field] ASC LIMIT 0,1";
@@ -413,9 +413,9 @@  discard block
 block discarded – undo
413 413
         list($altid, $altseq) = $res->fields;
414 414
 
415 415
         // Swap sequence numbers
416
-        $sql = "UPDATE $table SET $column[$field]='" . DataUtil::formatForStore($seq) . "' WHERE $column[$idcolumn]='" . DataUtil::formatForStore($altid) . "'";
416
+        $sql = "update $table SET $column[$field]='" . DataUtil::formatForStore($seq) . "' WHERE $column[$idcolumn]='" . DataUtil::formatForStore($altid) . "'";
417 417
         $upd1 = DBUtil::executeSQL($sql);
418
-        $sql = "UPDATE $table SET $column[$field]='" . DataUtil::formatForStore($altseq) . "' WHERE $column[$idcolumn]='" . DataUtil::formatForStore($obj[$idcolumn]) . "'";
418
+        $sql = "update $table SET $column[$field]='" . DataUtil::formatForStore($altseq) . "' WHERE $column[$idcolumn]='" . DataUtil::formatForStore($obj[$idcolumn]) . "'";
419 419
         $upd2 = DBUtil::executeSQL($sql);
420 420
 
421 421
         DBUtil::flushCache($tablename);
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
         $table = $dbtables['objectdata_attributes'];
454 454
         $column = $dbtables['objectdata_attributes_column'];
455 455
 
456
-        $where = "WHERE $column[object_id]= '" . DataUtil::formatForStore($obj[$idcolumn]) . "' AND
456
+        $where = "where $column[object_id]= '" . DataUtil::formatForStore($obj[$idcolumn]) . "' AND
457 457
                         $column[object_type]='" . DataUtil::formatForStore($type) . "'";
458 458
 
459 459
         return DBUtil::selectObjectArray('objectdata_attributes', $where);
@@ -772,7 +772,7 @@  discard block
 block discarded – undo
772 772
         $column = $dbtables['objectdata_attributes_column'];
773 773
 
774 774
         $sql = "DELETE FROM $table WHERE $column[object_type] = '" . DataUtil::formatForStore($type) . "' ";
775
-        $sql .= "AND $column[attribute_name] = '" . DataUtil::formatForStore($attributeName) . "' ";
775
+        $sql .= "and $column[attribute_name] = '" . DataUtil::formatForStore($attributeName) . "' ";
776 776
         $res = DBUtil::executeSQL($sql);
777 777
 
778 778
         DBUtil::flushCache('objectdata_attributes');
@@ -940,7 +940,7 @@  discard block
 block discarded – undo
940 940
             $meta_column = $dbtables['objectdata_meta_column'];
941 941
 
942 942
             $meta = $obj['__META__'];
943
-            $where = "WHERE $meta_column[module]='" . DataUtil::formatForStore($meta['module']) . "'
943
+            $where = "where $meta_column[module]='" . DataUtil::formatForStore($meta['module']) . "'
944 944
                         AND $meta_column[table]='" . DataUtil::formatForStore($meta['table']) . "'
945 945
                         AND $meta_column[idcolumn]='" . DataUtil::formatForStore($meta['idcolumn']) . "'
946 946
                         AND $meta_column[obj_id]='" . DataUtil::formatForStore($meta['obj_id']) . "'";
@@ -974,7 +974,7 @@  discard block
 block discarded – undo
974 974
             $dbtables = DBUtil::getTables();
975 975
             $meta_column = $dbtables['objectdata_meta_column'];
976 976
 
977
-            $where = "WHERE $meta_column[module]='" . DataUtil::formatForStore($meta['module']) . "'
977
+            $where = "where $meta_column[module]='" . DataUtil::formatForStore($meta['module']) . "'
978 978
                         AND $meta_column[table]='" . DataUtil::formatForStore($meta['table']) . "'
979 979
                         AND $meta_column[idcolumn]='" . DataUtil::formatForStore($meta['idcolumn']) . "'
980 980
                         AND $meta_column[obj_id]='" . DataUtil::formatForStore($meta['obj_id']) . "'";
Please login to merge, or discard this patch.
src/lib/legacy/util/FilterUtil/AbstractBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,6 +84,6 @@
 block discarded – undo
84 84
      */
85 85
     protected function addCommon(&$config)
86 86
     {
87
-        $config['config']  = $this->getConfig();
87
+        $config['config'] = $this->getConfig();
88 88
     }
89 89
 }
Please login to merge, or discard this patch.
src/lib/legacy/util/FilterUtil/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
                 return false;
260 260
             }
261 261
 
262
-            $this->_column  = $tables[$table . '_column'];
262
+            $this->_column = $tables[$table . '_column'];
263 263
         }
264 264
 
265 265
         return true;
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
     {
609 609
         $this->_column = [];
610 610
 
611
-        $aliasMap  = $this->_doctrineQuery->getTableAliasMap();
611
+        $aliasMap = $this->_doctrineQuery->getTableAliasMap();
612 612
 
613 613
         $aliases = [];
614 614
         foreach ($tables as $alias => $table) {
Please login to merge, or discard this patch.
src/lib/legacy/util/FilterUtil/Filter/Default.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 
251 251
             case 'search':
252 252
                 $where = "$column LIKE ?";
253
-                $params[] = '%'.$value.'%';
253
+                $params[] = '%' . $value . '%';
254 254
                 break;
255 255
 
256 256
             case 'like':
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 
261 261
             case 'likefirst':
262 262
                 $where = "$column LIKE ?";
263
-                $params[] = $value."%";
263
+                $params[] = $value . "%";
264 264
                 break;
265 265
 
266 266
             case 'null':
Please login to merge, or discard this patch.