@@ -173,17 +173,14 @@ |
||
173 | 173 | { |
174 | 174 | $object->type = static::TYPE_FILE; |
175 | 175 | $object->size = (int)$stat['size']; |
176 | - } |
|
177 | - elseif (is_dir($absolutePath)) |
|
176 | + } elseif (is_dir($absolutePath)) |
|
178 | 177 | { |
179 | 178 | $object->type = static::TYPE_DIR; |
180 | - } |
|
181 | - elseif (is_link($absolutePath)) |
|
179 | + } elseif (is_link($absolutePath)) |
|
182 | 180 | { |
183 | 181 | $object->type = static::TYPE_LINK; |
184 | 182 | $object->linkTarget = str_replace($basePath, '', readlink($absolutePath)); |
185 | - } |
|
186 | - else |
|
183 | + } else |
|
187 | 184 | { |
188 | 185 | throw new \LogicException(); |
189 | 186 | } |
@@ -110,9 +110,7 @@ |
||
110 | 110 | |
111 | 111 | // compare remote object to object state at last sync |
112 | 112 | $remoteObjectModified = !$remoteObject->equals($lastLocalObject); |
113 | - } |
|
114 | - |
|
115 | - else |
|
113 | + } else |
|
116 | 114 | { |
117 | 115 | // object already didn't exist locally at the last sync |
118 | 116 | $localObjectModified = false; |