GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch master (2980c2)
by Andrea
04:14
created
src/app/Http/Controllers/Auth/RegisterController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      *
51 51
      * @param \Illuminate\Http\Request $request
52 52
      *
53
-     * @return \Illuminate\Http\Response
53
+     * @return \Illuminate\Http\RedirectResponse
54 54
      */
55 55
     public function register(Request $request, Users $users)
56 56
     {
Please login to merge, or discard this patch.
src/app/Http/Controllers/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     /**
17 17
      * Custom authorization method. Use only if you are managing a model with "user_id" field
18 18
      *
19
-     * @param $ability
19
+     * @param string $ability
20 20
      * @param array $record
21 21
      */
22 22
     public function bCAuthorize($ability, $record = [])
Please login to merge, or discard this patch.
src/app/Notifications/RegistrationEmail.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      * Get the notification's delivery channels.
28 28
      *
29 29
      * @param  mixed  $notifiable
30
-     * @return array
30
+     * @return string[]
31 31
      */
32 32
     public function via($notifiable)
33 33
     {
Please login to merge, or discard this patch.
src/app/Repositories/Base.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@
 block discarded – undo
96 96
         return $this->model->findOrCreate($data);
97 97
     }
98 98
 
99
+    /**
100
+     * @param string $attribute
101
+     */
99 102
     public function findBy($attribute, $value, $columns = array('*'))
100 103
     {
101 104
         $this->applyCriteria();
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         return $this->model->create($data);
49 49
     }
50 50
 
51
-    public function update(array $data, $id, $attribute="id")
51
+    public function update(array $data, $id, $attribute = "id")
52 52
     {
53 53
         $model_data = $this->model->where($attribute, '=', $id)->first();
54 54
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         return $this;
124 124
     }
125 125
 
126
-    public function skipCriteria($status = true){
126
+    public function skipCriteria($status = true) {
127 127
         $this->skipCriteria = $status;
128 128
         return $this;
129 129
     }
@@ -143,11 +143,11 @@  discard block
 block discarded – undo
143 143
     }
144 144
 
145 145
     public function  applyCriteria() {
146
-        if($this->skipCriteria === true)
146
+        if ($this->skipCriteria === true)
147 147
             return $this;
148 148
 
149
-        foreach($this->getCriteria() as $criteria) {
150
-            if($criteria instanceof Criteria)
149
+        foreach ($this->getCriteria() as $criteria) {
150
+            if ($criteria instanceof Criteria)
151 151
                 $this->model = $criteria->apply($this->model, $this);
152 152
         }
153 153
 
Please login to merge, or discard this patch.
src/app/Repositories/Menus.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@
 block discarded – undo
26 26
         return $this->model->withDepth()->find($id, $columns);
27 27
     }
28 28
 
29
+    /**
30
+     * @param string $name
31
+     */
29 32
     public function tree($name)
30 33
     {
31 34
         $root = $this->findBy('name', $name);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         $body = [];
71 71
 
72 72
         foreach ($data as $row):
73
-            $actions =[
73
+            $actions = [
74 74
                 'edit' => ['url' => route('menus.edit', [$row->id])]
75 75
             ];
76 76
 
Please login to merge, or discard this patch.
src/app/Repositories/Users.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -97,6 +97,9 @@
 block discarded – undo
97 97
         }
98 98
     }
99 99
 
100
+    /**
101
+     * @param string $name
102
+     */
100 103
     public function getUniqueUsername($name)
101 104
     {
102 105
         $nrRand = rand(0,100);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
     public function getUniqueUsername($name)
101 101
     {
102
-        $nrRand = rand(0,100);
102
+        $nrRand = rand(0, 100);
103 103
 
104 104
         return $name.$nrRand;
105 105
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         foreach ($data as $row):
134 134
             $body[] = [
135 135
                 'columns' => [
136
-                    ['content' => '<img src="' . \Avatar::create(strtoupper($row->username))->toBase64() . '" alt="' . $row->username . ' width="40px" height="40px"> '],
136
+                    ['content' => '<img src="'.\Avatar::create(strtoupper($row->username))->toBase64().'" alt="'.$row->username.' width="40px" height="40px"> '],
137 137
                     //['content' => false, 'action' => false, 'icon' => ($row->isConfirmed() ? "check" : 'times')],
138 138
                     ['content' => $row->username],
139 139
                     ['content' => $row->email],
Please login to merge, or discard this patch.
src/database/migrations/2017_03_27_110512_create_social_accounts_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public function up()
11 11
     {
12
-        Schema::create('social_accounts', function (Blueprint $table) {
12
+        Schema::create('social_accounts', function(Blueprint $table) {
13 13
             $table->increments('id');
14 14
             $table->integer('user_id')->unsigned()->nullable()->index();
15 15
             $table->string('provider')->index();
Please login to merge, or discard this patch.
src/database/migrations/2017_02_22_173128_create_menus_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function up()
23 23
     {
24
-        Schema::create($this->table_menus, function (Blueprint $table) {
24
+        Schema::create($this->table_menus, function(Blueprint $table) {
25 25
           $table->increments('id');
26 26
           $table->string('name')->index();
27 27
           $table->string('permission')->nullable()->index();
Please login to merge, or discard this patch.
src/database/migrations/2017_03_10_213644_create_attachments_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function up()
22 22
     {
23
-        Schema::create($this->table_attachments, function (Blueprint $table) {
23
+        Schema::create($this->table_attachments, function(Blueprint $table) {
24 24
             $table->increments('id');
25 25
             $table->string('name');
26 26
             $table->string('original_name');
Please login to merge, or discard this patch.