Completed
Branch develop (37f7b7)
by
unknown
24:41
created
htdocs/includes/sabre/sabre/dav/lib/DAV/Server.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
             $error->setAttribute('xmlns:s', self::NS_SABREDAV);
264 264
             $DOM->appendChild($error);
265 265
 
266
-            $h = function ($v) {
266
+            $h = function($v) {
267 267
                 return htmlspecialchars((string) $v, ENT_NOQUOTES, 'UTF-8');
268 268
             };
269 269
 
@@ -1637,7 +1637,7 @@  discard block
 block discarded – undo
1637 1637
     {
1638 1638
         $w = $this->xml->getWriter();
1639 1639
         if (self::$streamMultiStatus) {
1640
-            return function () use ($fileProperties, $strip404s, $w) {
1640
+            return function() use ($fileProperties, $strip404s, $w) {
1641 1641
                 $w->openUri('php://output');
1642 1642
                 $this->writeMultiStatus($w, $fileProperties, $strip404s);
1643 1643
                 $w->flush();
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/dav/lib/DAV/CorePlugin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
      */
746 746
     public function propFind(PropFind $propFind, INode $node)
747 747
     {
748
-        $propFind->handle('{DAV:}getlastmodified', function () use ($node) {
748
+        $propFind->handle('{DAV:}getlastmodified', function() use ($node) {
749 749
             $lm = $node->getLastModified();
750 750
             if ($lm) {
751 751
                 return new Xml\Property\GetLastModified($lm);
@@ -760,12 +760,12 @@  discard block
 block discarded – undo
760 760
 
761 761
         if ($node instanceof IQuota) {
762 762
             $quotaInfo = null;
763
-            $propFind->handle('{DAV:}quota-used-bytes', function () use (&$quotaInfo, $node) {
763
+            $propFind->handle('{DAV:}quota-used-bytes', function() use (&$quotaInfo, $node) {
764 764
                 $quotaInfo = $node->getQuotaInfo();
765 765
 
766 766
                 return $quotaInfo[0];
767 767
             });
768
-            $propFind->handle('{DAV:}quota-available-bytes', function () use (&$quotaInfo, $node) {
768
+            $propFind->handle('{DAV:}quota-available-bytes', function() use (&$quotaInfo, $node) {
769 769
                 if (!$quotaInfo) {
770 770
                     $quotaInfo = $node->getQuotaInfo();
771 771
                 }
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
             });
775 775
         }
776 776
 
777
-        $propFind->handle('{DAV:}supported-report-set', function () use ($propFind) {
777
+        $propFind->handle('{DAV:}supported-report-set', function() use ($propFind) {
778 778
             $reports = [];
779 779
             foreach ($this->server->getPlugins() as $plugin) {
780 780
                 $reports = array_merge($reports, $plugin->getSupportedReportSet($propFind->getPath()));
@@ -782,10 +782,10 @@  discard block
 block discarded – undo
782 782
 
783 783
             return new Xml\Property\SupportedReportSet($reports);
784 784
         });
785
-        $propFind->handle('{DAV:}resourcetype', function () use ($node) {
785
+        $propFind->handle('{DAV:}resourcetype', function() use ($node) {
786 786
             return new Xml\Property\ResourceType($this->server->getResourceTypeForNode($node));
787 787
         });
788
-        $propFind->handle('{DAV:}supported-method-set', function () use ($propFind) {
788
+        $propFind->handle('{DAV:}supported-method-set', function() use ($propFind) {
789 789
             return new Xml\Property\SupportedMethodSet(
790 790
                 $this->server->getAllowedMethods($propFind->getPath())
791 791
             );
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
      */
817 817
     public function propFindLate(PropFind $propFind, INode $node)
818 818
     {
819
-        $propFind->handle('{http://calendarserver.org/ns/}getctag', function () use ($propFind) {
819
+        $propFind->handle('{http://calendarserver.org/ns/}getctag', function() use ($propFind) {
820 820
             // If we already have a sync-token from the current propFind
821 821
             // request, we can re-use that.
822 822
             $val = $propFind->get('{http://sabredav.org/ns}sync-token');
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/dav/lib/DAV/PropertyStorage/Backend/PDO.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      */
117 117
     public function propPatch($path, PropPatch $propPatch)
118 118
     {
119
-        $propPatch->handleRemaining(function ($properties) use ($path) {
119
+        $propPatch->handleRemaining(function($properties) use ($path) {
120 120
             if ('pgsql' === $this->pdo->getAttribute(\PDO::ATTR_DRIVER_NAME)) {
121 121
                 $updateSql = <<<SQL
122 122
 INSERT INTO {$this->tableName} (path, name, valuetype, value)
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/dav/lib/DAV/TemporaryFileFilterPlugin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
      * @var array
42 42
      */
43 43
     public $temporaryFilePatterns = [
44
-        '/^\._(.*)$/',     // OS/X resource forks
45
-        '/^.DS_Store$/',   // OS/X custom folder settings
44
+        '/^\._(.*)$/', // OS/X resource forks
45
+        '/^.DS_Store$/', // OS/X custom folder settings
46 46
         '/^desktop.ini$/', // Windows custom folder settings
47
-        '/^Thumbs.db$/',   // Windows thumbnail cache
48
-        '/^.(.*).swp$/',   // ViM temporary files
49
-        '/^\.dat(.*)$/',   // Smultron seems to create these
47
+        '/^Thumbs.db$/', // Windows thumbnail cache
48
+        '/^.(.*).swp$/', // ViM temporary files
49
+        '/^\.dat(.*)$/', // Smultron seems to create these
50 50
         '/^~lock.(.*)#$/', // Windows 7 lockfiles
51 51
     ];
52 52
 
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/dav/lib/DAV/Locks/Plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,10 +83,10 @@
 block discarded – undo
83 83
      */
84 84
     public function propFind(DAV\PropFind $propFind, DAV\INode $node)
85 85
     {
86
-        $propFind->handle('{DAV:}supportedlock', function () {
86
+        $propFind->handle('{DAV:}supportedlock', function() {
87 87
             return new DAV\Xml\Property\SupportedLock();
88 88
         });
89
-        $propFind->handle('{DAV:}lockdiscovery', function () use ($propFind) {
89
+        $propFind->handle('{DAV:}lockdiscovery', function() use ($propFind) {
90 90
             return new DAV\Xml\Property\LockDiscovery(
91 91
                 $this->getLocks($propFind->getPath())
92 92
             );
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/dav/lib/DAV/Sync/Plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $self = $this;
58 58
 
59
-        $server->on('report', function ($reportName, $dom, $uri) use ($self) {
59
+        $server->on('report', function($reportName, $dom, $uri) use ($self) {
60 60
             if ('{DAV:}sync-collection' === $reportName) {
61 61
                 $this->server->transactionType = 'report-sync-collection';
62 62
                 $self->syncCollection($uri, $dom);
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function propFind(DAV\PropFind $propFind, DAV\INode $node)
190 190
     {
191
-        $propFind->handle('{DAV:}sync-token', function () use ($node) {
191
+        $propFind->handle('{DAV:}sync-token', function() use ($node) {
192 192
             if (!$node instanceof ISyncCollection || !$token = $node->getSyncToken()) {
193 193
                 return;
194 194
             }
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/dav/lib/DAV/Xml/Element/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
         // called. But we don't want this, because a singular element without
181 181
         // child-elements implies 'no value' in {DAV:}prop, so we want to skip
182 182
         // deserializers and just set null for those.
183
-        $reader->elementMap['{DAV:}prop'] = function (Reader $reader) {
183
+        $reader->elementMap['{DAV:}prop'] = function(Reader $reader) {
184 184
             if ($reader->isEmptyElement) {
185 185
                 $reader->next();
186 186
 
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/dav/lib/DAV/Xml/Property/LocalHref.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function __construct($hrefs)
40 40
     {
41 41
         parent::__construct(array_map(
42
-            function ($href) {
42
+            function($href) {
43 43
                 return \Sabre\HTTP\encodePath($href);
44 44
             },
45 45
             (array) $hrefs
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/dav/lib/DAV/Browser/GuessContentType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     public function propFind(PropFind $propFind, INode $node)
66 66
     {
67
-        $propFind->handle('{DAV:}getcontenttype', function () use ($propFind) {
67
+        $propFind->handle('{DAV:}getcontenttype', function() use ($propFind) {
68 68
             list(, $fileName) = Uri\split($propFind->getPath());
69 69
 
70 70
             return $this->getContentType($fileName);
Please login to merge, or discard this patch.