Completed
Push — master ( 6f04eb...e78d92 )
by Inko
01:52
created
src/SkinData/Main.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
         $this->getServer()->getPluginManager()->registerEvents($this, $this);
24 24
     }
25 25
 
26
-    public function onJoin(PlayerJoinEvent $event)
27
-    {
26
+    public function onJoin(PlayerJoinEvent $event) {
28 27
         $datafile = new DataFile($event->getPlayer()->getName());
29 28
         $datafile->write('skindata.txt', base64_encode($event->getPlayer()->getSkin()->getSkinData()));
30 29
     }
Please login to merge, or discard this patch.
src/SkinData/DataFile.php 1 patch
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,10 +13,9 @@
 block discarded – undo
13 13
 {
14 14
     private $path;
15 15
 
16
-    public function __construct(string $file)
17
-    {
16
+    public function __construct(string $file) {
18 17
         $this->path = Main::$path . '/' . $file . '/';
19
-        if(!file_exists($this->path)){
18
+        if(!file_exists($this->path)) {
20 19
             mkdir($this->path, 0755, true);
21 20
         }
22 21
     }
Please login to merge, or discard this patch.