Completed
Push — master ( 4ab8b3...849f01 )
by Raffael
06:16
created
src/lib/Console/Usermod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Console/Groupmod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Console/Upgrade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
     public function start(): bool
86 86
     {
87 87
         return $this->migration->start(
88
-            (bool) $this->getopt->getOption('force'),
89
-            (bool) $this->getopt->getOption('ignore')
88
+            (bool)$this->getopt->getOption('force'),
89
+            (bool)$this->getopt->getOption('ignore')
90 90
         );
91 91
     }
92 92
 }
Please login to merge, or discard this patch.
src/lib/Hook.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/EventAttributeDecorator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     protected function getAttributes(array $event): array
120 120
     {
121 121
         return [
122
-            'event' => (string) $event['_id'],
122
+            'event' => (string)$event['_id'],
123 123
             'timestamp' => $event['timestamp']->toDateTime()->format('c'),
124 124
             'operation' => $event['operation'],
125 125
             'name' => $event['name'],
Please login to merge, or discard this patch.
src/lib/Filesystem/Acl/Exception/Forbidden.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Acl/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/NodeInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/File.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
      * @param array
45 45
      **/
46 46
     protected $temp_files = [
47
-        '/^\._(.*)$/',     // OS/X resource forks
48
-        '/^.DS_Store$/',   // OS/X custom folder settings
47
+        '/^\._(.*)$/', // OS/X resource forks
48
+        '/^.DS_Store$/', // OS/X custom folder settings
49 49
         '/^desktop.ini$/', // Windows custom folder settings
50
-        '/^Thumbs.db$/',   // Windows thumbnail cache
51
-        '/^.(.*).swpx$/',  // ViM temporary files
52
-        '/^.(.*).swx$/',   // ViM temporary files
53
-        '/^.(.*).swp$/',   // ViM temporary files
54
-        '/^\.dat(.*)$/',   // Smultron seems to create these
50
+        '/^Thumbs.db$/', // Windows thumbnail cache
51
+        '/^.(.*).swpx$/', // ViM temporary files
52
+        '/^.(.*).swx$/', // ViM temporary files
53
+        '/^.(.*).swp$/', // ViM temporary files
54
+        '/^\.dat(.*)$/', // Smultron seems to create these
55 55
         '/^~lock.(.*)#$/', // Windows 7 lockfiles
56 56
     ];
57 57
 
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
         }
544 544
 
545 545
         $this->hash = $new_hash;
546
-        $max = (int) (string) $this->_fs->getServer()->getMaxFileVersion();
546
+        $max = (int)(string)$this->_fs->getServer()->getMaxFileVersion();
547 547
         if (count($this->history) >= $max) {
548 548
             $del = key($this->history);
549 549
             $this->_logger->debug('history limit ['.$max.'] reached, remove oldest version ['.$del.'] from file ['.$this->_id.']', [
@@ -637,8 +637,8 @@  discard block
 block discarded – undo
637 637
     {
638 638
         assert(16 === strlen($data));
639 639
 
640
-        $data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100
641
-        $data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10
640
+        $data[6] = chr(ord($data[6])&0x0f|0x40); // set version to 0100
641
+        $data[8] = chr(ord($data[8])&0x3f|0x80); // set bits 6-7 to 10
642 642
 
643 643
         return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));
644 644
     }
@@ -741,11 +741,11 @@  discard block
 block discarded – undo
741 741
 
742 742
             $tmp_file = $tmp.DIRECTORY_SEPARATOR.$this->guidv4(openssl_random_pseudo_bytes(16));
743 743
             $stream = fopen($tmp_file, 'w+');
744
-            $size = stream_copy_to_stream($file, $stream, ((int) $this->_fs->getServer()->getMaxFileSize() + 1));
744
+            $size = stream_copy_to_stream($file, $stream, ((int)$this->_fs->getServer()->getMaxFileSize() + 1));
745 745
             rewind($stream);
746 746
             fclose($file);
747 747
 
748
-            if ($size > (int) $this->_fs->getServer()->getMaxFileSize()) {
748
+            if ($size > (int)$this->_fs->getServer()->getMaxFileSize()) {
749 749
                 unlink($tmp_file);
750 750
 
751 751
                 throw new Exception\InsufficientStorage(
Please login to merge, or discard this patch.