]> source.dussan.org Git - nextcloud-server.git/commitdiff
Comment layout and spelling fixes
authorBart Visscher <bartv@thisnet.nl>
Fri, 8 Jun 2012 14:39:21 +0000 (16:39 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 8 Jun 2012 19:38:10 +0000 (21:38 +0200)
lib/connector/sabre/node.php
lib/fileproxy.php
lib/filesystem.php

index a7d1de8b953e75aab2c1fa5b7557b0916ef52dcd..bb367a18c429500eb37f1ca7f6c8d3e3b59e7c58 100644 (file)
@@ -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.;
         *
-        * 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
         *
         * @param array $properties
@@ -153,11 +155,11 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
                        $existing[$row['propertyname']] = $row['propertyvalue'];
                }
 
+               // if the array was empty, we need to return everything
                if(count($properties) == 0){
                        return $existing;
                }
                
-               // if the array was empty, we need to return everything
                $props = array();
                foreach($properties as $property) {
                        if (isset($existing[$property])) $props[$property] = $existing[$property];
index 70db9cca23c9269849702f4b153737a06406896c..180284f73dee84f15cac5005d3d2165c619d63c9 100644 (file)
  * 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
  *
- * A pre-proxy recieves the filepath as arugments (or 2 filespaths in case of operations like copy or move) and return a boolean
- * If a pre-proxy returnes false the file operation will be canceled
+ * A pre-proxy recieves the filepath as arugments (or 2 filespaths in case of
+ * 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
  *
  * 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 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
+ * 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:
+ * 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{
@@ -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 mixed
         *
index 84d45f5f24b8a448730a1445f05fd5aa9b4895f0..43d743b639d9e517daa037b992c31803e92d0406 100644 (file)
@@ -281,7 +281,7 @@ class OC_Filesystem{
        }
        
        /**
-       * change the root to a fake toor
+       * change the root to a fake root
        * @param  string  fakeRoot
        * @return bool
        */