Completed
Push — master ( 3c48b1...6f04eb )
by Inko
01:45
created
src/SkinData/Main.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -15,17 +15,17 @@
 block discarded – undo
15 15
 
16 16
 class Main extends PluginBase implements Listener
17 17
 {
18
-    public static $path;
18
+	public static $path;
19 19
 
20
-    public function onEnable(): void
21
-    {
22
-        self::$path = $this->getDataFolder();
23
-        $this->getServer()->getPluginManager()->registerEvents($this, $this);
24
-    }
20
+	public function onEnable(): void
21
+	{
22
+		self::$path = $this->getDataFolder();
23
+		$this->getServer()->getPluginManager()->registerEvents($this, $this);
24
+	}
25 25
 
26
-    public function onJoin(PlayerJoinEvent $event)
27
-    {
28
-        $datafile = new DataFile($event->getPlayer()->getName());
29
-        $datafile->write('skindata.txt', base64_encode($event->getPlayer()->getSkin()->getSkinData()));
30
-    }
26
+	public function onJoin(PlayerJoinEvent $event)
27
+	{
28
+		$datafile = new DataFile($event->getPlayer()->getName());
29
+		$datafile->write('skindata.txt', base64_encode($event->getPlayer()->getSkin()->getSkinData()));
30
+	}
31 31
 }
32 32
\ No newline at end of file
Please login to merge, or discard this patch.
src/SkinData/DataFile.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,17 +11,17 @@
 block discarded – undo
11 11
 
12 12
 class DataFile
13 13
 {
14
-    private $path;
14
+	private $path;
15 15
 
16
-    public function __construct(string $file)
17
-    {
18
-        $this->path = Main::$path . '/' . $file . '/';
19
-        if(!file_exists($this->path)){
20
-            mkdir($this->path, 0755, true);
21
-        }
22
-    }
16
+	public function __construct(string $file)
17
+	{
18
+		$this->path = Main::$path . '/' . $file . '/';
19
+		if(!file_exists($this->path)){
20
+			mkdir($this->path, 0755, true);
21
+		}
22
+	}
23 23
 
24
-    public function write(string $file, string $data) {
25
-        file_put_contents($this->path.$file, $data, 9);
26
-    }
24
+	public function write(string $file, string $data) {
25
+		file_put_contents($this->path.$file, $data, 9);
26
+	}
27 27
 }
28 28
\ No newline at end of file
Please login to merge, or discard this patch.