We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -48,11 +48,11 @@ discard block |
||
| 48 | 48 | case 'index': |
| 49 | 49 | |
| 50 | 50 | // Add command line arguments. |
| 51 | - $this->cli_options[] = array ('-doc UID/URL', 'UID or (properly encoded) URL of the document.'); |
|
| 51 | + $this->cli_options[] = array('-doc UID/URL', 'UID or (properly encoded) URL of the document.'); |
|
| 52 | 52 | |
| 53 | - $this->cli_options[] = array ('-pid UID', 'UID of the page the document should be added to.'); |
|
| 53 | + $this->cli_options[] = array('-pid UID', 'UID of the page the document should be added to.'); |
|
| 54 | 54 | |
| 55 | - $this->cli_options[] = array ('-core UID', 'UID of the Solr core the document should be added to.'); |
|
| 55 | + $this->cli_options[] = array('-core UID', 'UID of the Solr core the document should be added to.'); |
|
| 56 | 56 | |
| 57 | 57 | // Check the command line arguments. |
| 58 | 58 | $this->cli_validateArgs(); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | // Get the document... |
| 92 | - $doc =& tx_dlf_document::getInstance($this->cli_args['-doc'][0], $this->cli_args['-pid'][0], TRUE); |
|
| 92 | + $doc = & tx_dlf_document::getInstance($this->cli_args['-doc'][0], $this->cli_args['-pid'][0], TRUE); |
|
| 93 | 93 | |
| 94 | 94 | if ($doc->ready) { |
| 95 | 95 | |
@@ -116,11 +116,11 @@ discard block |
||
| 116 | 116 | case 'reindex': |
| 117 | 117 | |
| 118 | 118 | // Add command line arguments. |
| 119 | - $this->cli_options[] = array ('-coll UID', 'UID of the collection.'); |
|
| 119 | + $this->cli_options[] = array('-coll UID', 'UID of the collection.'); |
|
| 120 | 120 | |
| 121 | - $this->cli_options[] = array ('-pid UID', 'UID of the page the document should be added to.'); |
|
| 121 | + $this->cli_options[] = array('-pid UID', 'UID of the page the document should be added to.'); |
|
| 122 | 122 | |
| 123 | - $this->cli_options[] = array ('-core UID', 'UID of the Solr core the document should be added to.'); |
|
| 123 | + $this->cli_options[] = array('-core UID', 'UID of the Solr core the document should be added to.'); |
|
| 124 | 124 | |
| 125 | 125 | // Check the command line arguments. |
| 126 | 126 | $this->cli_validateArgs(); |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
| 171 | 171 | |
| 172 | 172 | // Get the document... |
| 173 | - $doc =& tx_dlf_document::getInstance($resArray['uid'], $this->cli_args['-pid'][0], TRUE); |
|
| 173 | + $doc = & tx_dlf_document::getInstance($resArray['uid'], $this->cli_args['-pid'][0], TRUE); |
|
| 174 | 174 | |
| 175 | 175 | if ($doc->ready) { |
| 176 | 176 | |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | public function __construct() { |
| 214 | 214 | |
| 215 | 215 | // Set basic information about the script. |
| 216 | - $this->cli_help = array ( |
|
| 216 | + $this->cli_help = array( |
|
| 217 | 217 | 'name' => 'Command Line Interface for Kitodo.Presentation', |
| 218 | 218 | 'synopsis' => '###OPTIONS###', |
| 219 | 219 | 'description' => 'Currently the only tasks available are "index" and "reindex".'.LF.'Try "/PATH/TO/TYPO3/cli_dispatch.phpsh dlf TASK" for more options.', |
@@ -59,12 +59,12 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | protected function getMetadataConfig() { |
| 61 | 61 | |
| 62 | - $uids = array (); |
|
| 62 | + $uids = array(); |
|
| 63 | 63 | |
| 64 | 64 | // check if tx_dlf_metadata.xpath exists anyhow |
| 65 | 65 | $fieldsInDatabase = $GLOBALS['TYPO3_DB']->admin_get_fields('tx_dlf_metadata'); |
| 66 | 66 | |
| 67 | - if (! in_array('xpath', array_keys($fieldsInDatabase))) { |
|
| 67 | + if (!in_array('xpath', array_keys($fieldsInDatabase))) { |
|
| 68 | 68 | |
| 69 | 69 | return $uids; |
| 70 | 70 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
| 143 | 143 | |
| 144 | - if($resArray['column_name'] == 'tokenized' |
|
| 144 | + if ($resArray['column_name'] == 'tokenized' |
|
| 145 | 145 | || $resArray['column_name'] == 'stored' |
| 146 | 146 | || $resArray['column_name'] == 'indexed' |
| 147 | 147 | || $resArray['column_name'] == 'boost' |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | // Copy the content of the old tables to the new ones |
| 174 | 174 | $result = $GLOBALS['TYPO3_DB']->sql_query($sqlQuery); |
| 175 | 175 | |
| 176 | - if($result) { |
|
| 176 | + if ($result) { |
|
| 177 | 177 | |
| 178 | 178 | $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
| 179 | 179 | 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage', |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | |
| 213 | 213 | if (!empty($metadataUids)) { |
| 214 | 214 | |
| 215 | - $data = array (); |
|
| 215 | + $data = array(); |
|
| 216 | 216 | |
| 217 | 217 | // Get all old metadata configuration records. |
| 218 | 218 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | $newId = uniqid('NEW'); |
| 230 | 230 | |
| 231 | 231 | // Copy record to new table. |
| 232 | - $data['tx_dlf_metadataformat'][$newId] = array ( |
|
| 232 | + $data['tx_dlf_metadataformat'][$newId] = array( |
|
| 233 | 233 | 'pid' => $resArray['pid'], |
| 234 | 234 | 'cruser_id' => $resArray['cruser_id'], |
| 235 | 235 | 'parent_id' => $resArray['uid'], |