Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
Adding test + clear code + functions racc
Browse files Browse the repository at this point in the history
  • Loading branch information
lefuturiste committed Dec 17, 2017
1 parent c5f3675 commit 9fdc1b9
Show file tree
Hide file tree
Showing 6 changed files with 339 additions and 139 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
vendor/
composer.lock
tests
.idea/
.idea
72 changes: 72 additions & 0 deletions Tests/Test.php

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"psr-4": {
"STAILEUAccounts\\": "src/"
}
},
"require-dev": {
"phpunit/phpunit": "^6.5"
}
}

48 changes: 26 additions & 22 deletions src/Avatar.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
<?php
<?php

namespace STAILEUAccounts;
namespace STAILEUAccounts;

class Avatar{
class Avatar
{

/**
* @var string $base64 The base64 avatar
*/
private $base64;
/**
* @var string $base64 The base64 avatar
*/
private $base64;

/**
* @var string $url The avatar url
*/
private $url;
/**
* @var string $url The avatar url
*/
private $url;

public function __construct($base64, $url){
$this->base64 = $base64;
$this->url = $url;
}
public function __construct($base64, $url)
{
$this->base64 = $base64;
$this->url = $url;
}

public function getUrl(){
return $this->url;
}
public function getUrl()
{
return $this->url;
}

public function getBase64(){
return $this->base64;
}
public function getBase64()
{
return $this->base64;
}

}
}
48 changes: 26 additions & 22 deletions src/Login.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
<?php
<?php

namespace STAILEUAccounts;
namespace STAILEUAccounts;

class Login{
class Login
{

private $CSA;
private $tfa;
private $tfa_token;
private $d;
private $CSA;
private $tfa;
private $TFAToken;

public function __construct($CSA = null, $tfa = false, $tfa_token = null){
$this->CSA = $CSA;
$this->tfa = $tfa;
$this->tfa_token = $tfa_token;
}
public function __construct($CSA = NULL, $tfa = false, $TFAToken = NULL)
{
$this->CSA = $CSA;
$this->tfa = $tfa;
$this->TFAToken = $TFAToken;
}

public function isUsingTfa(){
return $this->tfa;
}
public function isUsingTfa()
{
return $this->tfa;
}

public function getCSAToken(){
return $this->CSA;
}
public function getCSAToken()
{
return $this->CSA;
}

public function getTFAToken(){
return $this->tfa_token;
}
public function getTFAToken()
{
return $this->TFAToken;
}

}
}
Loading

0 comments on commit 9fdc1b9

Please sign in to comment.