Completed
Push — master ( 66fc83...c346cd )
by Temitope
02:32
created
src/Auth/Middleware.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author   Temitope Olotin <[email protected]>
4
- * @license  <https://opensource.org/license/MIT> MIT
5
- */
3
+     * @author   Temitope Olotin <[email protected]>
4
+     * @license  <https://opensource.org/license/MIT> MIT
5
+     */
6 6
 
7 7
 namespace Laztopaz\EmojiRestfulAPI;
8 8
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         $authHeader = $request->getHeader('HTTP_AUTHORIZATION');
19 19
 
20 20
         try {
21
-            if (is_array($authHeader) && ! empty($authHeader)) {
21
+            if (is_array($authHeader) && !empty($authHeader)) {
22 22
                 $secretKey = base64_decode(getenv('secret'));
23 23
                 $jwt = json_decode($authHeader[0], true);
24 24
                 //decode the JWT using the key from config
Please login to merge, or discard this patch.
src/Model/Emoji.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author   Temitope Olotin <[email protected]>
4
- * @license  <https://opensource.org/license/MIT> MIT
5
- */
3
+     * @author   Temitope Olotin <[email protected]>
4
+     * @license  <https://opensource.org/license/MIT> MIT
5
+     */
6 6
 
7 7
 namespace Laztopaz\EmojiRestfulAPI;
8 8
 
Please login to merge, or discard this patch.
src/Model/User.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author   Temitope Olotin <[email protected]>
4
- * @license  <https://opensource.org/license/MIT> MIT
5
- */
3
+     * @author   Temitope Olotin <[email protected]>
4
+     * @license  <https://opensource.org/license/MIT> MIT
5
+     */
6 6
 
7 7
 namespace Laztopaz\EmojiRestfulAPI;
8 8
 
Please login to merge, or discard this patch.
src/Model/Keyword.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author   Temitope Olotin <[email protected]>
4
- * @license  <https://opensource.org/license/MIT> MIT
5
- */
3
+     * @author   Temitope Olotin <[email protected]>
4
+     * @license  <https://opensource.org/license/MIT> MIT
5
+     */
6 6
 
7 7
 namespace Laztopaz\EmojiRestfulAPI;
8 8
 
Please login to merge, or discard this patch.
src/Model/Category.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author   Temitope Olotin <[email protected]>
4
- * @license  <https://opensource.org/license/MIT> MIT
5
- */
3
+     * @author   Temitope Olotin <[email protected]>
4
+     * @license  <https://opensource.org/license/MIT> MIT
5
+     */
6 6
 
7 7
 namespace Laztopaz\EmojiRestfulAPI;
8 8
 
Please login to merge, or discard this patch.
index.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author   Temitope Olotin <[email protected]>
4
- * @license  <https://opensource.org/license/MIT> MIT
5
- */
3
+     * @author   Temitope Olotin <[email protected]>
4
+     * @license  <https://opensource.org/license/MIT> MIT
5
+     */
6 6
 
7 7
 namespace Laztopaz\EmojiRestfulAPI;
8 8
 
Please login to merge, or discard this patch.
src/Database/Schema.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author   Temitope Olotin <[email protected]>
4
- * @license  <https://opensource.org/license/MIT> MIT
5
- */
3
+     * @author   Temitope Olotin <[email protected]>
4
+     * @license  <https://opensource.org/license/MIT> MIT
5
+     */
6 6
 
7 7
 namespace Laztopaz\EmojiRestfulAPI;
8 8
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function createUser()
27 27
     {
28
-        if (! Capsule::schema()->hasTable('users')) {
29
-            Capsule::schema()->create('users', function ($table) {
28
+        if (!Capsule::schema()->hasTable('users')) {
29
+            Capsule::schema()->create('users', function($table) {
30 30
                 $table->increments('id');
31 31
                 $table->string('firstname');
32 32
                 $table->string('lastname');
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function createKeyword()
45 45
     {
46
-        if (! Capsule::schema()->hasTable('keywords')) {
47
-            Capsule::schema()->create('keywords', function ($table) {
46
+        if (!Capsule::schema()->hasTable('keywords')) {
47
+            Capsule::schema()->create('keywords', function($table) {
48 48
                 $table->increments('id');
49 49
                 $table->integer('emoji_id');
50 50
                 $table->string('keyword_name');
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function createCategory()
60 60
     {
61
-        if (! Capsule::schema()->hasTable('categories')) {
62
-            Capsule::schema()->create('categories', function ($table) {
61
+        if (!Capsule::schema()->hasTable('categories')) {
62
+            Capsule::schema()->create('categories', function($table) {
63 63
                 $table->increments('id');
64 64
                 $table->string('category_name');
65 65
                 $table->timestamps();
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function createEmoji()
75 75
     {
76
-        if (! Capsule::schema()->hasTable('emojis')) {
77
-            Capsule::schema()->create('emojis', function ($table) {
76
+        if (!Capsule::schema()->hasTable('emojis')) {
77
+            Capsule::schema()->create('emojis', function($table) {
78 78
                 $table->increments('id');
79 79
                 $table->string('name');
80 80
                 $table->string('char');
Please login to merge, or discard this patch.
src/Controller/UserController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author   Temitope Olotin <[email protected]>
4
- * @license  <https://opensource.org/license/MIT> MIT
5
- */
3
+     * @author   Temitope Olotin <[email protected]>
4
+     * @license  <https://opensource.org/license/MIT> MIT
5
+     */
6 6
 
7 7
 namespace Laztopaz\EmojiRestfulAPI;
8 8
 
Please login to merge, or discard this patch.
src/Database/UploadTableInfo.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author   Temitope Olotin <[email protected]>
4
- * @license  <https://opensource.org/license/MIT> MIT
5
- */
3
+     * @author   Temitope Olotin <[email protected]>
4
+     * @license  <https://opensource.org/license/MIT> MIT
5
+     */
6 6
 
7 7
 namespace Laztopaz\EmojiRestfulAPI;
8 8
 
Please login to merge, or discard this patch.