Skip to content
Snippets Groups Projects
Commit 7c5c257b authored by Bart Visscher's avatar Bart Visscher
Browse files

Comment layout and spelling fixes

parent 0a49bae8
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,9 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr ...@@ -137,7 +137,9 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
/** /**
* Returns a list of properties for this nodes.; * Returns a list of properties for this nodes.;
* *
* The properties list is a list of propertynames the client requested, encoded as xmlnamespace#tagName, for example: http://www.example.org/namespace#author * The properties list is a list of propertynames the client requested,
* encoded as xmlnamespace#tagName, for example:
* http://www.example.org/namespace#author
* If the array is empty, all properties should be returned * If the array is empty, all properties should be returned
* *
* @param array $properties * @param array $properties
...@@ -153,11 +155,11 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr ...@@ -153,11 +155,11 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
$existing[$row['propertyname']] = $row['propertyvalue']; $existing[$row['propertyname']] = $row['propertyvalue'];
} }
// if the array was empty, we need to return everything
if(count($properties) == 0){ if(count($properties) == 0){
return $existing; return $existing;
} }
// if the array was empty, we need to return everything
$props = array(); $props = array();
foreach($properties as $property) { foreach($properties as $property) {
if (isset($existing[$property])) $props[$property] = $existing[$property]; if (isset($existing[$property])) $props[$property] = $existing[$property];
......
...@@ -27,14 +27,17 @@ ...@@ -27,14 +27,17 @@
* Manipulation happens by using 2 kind of proxy operations, pre and post proxies * Manipulation happens by using 2 kind of proxy operations, pre and post proxies
* that manipulate the filesystem call and the result of the call respectively * that manipulate the filesystem call and the result of the call respectively
* *
* A pre-proxy recieves the filepath as arugments (or 2 filespaths in case of operations like copy or move) and return a boolean * A pre-proxy recieves the filepath as arugments (or 2 filespaths in case of
* If a pre-proxy returnes false the file operation will be canceled * operations like copy or move) and return a boolean
* If a pre-proxy returns false the file operation will be canceled
* All filesystem operations have a pre-proxy * All filesystem operations have a pre-proxy
* *
* A post-proxy recieves 2 arguments, the filepath and the result of the operation. * A post-proxy recieves 2 arguments, the filepath and the result of the operation.
* The return calue of the post-proxy will be used as the new result of the operation * The return value of the post-proxy will be used as the new result of the operation
* The operations that have a post-proxy are * The operations that have a post-proxy are:
* file_get_contents, is_file, is_dir, file_exists, stat, is_readable, is_writable, fileatime, filemtime, filectime, file_get_contents, getMimeType, hash, fopen, free_space and search * file_get_contents, is_file, is_dir, file_exists, stat, is_readable,
* is_writable, fileatime, filemtime, filectime, file_get_contents,
* getMimeType, hash, fopen, free_space and search
*/ */
class OC_FileProxy{ class OC_FileProxy{
...@@ -51,7 +54,7 @@ class OC_FileProxy{ ...@@ -51,7 +54,7 @@ class OC_FileProxy{
} }
/** /**
* fallback function when a proxy operation is not implement * fallback function when a proxy operation is not implemented
* @param string $function the name of the proxy operation * @param string $function the name of the proxy operation
* @param mixed * @param mixed
* *
......
...@@ -281,7 +281,7 @@ class OC_Filesystem{ ...@@ -281,7 +281,7 @@ class OC_Filesystem{
} }
/** /**
* change the root to a fake toor * change the root to a fake root
* @param string fakeRoot * @param string fakeRoot
* @return bool * @return bool
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment