Passed
Pull Request — master (#11)
by Michael
11:08
created
class/CategoryHandler.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -101,23 +101,23 @@
 block discarded – undo
101 101
         $buttons = ['edit', 'delete'];
102 102
 
103 103
         $ret = '<table class="outer width100 bnone pad3 marg5">'
104
-               . '  <thead>'
105
-               . '  <tr class="xoopsCenter">'
106
-               . '    <th class="width5">'
107
-               . \_AM_XOOPSFAQ_CATEGORY_ORDER
108
-               . '</th>'
109
-               . '    <th class="width5">'
110
-               . \_AM_XOOPSFAQ_CATEGORY_ID
111
-               . '</th>'
112
-               . '    <th class="txtleft">'
113
-               . \_AM_XOOPSFAQ_CATEGORY_TITLE
114
-               . '</th>'
115
-               . '    <th class="width20">'
116
-               . \_AM_XOOPSFAQ_ACTIONS
117
-               . '</th>'
118
-               . '  </tr>'
119
-               . '  </thead>'
120
-               . '  <tbody>';
104
+                . '  <thead>'
105
+                . '  <tr class="xoopsCenter">'
106
+                . '    <th class="width5">'
107
+                . \_AM_XOOPSFAQ_CATEGORY_ORDER
108
+                . '</th>'
109
+                . '    <th class="width5">'
110
+                . \_AM_XOOPSFAQ_CATEGORY_ID
111
+                . '</th>'
112
+                . '    <th class="txtleft">'
113
+                . \_AM_XOOPSFAQ_CATEGORY_TITLE
114
+                . '</th>'
115
+                . '    <th class="width20">'
116
+                . \_AM_XOOPSFAQ_ACTIONS
117
+                . '</th>'
118
+                . '  </tr>'
119
+                . '  </thead>'
120
+                . '  <tbody>';
121 121
         if ($objects['count'] > 0) {
122 122
             /** @var XoopsObject $object */
123 123
             foreach ($objects['list'] as $object) {
Please login to merge, or discard this patch.
class/Utility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                 }
70 70
                 $title = \constant(\htmlspecialchars(mb_strtoupper('_XO_LA_' . $iconName), \ENT_QUOTES | \ENT_HTML5));
71 71
                 $img   = '<img src="' . Admin::iconUrl($iconName . '.' . $iconExt, '16') . '"' . ' title ="' . $title . '"' . ' alt = "' . $title . '"' . ' class="bnone middle">';
72
-                $ret   .= '<a href="' . $url . '"' . $extra . '>' . $img . '</a>';
72
+                $ret .= '<a href="' . $url . '"' . $extra . '>' . $img . '</a>';
73 73
             }
74 74
         }
75 75
         return $ret;
Please login to merge, or discard this patch.
language/english/common.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
 \define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
176 176
 
177 177
 \define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)');
178
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC','The maximum file size of the image file (in Bytes)');
178
+\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)');
179 179
 
180 180
 
181 181
 //Module Stats
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
                 //get data for JSON-LD
92 92
                 if ($helper->getConfig('generate_jsonld')) {
93
-                    $content[] =  [
93
+                    $content[] = [
94 94
                         'title'  => $obj->getVar('contents_title'),
95 95
                         'answer' => $obj->getVar('contents_contents'),
96 96
                     ];
@@ -133,11 +133,11 @@  discard block
 block discarded – undo
133 133
         foreach ($objects['list'] as $object) {
134 134
             // only list categories and/or FAQs if user has rights
135 135
             if (false !== $permHelper->checkPermission('viewcat', $object->getVar('category_id'))) {
136
-                $category    = [
136
+                $category = [
137 137
                     'id'   => $object->getVar('category_id'),
138 138
                     'name' => $object->getVar('category_title'),
139 139
                 ];
140
-                $bodyWords   .= ' ' . $object->getVar('category_title');
140
+                $bodyWords .= ' ' . $object->getVar('category_title');
141 141
                 $contentsObj = $contentsHandler->getPublished($object->getVar('category_id'));
142 142
                 if ($contentsObj['count']) {
143 143
                     $category['questions'] = [];
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                             'link'  => $content->getVar('contents_id'),
148 148
                             'title' => $content->getVar('contents_title'),
149 149
                         ];
150
-                        $bodyWords               .= ' ' . $content->getVar('contents_title');
150
+                        $bodyWords .= ' ' . $content->getVar('contents_title');
151 151
                     }
152 152
                 }
153 153
                 $GLOBALS['xoopsTpl']->append_by_ref('categories', $category);
Please login to merge, or discard this patch.