Completed
Pull Request — master (#83)
by Sebastian
03:53
created
app/Models/Article.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function isSpecialArticle(): bool
43 43
     {
44
-        return ! empty($this->technical_name);
44
+        return !empty($this->technical_name);
45 45
     }
46 46
 
47 47
     public function children(): HasMany
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     public function getFirstChildAttribute(): Article
58 58
     {
59
-        if (! $this->hasChildren()) {
59
+        if (!$this->hasChildren()) {
60 60
             throw new Exception("Article `{$this->id}` doesn't have any children.");
61 61
         }
62 62
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     public function hasParent(): bool
79 79
     {
80
-        return ! is_null($this->parent);
80
+        return !is_null($this->parent);
81 81
     }
82 82
 
83 83
     public function getFullUrlAttribute(): string
Please login to merge, or discard this patch.
app/Repositories/ArticleRepository.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
         return Cache::rememberForever(
34 34
             "article.findByTechnicalName.{$technicalName}",
35
-            function () use ($technicalName) {
35
+            function() use ($technicalName) {
36 36
                 return Article::where('technical_name', $technicalName)->firstOrFail();
37 37
             }
38 38
         );
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         return Cache::rememberForever(
44 44
             "article.getWithTechnicalNameLike.{$technicalName}",
45
-            function () use ($technicalName) {
45
+            function() use ($technicalName) {
46 46
                 return Article::where('technical_name', 'like', "{$technicalName}.%")
47 47
                     ->orderBy('order_column')
48 48
                     ->get();
Please login to merge, or discard this patch.