apps: Fix typos (found by codespell) (#23862)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2016-04-12 12:52:51 +02:00 committed by Thomas Müller
parent fdee771aca
commit 16df1c5188
7 changed files with 11 additions and 11 deletions

View File

@ -71,12 +71,12 @@ function getChildInfo($dir, $view) {
$children = $view->getDirectoryContent($dir->getPath()); $children = $view->getDirectoryContent($dir->getPath());
$result = array(); $result = array();
foreach ($children as $child) { foreach ($children as $child) {
$formated = \OCA\Files\Helper::formatFileInfo($child); $formatted = \OCA\Files\Helper::formatFileInfo($child);
if ($child->getType() === 'dir') { if ($child->getType() === 'dir') {
$formated['children'] = getChildInfo($child, $view); $formatted['children'] = getChildInfo($child, $view);
} }
$formated['mtime'] = $formated['mtime'] / 1000; $formatted['mtime'] = $formatted['mtime'] / 1000;
$result[] = $formated; $result[] = $formatted;
} }
return $result; return $result;
} }

View File

@ -38,7 +38,7 @@
var tr = oldCreateRow.apply(this, arguments); var tr = oldCreateRow.apply(this, arguments);
var sharePermissions = fileData.permissions; var sharePermissions = fileData.permissions;
if (fileData.mountType && fileData.mountType === "external-root"){ if (fileData.mountType && fileData.mountType === "external-root"){
// for external storages we cant use the permissions of the mountpoint // for external storages we can't use the permissions of the mountpoint
// instead we show all permissions and only use the share permissions from the mountpoint to handle resharing // instead we show all permissions and only use the share permissions from the mountpoint to handle resharing
sharePermissions = sharePermissions | (OC.PERMISSION_ALL & ~OC.PERMISSION_SHARE); sharePermissions = sharePermissions | (OC.PERMISSION_ALL & ~OC.PERMISSION_SHARE);
} }

View File

@ -384,7 +384,7 @@ class Manager {
} }
/** /**
* return a list of shares wich are accepted by the user * return a list of shares which are accepted by the user
* *
* @return array list of accepted server-to-server shares * @return array list of accepted server-to-server shares
*/ */

View File

@ -193,7 +193,7 @@ class Test_Files_Sharing_Cache extends TestCase {
array('name' => 'shareddir', 'path' => ''), array('name' => 'shareddir', 'path' => ''),
) )
), ),
array('%nonexistant%', array('%nonexistent%',
array( array(
) )
), ),

View File

@ -224,7 +224,7 @@ class Test_Files_Versioning extends \Test\TestCase {
), ),
11 // size of all deleted files (every file has the size 1) 11 // size of all deleted files (every file has the size 1)
), ),
// third set of versions, with some gaps inbetween // third set of versions, with some gaps between
array( array(
array( array(
// first slice (10sec) keep one version every 2 seconds // first slice (10sec) keep one version every 2 seconds
@ -605,7 +605,7 @@ class Test_Files_Versioning extends \Test\TestCase {
/** /**
* @param string $hookName name of hook called * @param string $hookName name of hook called
* @param string $params variable to recieve parameters provided by hook * @param string $params variable to receive parameters provided by hook
*/ */
private function connectMockHooks($hookName, &$params) { private function connectMockHooks($hookName, &$params) {
if ($hookName === null) { if ($hookName === null) {

View File

@ -221,7 +221,7 @@ class Wizard extends LDAPUtility {
$count = intval($this->countUsersWithAttribute($attr, true)); $count = intval($this->countUsersWithAttribute($attr, true));
if($count > 0) { if($count > 0) {
//no change, but we sent it back to make sure the user interface //no change, but we sent it back to make sure the user interface
//is still correct, even if the ajax call was cancelled inbetween //is still correct, even if the ajax call was cancelled meanwhile
$this->result->addChange('ldap_display_name', $attr); $this->result->addChange('ldap_display_name', $attr);
return $this->result; return $this->result;
} }

View File

@ -112,7 +112,7 @@ abstract class AbstractMappingTest extends \Test\TestCase {
} }
/** /**
* tests unmap() for both successfuly and not successful removing of * tests unmap() for both successful and unsuccessful removing of
* mapping entries * mapping entries
*/ */
public function testUnmap() { public function testUnmap() {