]> source.dussan.org Git - nextcloud-server.git/commitdiff
Respect coding style
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 10 Sep 2012 09:31:57 +0000 (12:31 +0300)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 10 Sep 2012 09:31:57 +0000 (12:31 +0300)
lib/connector/sabre/directory.php

index 8fff77ac74912c0e0f605ebf98f1bec3a09b721b..39606577f6de82bee0836027ce72651af9c18dc7 100644 (file)
@@ -60,7 +60,7 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
                        }
                } else {
                        $newPath = $this->path . '/' . $name;
-                       OC_Filesystem::file_put_contents($newPath,$data);
+                       OC_Filesystem::file_put_contents($newPath, $data);
                        return OC_Connector_Sabre_Node::getETagPropertyForPath($newPath);
                }
 
@@ -195,10 +195,9 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
         */
        public function getProperties($properties) {
                $props = parent::getProperties($properties);
-               if (in_array(self::GETETAG_PROPERTYNAME, $properties)
-                   && !isset($props[self::GETETAG_PROPERTYNAME])) {
-                       $props[self::GETETAG_PROPERTYNAME] =
-                               OC_Connector_Sabre_Node::getETagPropertyForPath($this->path);
+               if (in_array(self::GETETAG_PROPERTYNAME, $properties) && !isset($props[self::GETETAG_PROPERTYNAME])) {
+                       $props[self::GETETAG_PROPERTYNAME] 
+                               = OC_Connector_Sabre_Node::getETagPropertyForPath($this->path);
                }
                return $props;
        }