Просмотр исходного кода

CLI minor formatting

https://github.com/FreshRSS/FreshRSS/issues/1095
Alexandre Alapetite 9 лет назад
Родитель
Сommit
c8e5292ab7
2 измененных файлов с 3 добавлено и 4 удалено
  1. 1 2
      cli/create-user.php
  2. 2 2
      cli/export-zip-for-user.php

+ 1 - 2
cli/create-user.php

@@ -35,8 +35,7 @@ $ok = FreshRSS_user_Controller::createUser($username,
 		'language' => empty($options['language']) ? '' : $options['language'],
 		'token' => empty($options['token']) ? '' : $options['token'],
 	),
-	!isset($options['no-default-feeds'])
-	);
+	!isset($options['no-default-feeds']));
 
 if (!$ok) {
 	fail('FreshRSS could not create user!');

+ 2 - 2
cli/export-zip-for-user.php

@@ -20,8 +20,8 @@ $importController = new FreshRSS_importExport_Controller();
 $ok = false;
 try {
 	$ok = $importController->exportFile(true, true, true,
-	empty($options['max-feed-entries']) ? 100 : intval($options['max-feed-entries']),
-	$username);
+		empty($options['max-feed-entries']) ? 100 : intval($options['max-feed-entries']),
+		$username);
 } catch (FreshRSS_ZipMissing_Exception $zme) {
 	fail('FreshRSS error: Lacking php-zip extension!');
 }