Completed
Push — master ( f5b97f...ee3f88 )
by Sebastian
03:53
created
app/Foundation/Models/Traits/HasMedia.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     public function clearTemporaryMedia()
36 36
     {
37
-        $this->media()->get()->each(function (Media $media) {
37
+        $this->media()->get()->each(function(Media $media) {
38 38
             if ($media->getCustomProperty('temp', false) === true) {
39 39
                 $media->delete();
40 40
             }
Please login to merge, or discard this patch.
app/Foundation/Models/Updaters/UpdatesTags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     public function updateTagsForType(string $type)
20 20
     {
21
-        collect($this->request->get("{$type}_tags"))->each(function ($name) use ($type) {
21
+        collect($this->request->get("{$type}_tags"))->each(function($name) use ($type) {
22 22
             $type = new TagType($type);
23 23
 
24 24
             $tag = Tag::findByNameOrCreate($name, $type);
Please login to merge, or discard this patch.
app/Foundation/Models/Updaters/UpdatesMedia.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
                 $collection
23 23
             );
24 24
 
25
-            collect($updatedMedia)->each(function (Media $media) {
25
+            collect($updatedMedia)->each(function(Media $media) {
26 26
                 $media->setCustomProperty('temp', false);
27 27
                 $media->save();
28 28
             });
Please login to merge, or discard this patch.
app/Models/Fragment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public static function findByName(string $name)
20 20
     {
21
-        return app('cache')->rememberForever("fragment.findByName.{$name}", function () use ($name) {
21
+        return app('cache')->rememberForever("fragment.findByName.{$name}", function() use ($name) {
22 22
             return static::where('name', $name)->first();
23 23
         });
24 24
     }
Please login to merge, or discard this patch.
app/Models/Article.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         return app('cache')->rememberForever(
19 19
             "article.findByTechnicalName.{$technicalName}",
20
-            function () use ($technicalName) : Article {
20
+            function() use ($technicalName) : Article {
21 21
                 $article = static::where('technical_name', $technicalName)->first();
22 22
 
23 23
                 if ($article === null) {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         return app('cache')->rememberForever(
35 35
             "article.getWithTechnicalNameLike.{$technicalName}",
36
-            function () use ($technicalName) : Collection {
36
+            function() use ($technicalName) : Collection {
37 37
                 return static::where('technical_name', 'like', "{$technicalName}.%")
38 38
                     ->orderBy('order_column')
39 39
                     ->get();
Please login to merge, or discard this patch.
app/Http/Middleware/RobotsMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
             return false;
15 15
         }
16 16
 
17
-        if (! app()->environment('production')) {
17
+        if (!app()->environment('production')) {
18 18
             return false;
19 19
         }
20 20
 
21
-        if (! env('ALLOW_ROBOTS')) {
21
+        if (!env('ALLOW_ROBOTS')) {
22 22
             return false;
23 23
         }
24 24
 
Please login to merge, or discard this patch.
app/Http/Controllers/Back/TagController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function index()
17 17
     {
18
-        $tags = Tag::nonDraft()->get()->reduce(function (Collection $carry, Tag $tag) {
18
+        $tags = Tag::nonDraft()->get()->reduce(function(Collection $carry, Tag $tag) {
19 19
 
20 20
             if (!$carry->has($tag->type)) {
21 21
                 $carry->put($tag->type, new Collection());
Please login to merge, or discard this patch.
app/Services/Html/HtmlServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected function registerHtmlBuilder()
33 33
     {
34
-        $this->app->singleton('html', function ($app) {
34
+        $this->app->singleton('html', function($app) {
35 35
             return new HtmlBuilder($app['url']);
36 36
         });
37 37
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     protected function registerFormBuilder()
43 43
     {
44
-        $this->app->singleton('form', function ($app) {
44
+        $this->app->singleton('form', function($app) {
45 45
             $formBuilder = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken());
46 46
 
47 47
             $formBuilder->setSessionStore($app['session.store']);
Please login to merge, or discard this patch.
app/Services/Navigation/Navigation.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             $menu->add('/'.$locale.'/auth/login', $locale);
37 37
         }
38 38
 
39
-        $menu = $this->setActiveMenuItem($menu, function ($item) {
39
+        $menu = $this->setActiveMenuItem($menu, function($item) {
40 40
             return app()->getLocale() == explode('/', trim($item->getContent()->getUrl(), '/'))[0];
41 41
         });
42 42
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $menu->add(action('Back\NewsItemController@index', [], false), trans('back-newsItems.title'), null, null, ['class'=>'menu_group_item -secondary']);
51 51
         $menu->add(action('Back\PersonController@index', [], false), trans('back-people.title'), null, null, ['class'=>'menu_group_item -secondary']);
52 52
 
53
-        $menu = $this->setActiveMenuItem($menu, function ($item) {
53
+        $menu = $this->setActiveMenuItem($menu, function($item) {
54 54
             return str_replace('/blender/', '/', $item->getContent()->getUrl()) == ('/'.Request::segment(2));
55 55
         });
56 56
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $menu->add(action('Back\FormResponseController@showDownloadButton', [], false), trans('back-formResponses.title'), null, null, ['class'=>'menu_group_item -secondary']);
65 65
         $menu->add(action('Back\TagController@index', [], false), trans('back-tags.title'), null, null, ['class'=>'menu_group_item -secondary']);
66 66
 
67
-        $menu = $this->setActiveMenuItem($menu, function ($item) {
67
+        $menu = $this->setActiveMenuItem($menu, function($item) {
68 68
             return str_replace('/blender/', '/', $item->getContent()->getUrl()) == ('/'.Request::segment(2));
69 69
         });
70 70
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $menu->add(action('Back\ActivitylogController@index', [], false), 'Log', null, null, ['class'=>'menu_group_item -secondary']);
81 81
         $menu->add(action('Back\StatisticsController@index', [], false), trans('back-statistics.menuTitle'), null, null, ['class'=>'menu_group_item -secondary']);
82 82
 
83
-        $menu = $this->setActiveMenuItem($menu, function ($item) {
83
+        $menu = $this->setActiveMenuItem($menu, function($item) {
84 84
             return str_replace('/blender/', '/', $item->getContent()->getUrl()) == ('/'.Request::segment(2));
85 85
         });
86 86
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         $menu->add(action('Back\DashboardController@index', [], false), 'Dashboard', null, null, ['class'=>'menu_group_item']);
95 95
 
96
-        $menu = $this->setActiveMenuItem($menu, function ($item) {
96
+        $menu = $this->setActiveMenuItem($menu, function($item) {
97 97
             return str_replace('/blender/', '/', $item->getContent()->getUrl()) == ('/'.Request::segment(2));
98 98
         });
99 99
 
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $menu = Menu::handler('backUser');
106 106
 
107
-        $menu->add(action('Back\UserController@edit', ['id' => auth()->user()->id], false), HTML::avatar(auth()->user(), '-small') . '<span class=":responsive-desktop-only">' . auth()->user()->email . '</span>', null, null);
107
+        $menu->add(action('Back\UserController@edit', ['id' => auth()->user()->id], false), HTML::avatar(auth()->user(), '-small').'<span class=":responsive-desktop-only">'.auth()->user()->email.'</span>', null, null);
108 108
         $menu->add(action('Auth\AuthController@getLogout', [], false), '<span class="fa fa-power-off"></span>', null, ['class' => 'menu_circle -log-out', 'title' => 'log out']);
109 109
 
110
-        $menu = $this->setActiveMenuItem($menu, function ($item) {
110
+        $menu = $this->setActiveMenuItem($menu, function($item) {
111 111
             return str_replace('/blender/', '/', $item->getContent()->getUrl()) == ('/'.Request::segment(2));
112 112
         });
113 113
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             $menu->add("/blender/user/{$role}", trans("back-users.role.{$role}.plural"));
127 127
         }
128 128
 
129
-        $menu = $this->setActiveMenuItem($menu, function ($item) {
129
+        $menu = $this->setActiveMenuItem($menu, function($item) {
130 130
             return str_replace('/blender/', '/', $item->getContent()->getUrl()) == ('/'.Request::segment(2));
131 131
         });
132 132
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
     private function setActiveMenuItem($menu, callable $activeTest)
137 137
     {
138
-        $menu->getItemsByContentType('Menu\Items\Contents\Link')->map(function ($item) use ($activeTest) {
138
+        $menu->getItemsByContentType('Menu\Items\Contents\Link')->map(function($item) use ($activeTest) {
139 139
             if ($activeTest($item)) {
140 140
                 $item->addClass('active');
141 141
             }
Please login to merge, or discard this patch.