Completed
Pull Request — master (#15)
by Phecho
03:20
created
app/Http/Routes/SignupRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             'middleware' => ['app.hasSetting', 'guest'],
30 30
             'setting'    => 'app_name',
31 31
             'as'         => 'signup.',
32
-        ], function ($router) {
32
+        ], function($router) {
33 33
             $router->get('signup/invite/{code}', [
34 34
                 'as'   => 'invite',
35 35
                 'uses' => 'SignupController@getSignup',
Please login to merge, or discard this patch.
app/Http/Routes/SubscribeRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
             'middleware' => ['app.hasSetting', 'localize'],
30 30
             'setting'    => 'app_name',
31 31
             'as'         => 'subscribe.',
32
-        ], function ($router) {
33
-            $router->group(['middleware' => 'app.subscribers'], function ($router) {
32
+        ], function($router) {
33
+            $router->group(['middleware' => 'app.subscribers'], function($router) {
34 34
                 $router->get('subscribe', [
35 35
                     'as'   => 'subscribe',
36 36
                     'uses' => 'SubscribeController@showSubscribe',
Please login to merge, or discard this patch.
app/Models/Invite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         parent::boot();
40 40
 
41
-        self::creating(function ($invite) {
41
+        self::creating(function($invite) {
42 42
             if (!$invite->code) {
43 43
                 $invite->code = self::generateInviteCode();
44 44
             }
Please login to merge, or discard this patch.
app/Models/Project.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
      */
175 175
     public function getTagsListAttribute()
176 176
     {
177
-        $tags = $this->tags->map(function ($tag) {
177
+        $tags = $this->tags->map(function($tag) {
178 178
             return $tag->name;
179 179
         });
180 180
 
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,11 +87,11 @@
 block discarded – undo
87 87
         return $this->belongsTo(Group::class, 'namespace_id', 'id');
88 88
     }
89 89
 
90
-     /**
91
-     * Projects can belong to a namespace.
92
-     *
93
-     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
94
-     */
90
+        /**
91
+         * Projects can belong to a namespace.
92
+         *
93
+         * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
94
+         */
95 95
     public function projectNamespace()
96 96
     {
97 97
         return $this->belongsTo(ProjectNamespace::class, 'namespace_id', 'id');
Please login to merge, or discard this patch.
app/Models/Tag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         parent::boot();
42 42
 
43
-        self::creating(function ($tag) {
43
+        self::creating(function($tag) {
44 44
             $tag->slug = Str::slug($tag->name);
45 45
         });
46 46
     }
Please login to merge, or discard this patch.
app/Models/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     {
73 73
         parent::boot();
74 74
 
75
-        self::creating(function ($user) {
75
+        self::creating(function($user) {
76 76
             if (!$user->api_key) {
77 77
                 $user->api_key = self::generateApiKey();
78 78
             }
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function boot(Dispatcher $dispatcher)
27 27
     {
28
-        $dispatcher->mapUsing(function ($command) {
28
+        $dispatcher->mapUsing(function($command) {
29 29
             return Dispatcher::simpleMapping($command, 'Gitamin', 'Gitamin\Handlers');
30 30
         });
31 31
 
32
-        Str::macro('canonicalize', function ($url) {
32
+        Str::macro('canonicalize', function($url) {
33 33
             return preg_replace('/([^\/])$/', '$1/', $url);
34 34
         });
35 35
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     protected function registerDateFactory()
53 53
     {
54
-        $this->app->singleton(DateFactory::class, function ($app) {
54
+        $this->app->singleton(DateFactory::class, function($app) {
55 55
             $appTimezone = $app->config->get('app.timezone');
56 56
             $gitamInimezone = $app->config->get('gitamin.timezone');
57 57
 
Please login to merge, or discard this patch.
app/Providers/ConfigServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      */
70 70
     public function register()
71 71
     {
72
-        $this->app->bindShared('setting', function () {
72
+        $this->app->bindShared('setting', function() {
73 73
             return new Repository(new SettingModel());
74 74
         });
75 75
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function map(Router $router)
65 65
     {
66
-        $router->group(['namespace' => $this->namespace], function (Router $router) {
66
+        $router->group(['namespace' => $this->namespace], function(Router $router) {
67 67
             foreach (glob(app_path('Http//Routes').'/*.php') as $file) {
68 68
                 $this->app->make('Gitamin\\Http\\Routes\\'.basename($file, '.php'))->map($router);
69 69
             }
Please login to merge, or discard this patch.