Passed
Push — master ( 8f1fcd...bdbf41 )
by Innocent
04:12 queued 01:11
created
src/Traits/FileTraits.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,18 +8,18 @@  discard block
 block discarded – undo
8 8
     {
9 9
         $pieces = explode('/', $path);
10 10
 
11
-        return $pieces[count($pieces) - 1];
11
+        return $pieces[ count($pieces) - 1 ];
12 12
     }
13 13
 
14 14
     public function getImage(string $dir, string $imageName, int $dimen = 0)
15 15
     {
16 16
         if ($dimen) {
17
-            $dimen = $dimen.'-'.$dimen.'/';
17
+            $dimen = $dimen . '-' . $dimen . '/';
18 18
         } else {
19 19
             $dimen = 'original/';
20 20
         }
21 21
 
22
-        return storage_path('app/public/'.$dir.'/'.$dimen.$imageName);
22
+        return storage_path('app/public/' . $dir . '/' . $dimen . $imageName);
23 23
     }
24 24
 
25 25
     public function getImages(string $dir, string $fileName)
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function deleteFiles($model)
35 35
     {
36
-        $images = [];
36
+        $images = [ ];
37 37
         foreach ($model->getImageDimensions() as $imageDimension) {
38 38
             if (is_string($model->getFileName())) {
39 39
                 array_push($images, $this->getImage($model->filesDir(), $model->getFileName(), $imageDimension));
Please login to merge, or discard this patch.
src/Traits/ActiveTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public function getActiveAttribute($val)
11 11
     {
12
-        return (bool) $val;
12
+        return (bool)$val;
13 13
     }
14 14
 
15 15
     public function scopeActive($query)
Please login to merge, or discard this patch.
routes/api.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,26 +6,26 @@
 block discarded – undo
6 6
 use FaithGen\SDK\Http\Controllers\ReviewController;
7 7
 use Illuminate\Support\Facades\Route;
8 8
 
9
-Route::name('ministry.')->prefix('ministry/')->group(function () {
10
-    Route::post('social-link', [MinistryController::class, 'getSocialLink']);
11
-    Route::get('profile', [MinistryController::class, 'getProfile']);
12
-    Route::get('account-type', [MinistryController::class, 'accountType']);
9
+Route::name('ministry.')->prefix('ministry/')->group(function() {
10
+    Route::post('social-link', [ MinistryController::class, 'getSocialLink' ]);
11
+    Route::get('profile', [ MinistryController::class, 'getProfile' ]);
12
+    Route::get('account-type', [ MinistryController::class, 'accountType' ]);
13 13
 });
14 14
 
15
-Route::name('images.')->prefix('images')->group(function () {
16
-    Route::post('comment', [ImageController::class, 'comment']);
17
-    Route::get('comments/{image}', [ImageController::class, 'comments']);
15
+Route::name('images.')->prefix('images')->group(function() {
16
+    Route::post('comment', [ ImageController::class, 'comment' ]);
17
+    Route::get('comments/{image}', [ ImageController::class, 'comments' ]);
18 18
 });
19 19
 
20 20
 Route::prefix('reviews')
21
-    ->group(function () {
22
-        Route::post('', [ReviewController::class, 'sendReview']);
21
+    ->group(function() {
22
+        Route::post('', [ ReviewController::class, 'sendReview' ]);
23 23
     });
24 24
 
25
-if (! config('faithgen-sdk.source')) {
25
+if (!config('faithgen-sdk.source')) {
26 26
     Route::prefix('comments')
27
-        ->group(function () {
28
-            Route::post('presence', [CommentController::class, 'presenceRegister']);
29
-            Route::post('typing', [CommentController::class, 'showTyping']);
27
+        ->group(function() {
28
+            Route::post('presence', [ CommentController::class, 'presenceRegister' ]);
29
+            Route::post('typing', [ CommentController::class, 'showTyping' ]);
30 30
         });
31 31
 }
Please login to merge, or discard this patch.
database/migrations/2019_09_04_135046_create_ministries_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('fg_ministries', function (Blueprint $table) {
16
+        Schema::create('fg_ministries', function(Blueprint $table) {
17 17
             $table->string('id', 150)->primary();
18 18
             $table->string('name');
19 19
             $table->string('email', 150)->unique();
Please login to merge, or discard this patch.
database/migrations/2019_09_04_142322_create_accounts_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('fg_accounts', function (Blueprint $table) {
16
+        Schema::create('fg_accounts', function(Blueprint $table) {
17 17
             $table->string('id', 150)->primary();
18 18
             $table->string('ministry_id', 150)->index();
19
-            $table->enum('level', ['Free', 'Premium', 'PremiumPlus'])->default('Free');
19
+            $table->enum('level', [ 'Free', 'Premium', 'PremiumPlus' ])->default('Free');
20 20
             $table->dateTime('expiry_date')->default(now());
21 21
             $table->timestamps();
22 22
 
Please login to merge, or discard this patch.
database/migrations/2014_10_12_000000_create_users_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('fg_users', function (Blueprint $table) {
16
+        Schema::create('fg_users', function(Blueprint $table) {
17 17
             $table->string('id', 150)->primary();
18 18
             $table->string('name');
19 19
             $table->string('email', 150)->nullable();
Please login to merge, or discard this patch.
database/migrations/2020_03_15_084928_create_reviews_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function up()
16 16
     {
17
-        Schema::create('fg_reviews', function (Blueprint $table) {
17
+        Schema::create('fg_reviews', function(Blueprint $table) {
18 18
             $table->string('id')->index();
19 19
             $table->string('ministry_id', 150)->index();
20 20
             $table->enum('type', Helper::$reviewTypes);
Please login to merge, or discard this patch.
database/migrations/2019_10_10_130626_create_a_p_i_keys_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('fg_a_p_i_keys', function (Blueprint $table) {
16
+        Schema::create('fg_a_p_i_keys', function(Blueprint $table) {
17 17
             $table->string('id');
18 18
             $table->string('ministry_id', 150)->unique()->index();
19 19
             $table->string('api_key')->unique();
Please login to merge, or discard this patch.
database/migrations/2019_12_10_120712_create_daily_services_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function up()
16 16
     {
17
-        Schema::create('fg_daily_services', function (Blueprint $table) {
17
+        Schema::create('fg_daily_services', function(Blueprint $table) {
18 18
             $table->string('id')->index();
19 19
             $table->string('ministry_id', 150)->index();
20 20
             $table->enum('day', Helper::$weekDays);
Please login to merge, or discard this patch.