Passed
Push — master ( 3f32a9...11dbc5 )
by Carlos
05:59
created
database/migrations/2018_06_29_032244_create_laravel_follow_tables.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function up()
21 21
     {
22
-        Schema::create(config('follow.followable_table', 'followables'), function (Blueprint $table) {
22
+        Schema::create(config('follow.followable_table', 'followables'), function(Blueprint $table) {
23 23
             $userForeignKey = config('follow.users_table_foreign_key', 'user_id');
24 24
 
25 25
             // Laravel 5.8 session user is unsignedBigInteger
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function down()
51 51
     {
52
-        Schema::table(config('follow.followable_table', 'followables'), function ($table) {
53
-            $table->dropForeign(config('follow.followable_table', 'followables') . '_user_id_foreign');
52
+        Schema::table(config('follow.followable_table', 'followables'), function($table) {
53
+            $table->dropForeign(config('follow.followable_table', 'followables').'_user_id_foreign');
54 54
         });
55 55
 
56 56
         Schema::drop(config('follow.followable_table', 'followables'));
Please login to merge, or discard this patch.
src/FollowRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
 
102 102
         $namespace = config('follow.model_namespace', 'App');
103 103
 
104
-        $modelName = $namespace . '\\' . studly_case($type);
104
+        $modelName = $namespace.'\\'.studly_case($type);
105 105
 
106 106
         if (!class_exists($modelName)) {
107 107
             throw new InvalidArgumentException("Model {$modelName} not exists. Please check your config 'follow.model_namespace'.");
Please login to merge, or discard this patch.
src/FollowServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
     public function boot()
22 22
     {
23 23
         $this->publishes([
24
-            realpath(__DIR__ . '/../config/follow.php') => config_path('follow.php'),
24
+            realpath(__DIR__.'/../config/follow.php') => config_path('follow.php'),
25 25
         ], 'config');
26 26
 
27 27
         $this->publishes([
28
-            realpath(__DIR__ . '/../database/migrations') => database_path('migrations'),
28
+            realpath(__DIR__.'/../database/migrations') => database_path('migrations'),
29 29
         ], 'migrations');
30 30
     }
31 31
 
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function register()
36 36
     {
37
-        $this->mergeConfigFrom(realpath(__DIR__ . '/../config/follow.php'), 'follow');
37
+        $this->mergeConfigFrom(realpath(__DIR__.'/../config/follow.php'), 'follow');
38 38
     }
39 39
 }
Please login to merge, or discard this patch.