Completed
Pull Request — master (#101)
by Phecho
04:42
created
app/Models/Project.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
             $join->on('projects.owner_id', '=', 'owners.id');
168 168
         })->where('projects.path', '=', $project_path)->where('owners.path', '=', $owner_path)->first($columns);
169 169
         */
170
-        if (! $project) {
170
+        if (!$project) {
171 171
             throw new ModelNotFoundException();
172 172
         }
173 173
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     public function getTagsListAttribute()
239 239
     {
240
-        $tags = $this->tags->map(function ($tag) {
240
+        $tags = $this->tags->map(function($tag) {
241 241
             return $tag->name;
242 242
         });
243 243
 
Please login to merge, or discard this patch.
app/Models/Owner.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -84,16 +84,16 @@
 block discarded – undo
84 84
         return $this->hasMany(Project::class, 'owner_id', 'id');
85 85
     }
86 86
 
87
-     /**
88
-     * Find project under this owner by path, or throw an exception.
89
-     *
90
-     * @param string   $path
91
-     * @param string[] $columns
92
-     *
93
-     * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
94
-     *
95
-     * @return \Gitamin\Models\User
96
-     */
87
+        /**
88
+         * Find project under this owner by path, or throw an exception.
89
+         *
90
+         * @param string   $path
91
+         * @param string[] $columns
92
+         *
93
+         * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
94
+         *
95
+         * @return \Gitamin\Models\User
96
+         */
97 97
     public function project($path, $columns = ['*'])
98 98
     {
99 99
         $project = Project::where('owner_id', '=', $this->id)->where('path', '=', $path)->first($columns);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $project = Project::where('owner_id', '=', $this->id)->where('path', '=', $path)->first($columns);
100 100
 
101
-        if (! $project) {
101
+        if (!$project) {
102 102
             throw new ModelNotFoundException();
103 103
         }
104 104
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     {
119 119
         $owner = static::where('path', $path)->first($columns);
120 120
 
121
-        if (! $owner) {
121
+        if (!$owner) {
122 122
             throw new ModelNotFoundException();
123 123
         }
124 124
 
Please login to merge, or discard this patch.
app/Http/helpers.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 use Illuminate\Support\Facades\Request;
15 15
 use Jenssegers\Date\Date;
16 16
 
17
-if (! function_exists('back_url')) {
17
+if (!function_exists('back_url')) {
18 18
     /**
19 19
      * Create a new back url.
20 20
      *
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     }
38 38
 }
39 39
 
40
-if (! function_exists('set_active')) {
40
+if (!function_exists('set_active')) {
41 41
     /**
42 42
      * Set active class if request is in path.
43 43
      *
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
 }
61 61
 
62
-if (! function_exists('formatted_date')) {
62
+if (!function_exists('formatted_date')) {
63 63
     /**
64 64
      * Formats a date with the user timezone and the selected format.
65 65
      *
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     }
76 76
 }
77 77
 
78
-if (! function_exists('subscribers_enabled')) {
78
+if (!function_exists('subscribers_enabled')) {
79 79
     /**
80 80
      * Is the subscriber functionality enabled and configured.
81 81
      *
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     }
92 92
 }
93 93
 
94
-if (! function_exists('color_darken')) {
94
+if (!function_exists('color_darken')) {
95 95
     /**
96 96
      * Darken a color.
97 97
      *
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     }
120 120
 }
121 121
 
122
-if (! function_exists('color_contrast')) {
122
+if (!function_exists('color_contrast')) {
123 123
     /**
124 124
      * Calculates colour contrast.
125 125
      *
Please login to merge, or discard this patch.