Skip to content

Commit 23a8190

Browse files
committed
chore: updating styles manually (cs-fixer)
1 parent 4bb79d0 commit 23a8190

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

lib/DAV/Browser/Plugin.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

tests/Sabre/DAV/Browser/PluginTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
namespace Sabre\DAV\Browser;
66

7-
use Sabre\DAV\Xml\Property\GetLastModified;
87
use DateTime;
98
use Sabre\DAV;
109
use Sabre\HTTP;
10+
use Sabre\DAV\Xml\Property\GetLastModified;
1111

1212
class 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

0 commit comments

Comments
 (0)