Completed
Pull Request — master (#79)
by Sebastian
04:18
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/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/Foundation/Models/Traits/Draftable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     protected static function bootDraftable()
12 12
     {
13
-        static::updating(function ($model) {
13
+        static::updating(function($model) {
14 14
             $model->wasDraft = $model->isDraft();
15 15
             $model->draft = false;
16 16
         });
Please login to merge, or discard this patch.
app/Foundation/Models/Traits/HasTags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     public function tagsWithType(TagType $type) : Collection
18 18
     {
19
-        return $this->tags->filter(function (Tag $tag) use ($type) {
19
+        return $this->tags->filter(function(Tag $tag) use ($type) {
20 20
             return $tag->hasType($type);
21 21
         });
22 22
     }
Please login to merge, or discard this patch.
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/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/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/Http/Requests/Request.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     /**
36 36
      * Get a parameter of the current route.
37 37
      *
38
-     * @param $key
38
+     * @param string $key
39 39
      *
40 40
      * @return object|string
41 41
      */
Please login to merge, or discard this patch.
app/Providers/ValidationServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     public function boot()
16 16
     {
17
-        Validator::extend('tags_exist', function ($attribute, $tagNames, $parameters) {
17
+        Validator::extend('tags_exist', function($attribute, $tagNames, $parameters) {
18 18
             list($tagType) = $parameters;
19 19
             $tagType = new TagType($tagType);
20 20
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             return true;
31 31
         });
32 32
 
33
-        Validator::extend('enum', function ($attribute, $value, $parameters) {
33
+        Validator::extend('enum', function($attribute, $value, $parameters) {
34 34
 
35 35
             /** @var \App\Foundation\Models\Enums\Enum $class */
36 36
             $class = $parameters[0];
Please login to merge, or discard this patch.