File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -275,8 +275,8 @@ public function generateDirectoryIndex($path)
275275 ]);
276276 $ numSubNodes = count ($ subNodes );
277277 if ($ numSubNodes && $ numSubNodes <= $ maxNodesAtTopSection ) {
278- $ html .= $ this ->generateNodesSection ($ subNodes , $ numSubNodes );
279- $ numSubNodes = 0 ;
278+ $ html .= $ this ->generateNodesSection ($ subNodes , $ numSubNodes );
279+ $ numSubNodes = 0 ;
280280 }
281281 }
282282
@@ -329,13 +329,13 @@ public function generateDirectoryIndex($path)
329329 * Generates the Nodes section block of HTML.
330330 *
331331 * @param array $subNodes
332- * @param int $numSubNodes
332+ * @param int $numSubNodes
333333 *
334334 * @return string
335335 */
336336 protected function generateNodesSection ($ subNodes , $ numSubNodes )
337337 {
338- $ html = " <section><h1>Nodes ( " . $ numSubNodes . ")</h1> \n" ;
338+ $ html = ' <section><h1>Nodes ( ' . $ numSubNodes. ")</h1> \n" ;
339339 $ html .= '<table class="nodeTable"> ' ;
340340
341341 foreach ($ subNodes as $ subPath => $ subProps ) {
@@ -388,6 +388,7 @@ protected function generateNodesSection($subNodes, $numSubNodes)
388388
389389 $ html .= '</table> ' ;
390390 $ html .= '</section> ' ;
391+
391392 return $ html ;
392393 }
393394
Original file line number Diff line number Diff line change 44
55namespace Sabre \DAV \Browser ;
66
7- use Sabre \DAV \Xml \Property \GetLastModified ;
87use DateTime ;
98use Sabre \DAV ;
109use Sabre \HTTP ;
10+ use Sabre \DAV \Xml \Property \GetLastModified ;
1111
1212class PluginTest extends DAV \AbstractServerTestCase
1313{
@@ -241,19 +241,19 @@ public function testCollectionNodesOrder()
241241
242242 $ file1 = [
243243 '{DAV:}getlastmodified ' => $ day1 ,
244- 'displayPath ' => 'file1 '
244+ 'displayPath ' => 'file1 ' ,
245245 ];
246246 $ file1_clon = [
247247 '{DAV:}getlastmodified ' => $ day1 ,
248- 'displayPath ' => 'file1 '
248+ 'displayPath ' => 'file1 ' ,
249249 ];
250250 $ file2 = [
251251 '{DAV:}getlastmodified ' => $ day1 ,
252- 'displayPath ' => 'file2 '
252+ 'displayPath ' => 'file2 ' ,
253253 ];
254254 $ file2_newer = [
255255 '{DAV:}getlastmodified ' => $ day2 ,
256- 'displayPath ' => 'file2 '
256+ 'displayPath ' => 'file2 ' ,
257257 ];
258258
259259 // Case 1: Newer node should come before older node
You can’t perform that action at this time.
0 commit comments