Completed
Push — master ( 12ce9b...85cdc9 )
by Sebastian
33:43 queued 28:34
created
app/Foundation/Repositories/Repository.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
         $locale = content_locale();
71 71
 
72
-        if (! isset((new $model())->translatedAttributes)) {
72
+        if (!isset((new $model())->translatedAttributes)) {
73 73
             return $this->query()
74 74
                 ->online()
75 75
                 ->where('url', 'regexp', "\"{$locale}\"\s*:\s*\"{$url}\"")
Please login to merge, or discard this patch.
app/Foundation/helpers.php 1 patch
Spacing   +6 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
  */
36 36
 function current_front_user()
37 37
 {
38
-    if (! auth()->guard('front')->check()) {
38
+    if (!auth()->guard('front')->check()) {
39 39
         return;
40 40
     }
41 41
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
  */
48 48
 function current_back_user()
49 49
 {
50
-    if (! auth()->guard('back')->check()) {
50
+    if (!auth()->guard('back')->check()) {
51 51
         return;
52 52
     }
53 53
 
@@ -89,15 +89,13 @@  discard block
 block discarded – undo
89 89
 function login_url(): string
90 90
 {
91 91
     return request()->isFront() ?
92
-        action('Front\Auth\LoginController@showLoginForm') :
93
-        action('Back\Auth\LoginController@showLoginForm');
92
+        action('Front\Auth\LoginController@showLoginForm') : action('Back\Auth\LoginController@showLoginForm');
94 93
 }
95 94
 
96 95
 function logout_url(): string
97 96
 {
98 97
     return request()->isFront() ?
99
-        action('Front\Auth\LoginController@logout') :
100
-        action('Back\Auth\LoginController@logout');
98
+        action('Front\Auth\LoginController@logout') : action('Back\Auth\LoginController@logout');
101 99
 }
102 100
 
103 101
 function roman_year(int $year = null): string
@@ -158,11 +156,11 @@  discard block
 block discarded – undo
158 156
  */
159 157
 function validate($fields, $rules): bool
160 158
 {
161
-    if (! is_array($fields)) {
159
+    if (!is_array($fields)) {
162 160
         $fields = ['default' => $fields];
163 161
     }
164 162
 
165
-    if (! is_array($rules)) {
163
+    if (!is_array($rules)) {
166 164
         $rules = ['default' => $rules];
167 165
     }
168 166
 
Please login to merge, or discard this patch.
app/Foundation/Models/Traits/HasMedia.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
     protected function updateMediaLibraryFields($attributes)
19 19
     {
20
-        if (! isset($this->mediaLibraryCollections)) {
20
+        if (!isset($this->mediaLibraryCollections)) {
21 21
             return;
22 22
         }
23 23
 
@@ -34,7 +34,7 @@  discard block
 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/FormResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 
12 12
     public static function downloadAll()
13 13
     {
14
-        Excel::create('Responses '.date('Y-m-d'), function ($excel) {
15
-            $excel->sheet('Responses', function ($sheet) {
14
+        Excel::create('Responses '.date('Y-m-d'), function($excel) {
15
+            $excel->sheet('Responses', function($sheet) {
16 16
                 $sheet->freezeFirstRow();
17 17
 
18
-                $sheet->cells('A1:Z1', function ($cells) {
18
+                $sheet->cells('A1:Z1', function($cells) {
19 19
                     $cells->setFontWeight('bold');
20 20
                     $cells->setBorder('node', 'none', 'solid', 'none');
21 21
                 });
Please login to merge, or discard this patch.
app/Models/Article.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         return Cache::rememberForever(
37 37
             "article.findByTechnicalName.{$technicalName}",
38
-            function () use ($technicalName) : Article {
38
+            function() use ($technicalName) : Article {
39 39
                 $article = static::where('technical_name', $technicalName)->first();
40 40
 
41 41
                 if ($article === null) {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         return Cache::rememberForever(
53 53
             "article.getWithTechnicalNameLike.{$technicalName}",
54
-            function () use ($technicalName) : Collection {
54
+            function() use ($technicalName) : Collection {
55 55
                 return static::where('technical_name', 'like', "{$technicalName}.%")
56 56
                     ->orderBy('order_column')
57 57
                     ->get();
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function isDeletable(): bool
63 63
     {
64
-        return ! (bool) $this->technical_name;
64
+        return !(bool) $this->technical_name;
65 65
     }
66 66
 
67 67
     public function children(): HasMany
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
     public function hasParentArticle(): bool
83 83
     {
84
-        return ! is_null($this->parentArticle);
84
+        return !is_null($this->parentArticle);
85 85
     }
86 86
 
87 87
     public function getFullUrlAttribute(): string
Please login to merge, or discard this patch.
app/Providers/ValidationServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 {
11 11
     public function boot()
12 12
     {
13
-        Validator::extend('tags_exist', function ($attribute, $tagNames, $parameters) {
13
+        Validator::extend('tags_exist', function($attribute, $tagNames, $parameters) {
14 14
             list($tagType) = $parameters;
15 15
             $tagType = new TagType($tagType);
16 16
 
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
                 ->pluck('name')
20 20
                 ->toArray();
21 21
 
22
-            if (! \Spatie\values_in_array($tagNames, $exisitingTagNames)) {
22
+            if (!\Spatie\values_in_array($tagNames, $exisitingTagNames)) {
23 23
                 return false;
24 24
             }
25 25
 
26 26
             return true;
27 27
         });
28 28
 
29
-        Validator::extend('enum', function ($attribute, $value, $parameters) {
29
+        Validator::extend('enum', function($attribute, $value, $parameters) {
30 30
 
31 31
             /** @var \App\Foundation\Models\Enums\Enum $class */
32 32
             $class = $parameters[0];
Please login to merge, or discard this patch.
app/Providers/ConfigServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         }
33 33
 
34 34
         try {
35
-            if (! class_exists('Memcached')) {
35
+            if (!class_exists('Memcached')) {
36 36
                 throw new Exception();
37 37
             }
38 38
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         config()->set(
52 52
             'mail.recipients',
53
-            collect(config('mail.recipients'))->map(function () {
53
+            collect(config('mail.recipients'))->map(function() {
54 54
                 return '[email protected]';
55 55
             })
56 56
         );
Please login to merge, or discard this patch.
app/Http/Controllers/Back/AdministratorsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     {
59 59
         $user = $this->frontUserRepository->find($id);
60 60
 
61
-        if (! $user) {
61
+        if (!$user) {
62 62
             abort(404);
63 63
         }
64 64
 
Please login to merge, or discard this patch.