Passed
Branch solr_collection_extension (e8a901)
by Erik
03:24
created
Category
modules/indexing/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
     protected function indexLoop() {
158 158
 
159 159
         // Get document from list.
160
-        list ($uid, ) = $this->list->remove(0);
160
+        list ($uid,) = $this->list->remove(0);
161 161
 
162 162
         $this->list->save();
163 163
 
Please login to merge, or discard this patch.
plugins/collection/class.tx_dlf_collection.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
121 121
             'tx_dlf_collections.index_name AS index_name, tx_dlf_collections.index_search as index_query, tx_dlf_collections.uid AS uid,tx_dlf_collections.label AS label,tx_dlf_collections.thumbnail AS thumbnail,tx_dlf_collections.description AS description,tx_dlf_collections.priority AS priority',
122 122
             'tx_dlf_collections',
123
-            $selectedCollections . $showUserDefinedCollections .' AND tx_dlf_collections.pid='.intval($this->conf['pages']). tx_dlf_helper::whereClause('tx_dlf_collections'),
123
+            $selectedCollections.$showUserDefinedCollections.' AND tx_dlf_collections.pid='.intval($this->conf['pages']).tx_dlf_helper::whereClause('tx_dlf_collections'),
124 124
             '',
125 125
             $orderBy,
126 126
             ''
@@ -150,15 +150,15 @@  discard block
 block discarded – undo
150 150
             $solr_query = '';
151 151
 
152 152
             if ($collection['index_query'] != "") {
153
-                $solr_query .= '(' . $collection['index_query'] . ')';
153
+                $solr_query .= '('.$collection['index_query'].')';
154 154
             } else {
155
-                $solr_query .= 'collection:' . '"' . $collection['index_name'] .'"';
155
+                $solr_query .= 'collection:'.'"'.$collection['index_name'].'"';
156 156
             }
157 157
 
158
-            $partOfZero = $solr->search_raw($solr_query . ' partof:0', $parameters);
159
-            $partOfSomething = $solr->search_raw($solr_query . ' AND NOT partof:0', $parameters);
158
+            $partOfZero = $solr->search_raw($solr_query.' partof:0', $parameters);
159
+            $partOfSomething = $solr->search_raw($solr_query.' AND NOT partof:0', $parameters);
160 160
 
161
-            $titles = array();
161
+            $titles = array ();
162 162
 
163 163
             foreach ($partOfZero as $doc) {
164 164
                 $titles[] = $doc->uid;
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
         $collection = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
286 286
             'tx_dlf_collections.index_name AS index_name, tx_dlf_collections.index_search as index_query, tx_dlf_collections.label AS collLabel, tx_dlf_collections.description AS collDesc, tx_dlf_collections.thumbnail AS collThumb, tx_dlf_collections.fe_cruser_id',
287 287
             'tx_dlf_collections',
288
-            'tx_dlf_collections.pid='.intval($this->conf['pages']).' AND tx_dlf_collections.uid='. intval($id) . ' ' . $additionalWhere . tx_dlf_helper::whereClause('tx_dlf_collections'),
288
+            'tx_dlf_collections.pid='.intval($this->conf['pages']).' AND tx_dlf_collections.uid='.intval($id).' '.$additionalWhere.tx_dlf_helper::whereClause('tx_dlf_collections'),
289 289
             '',
290 290
             '',
291 291
             '1'
@@ -295,9 +295,9 @@  discard block
 block discarded – undo
295 295
         $solr_query = "";
296 296
         while ($collectionData = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($collection)) {
297 297
             if ($collectionData['index_query'] != "") {
298
-                $solr_query .= '(' . $collectionData['index_query'] . ')';
298
+                $solr_query .= '('.$collectionData['index_query'].')';
299 299
             } else {
300
-                $solr_query .= 'collection:' . '"' . $collectionData['index_name'] . '"';
300
+                $solr_query .= 'collection:'.'"'.$collectionData['index_name'].'"';
301 301
             }
302 302
         }
303 303
 
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         $documents = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
315 315
             'tx_dlf_documents.uid AS uid, tx_dlf_documents.metadata_sorting AS metadata_sorting, tx_dlf_documents.volume_sorting AS volume_sorting, tx_dlf_documents.partof AS partof',
316 316
             'tx_dlf_documents',
317
-            'tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_documents.uid IN (' . implode(',', $documentSet).')' . $additionalWhere . tx_dlf_helper::whereClause('tx_dlf_documents'),
317
+            'tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_documents.uid IN ('.implode(',', $documentSet).')'.$additionalWhere.tx_dlf_helper::whereClause('tx_dlf_documents'),
318 318
             '',
319 319
             '',
320 320
             ''
Please login to merge, or discard this patch.