Completed
Push — master ( 9b9e7a...58d84b )
by Pavel
02:36
created
app/database/migrations/20160706231338_create_users_table.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     */
9 9
     public function up()
10 10
     {
11
-        Capsule::schema()->create('users', function($table)
12
-        {
11
+        Capsule::schema()->create('users', function($table) {
13 12
             $table->increments('id');
14 13
             $table->string('email')->unique();
15 14
             $table->string('full_name');
Please login to merge, or discard this patch.
app/database/migrations/20160706233448_create_logs_table.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     */
9 9
     public function up()
10 10
     {
11
-        Capsule::schema()->create('logs', function($table)
12
-        {
11
+        Capsule::schema()->create('logs', function($table) {
13 12
             $table->increments('id');
14 13
             $table->string('action');
15 14
             $table->morphs('entity');
Please login to merge, or discard this patch.
app/database/migrations/20161016143152_create_roles_to_right_table.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     */
9 9
     public function up()
10 10
     {
11
-        Capsule::schema()->create('roles_to_rights', function($table)
12
-        {
11
+        Capsule::schema()->create('roles_to_rights', function($table) {
13 12
             $table->integer('role_id')->unsigned();
14 13
             $table->integer('right_id')->unsigned();
15 14
             $table->primary(['role_id', 'right_id']);
Please login to merge, or discard this patch.
app/src/Common/Helper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
         $i     = 1;
52 52
         $token = '';
53 53
 
54
-        while ($i <= $length)
55
-        {
54
+        while ($i <= $length) {
56 55
             $num = rand() % $charsCount;
57 56
             $tmp = substr($chars, $num, 1);
58 57
             $token .= $tmp;
Please login to merge, or discard this patch.
app/src/Model/RefreshToken.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@
 block discarded – undo
24 24
 
25 25
     public $timestamps = false;
26 26
 
27
-    public function user(){
27
+    public function user()
28
+    {
28 29
         return $this->belongsTo('App\Model\User');
29 30
     }
30 31
 
Please login to merge, or discard this patch.
app/src/Model/AccessToken.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@  discard block
 block discarded – undo
24 24
 
25 25
     public $timestamps = false;
26 26
 
27
-    public function user(){
27
+    public function user()
28
+    {
28 29
         return $this->belongsTo('App\Model\User');
29 30
     }
30 31
 
@@ -56,7 +57,7 @@  discard block
 block discarded – undo
56 57
         try {
57 58
             $payload = JWT::decode($token, getenv('SECRET_KEY'), ['HS256']);
58 59
             return in_array($payload->aud, $whiteList);
59
-        } catch (\Exception $e){
60
+        } catch (\Exception $e) {
60 61
             return false;
61 62
         }
62 63
     }
Please login to merge, or discard this patch.
app/database/migrations/20170128112159_create_access_tokens_table.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     */
9 9
     public function up()
10 10
     {
11
-        Capsule::schema()->create('access_tokens', function($table)
12
-        {
11
+        Capsule::schema()->create('access_tokens', function($table) {
13 12
             $table->increments('id');
14 13
             $table->integer('user_id')->unsigned()->index();
15 14
             $table->string('access_token')->unique()->nullable();
Please login to merge, or discard this patch.
app/database/migrations/20170129140408_create_refresh_tokens_table.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     */
9 9
     public function up()
10 10
     {
11
-        Capsule::schema()->create('refresh_tokens', function($table)
12
-        {
11
+        Capsule::schema()->create('refresh_tokens', function($table) {
13 12
             $table->increments('id');
14 13
             $table->integer('user_id')->unsigned()->index();
15 14
             $table->string('refresh_token')->unique()->nullable();
Please login to merge, or discard this patch.