Completed
Push — master ( 4636f1...cfa1bb )
by Sebastian
03:57
created
app/Console/Commands/ClearBeanstalkdQueue.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
     public function fire()
43 43
     {
44 44
         $queue = ($this->argument('queue')) ?
45
-            $this->argument('queue') :
46
-            config('queue.connections.beanstalkd.queue');
45
+            $this->argument('queue') : config('queue.connections.beanstalkd.queue');
47 46
 
48 47
         $this->info(sprintf('Clearing queue: %s', $queue));
49 48
 
Please login to merge, or discard this patch.
app/Console/Commands/DeleteOldDrafts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function handle()
32 32
     {
33
-        array_map(function ($draftableModelClass) {
33
+        array_map(function($draftableModelClass) {
34 34
                 $this->deleteOldDraftsForModelClass($draftableModelClass);
35 35
         }, $this->getAllDraftableModelClassNames());
36 36
 
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
 
40 40
     private function getAllDraftableModelClassNames()
41 41
     {
42
-        return array_filter($this->getAllModelClassNames(), function ($modelClass) {
42
+        return array_filter($this->getAllModelClassNames(), function($modelClass) {
43 43
             return  (in_array(Draftable::class, class_uses($modelClass)));
44 44
         });
45 45
     }
46 46
 
47 47
     private function getAllModelClassNames()
48 48
     {
49
-        return array_map(function ($path) {
49
+        return array_map(function($path) {
50 50
             $modelPath = str_replace(base_path().'/', '', $path);
51 51
             $modelClass = '\\'.ucfirst(str_replace(['/', '.php'], ['\\', ''], $modelPath));
52 52
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/PasswordController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $this->validate($request, ['email' => 'required']);
76 76
 
77
-        $response = $this->passwords->sendResetLink($request->only('email'), function ($message) {
77
+        $response = $this->passwords->sendResetLink($request->only('email'), function($message) {
78 78
             $message->subject($this->getEmailSubject());
79 79
         });
80 80
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             'email', 'password', 'password_confirmation', 'token'
148 148
         );
149 149
 
150
-        $response = $this->passwords->reset($credentials, function ($user, $password) {
150
+        $response = $this->passwords->reset($credentials, function($user, $password) {
151 151
             $user->password = $password;
152 152
 
153 153
             $user->save();
Please login to merge, or discard this patch.
app/Http/Routes/auth.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 Route::post('auth/login', 'AuthController@postLogin');
5 5
 Route::get('auth/logout', ['uses' => 'AuthController@getLogout', 'as' => 'logout']);
6 6
 
7
-Route::get('auth', function () {
7
+Route::get('auth', function() {
8 8
     return redirect('/nl/auth/login');
9 9
 });
10 10
 
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
 Route::get('password/reset/{token}', 'PasswordController@getReset');
14 14
 Route::post('password/reset/{token}', 'PasswordController@postReset');
15 15
 
16
-Route::get('password', function () {
16
+Route::get('password', function() {
17 17
     return redirect()->action('PasswordController@getEmail');
18 18
 });
19 19
 
20 20
 Route::pattern('registrationRole', '(member)');
21
-Route::group(['prefix' => 'register'], function () {
21
+Route::group(['prefix' => 'register'], function() {
22 22
     Route::get('{registrationRole}', 'RegistrationController@showRegistrationForm');
23 23
     Route::post('{registrationRole}', 'RegistrationController@saveUser');
24 24
 });
Please login to merge, or discard this patch.
app/Models/Enums/UserRole.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     public static function allAsRegex()
13 13
     {
14
-        return collect(self::values())->map(function ($role) {
14
+        return collect(self::values())->map(function($role) {
15 15
             return "({$role})";
16 16
         })->implode('|');
17 17
     }
Please login to merge, or discard this patch.
app/Models/FormResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 
12 12
     public static function downloadAll()
13 13
     {
14
-        Excel::create('Responses '.date('Y-m-d'), function ($excel) {
14
+        Excel::create('Responses '.date('Y-m-d'), function($excel) {
15 15
 
16
-            $excel->sheet('Responses', function ($sheet) {
16
+            $excel->sheet('Responses', function($sheet) {
17 17
 
18 18
                 $sheet->freezeFirstRow();
19 19
 
20
-                $sheet->cells('A1:Z1', function ($cells) {
20
+                $sheet->cells('A1:Z1', function($cells) {
21 21
                     $cells->setFontWeight('bold');
22 22
                     $cells->setBorder('node', 'none', 'solid', 'none');
23 23
                 });
Please login to merge, or discard this patch.
app/Providers/CacheServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,15 +20,15 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function register()
22 22
     {
23
-        $this->app->singleton('cache', function ($app) {
23
+        $this->app->singleton('cache', function($app) {
24 24
             return new CacheManager($app);
25 25
         });
26 26
 
27
-        $this->app->singleton('cache.store', function ($app) {
27
+        $this->app->singleton('cache.store', function($app) {
28 28
             return $app['cache']->driver();
29 29
         });
30 30
 
31
-        $this->app->singleton('memcached.connector', function () {
31
+        $this->app->singleton('memcached.connector', function() {
32 32
             return new MemcachedConnector();
33 33
         });
34 34
 
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function registerCommands()
42 42
     {
43
-        $this->app->singleton('command.cache.clear', function ($app) {
43
+        $this->app->singleton('command.cache.clear', function($app) {
44 44
             return new ClearCommand($app['cache']);
45 45
         });
46 46
 
47
-        $this->app->singleton('command.cache.table', function ($app) {
47
+        $this->app->singleton('command.cache.table', function($app) {
48 48
             return new CacheTableCommand($app['files'], $app['composer']);
49 49
         });
50 50
 
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
      */
51 51
     protected function mapAuthRoutes(Router $router)
52 52
     {
53
-        $router->get('auth/{action?}', function ($action = null) {
53
+        $router->get('auth/{action?}', function($action = null) {
54 54
             return redirect(app()->getLocale().'/auth/'.$action);
55 55
         });
56 56
 
57 57
         foreach (config('app.backLocales') as $locale) {
58
-            $router->group(['namespace' => $this->namespace.'\Auth', 'prefix' => $locale], function () {
58
+            $router->group(['namespace' => $this->namespace.'\Auth', 'prefix' => $locale], function() {
59 59
                 require app_path('Http/Routes/auth.php');
60 60
             });
61 61
         }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 'middleware' => 'can:viewBacksite',
73 73
                 'prefix' => 'blender',
74 74
             ],
75
-            function ($router) {
75
+            function($router) {
76 76
                 require app_path('Http/Routes/back.php');
77 77
             }
78 78
         );
@@ -88,18 +88,18 @@  discard block
 block discarded – undo
88 88
                 'namespace' => $this->namespace.'\Front',
89 89
                 'middleware' => 'sanitizeInput',
90 90
             ],
91
-            function ($router) {
91
+            function($router) {
92 92
                 // Add routes for mono lingual site
93 93
                 if (count(config('app.locales')) == 1) {
94 94
                     $this->requireFrontRoutes();
95 95
                 }
96 96
                 // Add routes for multi lingual site
97 97
                 else {
98
-                    $router->get('/', function () {
98
+                    $router->get('/', function() {
99 99
                         return redirect(config('app.locales')[0]);
100 100
                     });
101 101
 
102
-                    $router->group(['prefix' => app()->getLocale()], function () {
102
+                    $router->group(['prefix' => app()->getLocale()], function() {
103 103
                         $this->requireFrontRoutes();
104 104
                     });
105 105
                 }
@@ -121,13 +121,13 @@  discard block
 block discarded – undo
121 121
      */
122 122
     protected function registerMacros(Router $router)
123 123
     {
124
-        $router->macro('redirect', function ($url, $action) use ($router) {
125
-            $router->get($url, function () use ($action) {
124
+        $router->macro('redirect', function($url, $action) use ($router) {
125
+            $router->get($url, function() use ($action) {
126 126
                 return redirect()->action($action);
127 127
             });
128 128
         });
129 129
 
130
-        $router->macro('module', function ($slug, $className, $sortable = false) use ($router) {
130
+        $router->macro('module', function($slug, $className, $sortable = false) use ($router) {
131 131
             if ($sortable) {
132 132
                 $router->patch("{$slug}/changeOrder", "{$className}Controller@changeOrder");
133 133
             }
@@ -135,15 +135,15 @@  discard block
 block discarded – undo
135 135
             $router->resource($slug, "{$className}Controller");
136 136
         });
137 137
 
138
-        $router->macro('articleList', function ($technicalNamePrefix, $action) use ($router) {
138
+        $router->macro('articleList', function($technicalNamePrefix, $action) use ($router) {
139 139
 
140 140
             $articles = app(ArticleRepository::class)->getWithTechnicalNameLike($technicalNamePrefix);
141 141
 
142
-            $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}"),  function () use ($articles) {
142
+            $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}"), function() use ($articles) {
143 143
                 return redirect(route("{$articles->first()->technical_name}"));
144 144
             })->name($technicalNamePrefix);
145 145
 
146
-            $articles->map(function ($article) use ($technicalNamePrefix, $action, $router) {
146
+            $articles->map(function($article) use ($technicalNamePrefix, $action, $router) {
147 147
                 $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}").'/'.$article->url, $action)->name("{$article->technical_name}");
148 148
             });
149 149
         });
Please login to merge, or discard this patch.
app/Providers/ValidationServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function boot()
14 14
     {
15
-        Validator::extend('tags_exist', function ($attributeName, $tagNames, $parameters) {
15
+        Validator::extend('tags_exist', function($attributeName, $tagNames, $parameters) {
16 16
             list($tagType) = $parameters;
17 17
 
18 18
             $exisitingTagNames = app(\App\Repositories\TagRepository::class)
Please login to merge, or discard this patch.