Passed
Branch oai_solr (423cc8)
by Erik
09:50 queued 02:55
created
dlf/cli/class.tx_dlf_cli.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.',
Please login to merge, or discard this patch.