Completed
Branch staging (f9f9b2)
by John
06:57
created
app/Providers/AppServiceProvider.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Support\ServiceProvider;
6 6
 use Validator;
7
-use LearnParty\Category;
8 7
 
9 8
 class AppServiceProvider extends ServiceProvider
10 9
 {
Please login to merge, or discard this 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 boot()
17 17
     {
18
-        Validator::extend('youtube_url', function ($attribute, $value, $parameters, $validator) {
18
+        Validator::extend('youtube_url', function($attribute, $value, $parameters, $validator) {
19 19
 
20 20
             $urlParts = [
21 21
                 'scheme',
Please login to merge, or discard this patch.
app/Video.php 2 patches
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * A video belongs to one user.
18 18
      *
19
-     * @return Object
19
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
20 20
      */
21 21
     public function user()
22 22
     {
@@ -27,7 +27,6 @@  discard block
 block discarded – undo
27 27
      * Get a list of categories associated with
28 28
      * this video
29 29
      *
30
-     * @param  [type] $value [description]
31 30
      * @return array        Associated categories
32 31
      */
33 32
     public function getCategoryListAttribute()
@@ -48,7 +47,7 @@  discard block
 block discarded – undo
48 47
     /**
49 48
      * A video can have many comments.
50 49
      *
51
-     * @return Object
50
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
52 51
      */
53 52
     public function comments()
54 53
     {
@@ -58,7 +57,7 @@  discard block
 block discarded – undo
58 57
     /**
59 58
      * A video can have many favorites
60 59
      *
61
-     * @return Object
60
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
62 61
      */
63 62
     public function favorites()
64 63
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class Video extends Model
8 8
 {
9
-    protected $fillable  =[
9
+    protected $fillable = [
10 10
         'title',
11 11
         'url',
12 12
         'description',
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function map(Router $router)
39 39
     {
40
-        $router->group(['namespace' => $this->namespace], function ($router) {
40
+        $router->group(['namespace' => $this->namespace], function($router) {
41 41
             require app_path('Http/routes.php');
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 |
22 22
 */
23 23
 
24
-Route::group(['middleware' => 'web'], function () {
24
+Route::group(['middleware' => 'web'], function() {
25 25
 
26 26
     Route::auth();
27 27
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Authentication routes
38 38
      */
39
-    Route::group(['prefix' => '/auth/{provider}'], function () {
39
+    Route::group(['prefix' => '/auth/{provider}'], function() {
40 40
         /**
41 41
          * redirect to social auth login using socialite
42 42
          */
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * User profile routes
53 53
      */
54
-    Route::group(['prefix' => 'profile', 'middleware' => 'auth'], function () {
54
+    Route::group(['prefix' => 'profile', 'middleware' => 'auth'], function() {
55 55
 
56 56
         /**
57 57
          * Get authenitcated user's profile page
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     /**
82 82
      * User dashboard routes
83 83
      */
84
-    Route::group(['prefix' => 'dashboard', 'middleware' => 'auth'], function () {
84
+    Route::group(['prefix' => 'dashboard', 'middleware' => 'auth'], function() {
85 85
         /**
86 86
          * Show the new video page
87 87
          */
Please login to merge, or discard this patch.