@@ -135,11 +135,11 @@ public function nodeExists($path)
135135    /** 
136136     * Copies a file from path to another. 
137137     * 
138-      * @param string $sourcePath      The source location 
139-      * @param string $destinationPath The full destination path 
140-      * @param int|string $depth How much levle of children to copy. 
141-      *                          The value can be 'infinity' or a positiv integer, including zero. 
142-      *                          Zero means only copy the collection without children but with its properties. 
138+      * @param string      $sourcePath      The source location 
139+      * @param string      $destinationPath The full destination path 
140+      * @param int|string $depth            How much levle of children to copy. 
141+      *                                     The value can be 'infinity' or a positiv integer, including zero. 
142+      *                                     Zero means only copy the collection without children but with its properties. 
143143     */ 
144144    public  function  copy ($ sourcePath$ destinationPath$ depth'infinity ' )
145145    {
@@ -310,8 +310,8 @@ public function getMultipleNodes($paths)
310310    /** 
311311     * copyNode. 
312312     * 
313-      * @param string $destinationName 
314-      * @param int|string $depth How many children of the node to copy 
313+      * @param string      $destinationName 
314+      * @param int|string $depth            How many children of the node to copy 
315315     */ 
316316    protected  function  copyNode (INode $ sourceICollection $ destinationParentstring  $ destinationNamenull , $ depth'infinity ' )
317317    {
@@ -338,9 +338,9 @@ protected function copyNode(INode $source, ICollection $destinationParent, ?stri
338338            $ destination$ destinationParentgetChild ($ destinationName
339339
340340            // Copy children if depth is not zero 
341-             if  ($ depth 0 ) {
341+             if  (0  !== $ depth 
342342                // Adjust next depth for children (keep 'infinity' or decrease) 
343-                 $ depth$ depth ' infinity ' 'infinity '  : $ depth1 ;
343+                 $ depth' infinity ' $ depth 'infinity '  : $ depth1 ;
344344                $ destination$ destinationParentgetChild ($ destinationName
345345                foreach  ($ sourcegetChildren () as  $ child
346346                    $ this copyNode ($ child$ destinationnull , $ depth
0 commit comments