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
Push — master ( c71fa3...4d4222 )
by Andrea
11:07
created
src/app/Repositories/Base.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@  discard block
 block discarded – undo
29 29
         $this->makeModel();
30 30
     }
31 31
 
32
+    /**
33
+     * @return string
34
+     */
32 35
     abstract public function model();
33 36
 
34 37
     public function all($columns = ['*'])
@@ -96,6 +99,9 @@  discard block
 block discarded – undo
96 99
         return $this->model->findOrCreate($data);
97 100
     }
98 101
 
102
+    /**
103
+     * @param string $attribute
104
+     */
99 105
     public function findBy($attribute, $value, $columns = array('*'))
100 106
     {
101 107
         $this->applyCriteria();
Please login to merge, or discard this patch.
src/app/Http/ViewComposers/AdminMenuComposer.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
     public function __construct(MenuRepository $menuRepository)
14 14
     {
15
-      $this->menuRepository = $menuRepository;
15
+        $this->menuRepository = $menuRepository;
16 16
     }
17 17
 
18 18
     public function compose(View $view)
@@ -95,22 +95,22 @@  discard block
 block discarded – undo
95 95
             $menuString = "";
96 96
             $hasActive = false;
97 97
             foreach ($rows as $menu) {
98
-              if (!empty($menu->permission) and !$user->hasPermission($menu->permission)) {
99
-                  continue;
100
-              }
98
+                if (!empty($menu->permission) and !$user->hasPermission($menu->permission)) {
99
+                    continue;
100
+                }
101 101
 
102
-              $hasActive = false;
103
-              $link = sprintf($templates['menu_link'],
102
+                $hasActive = false;
103
+                $link = sprintf($templates['menu_link'],
104 104
                 (!empty($menu->route) ? url($menu->route) : '#'),
105 105
                 (!empty($menu->icon) ? $menu->icon : 'fa fa-circle-o'),
106 106
                 //trans('back-project::base.dashboard')
107 107
                 \Lang::has('back-project::menu.'.$menu->title) ? __('back-project::menu.'.$menu->title) : $menu->title
108
-              );
108
+                );
109 109
 
110
-              $submenu = "";
111
-              $authorized = true;
110
+                $submenu = "";
111
+                $authorized = true;
112 112
 
113
-              if ($menu->children->count() > 0) {
113
+                if ($menu->children->count() > 0) {
114 114
                 list($submenuString, $hasActive) = $traverse($menu->children);
115 115
                 $submenu = "";
116 116
                 if (!empty($submenuString)) {
@@ -118,19 +118,19 @@  discard block
 block discarded – undo
118 118
                 } else {
119 119
                     $authorized = false;
120 120
                 }
121
-              }
121
+                }
122 122
 
123
-              $class = (!empty($submenu) ? 'treeview' : '');
124
-              $current_url = \Route::current()->uri();
123
+                $class = (!empty($submenu) ? 'treeview' : '');
124
+                $current_url = \Route::current()->uri();
125 125
 
126
-              if ($authorized) {
127
-                  $menuString .= sprintf($templates['menu_row'], $class, $link.$submenu);
128
-              }
126
+                if ($authorized) {
127
+                    $menuString .= sprintf($templates['menu_row'], $class, $link.$submenu);
128
+                }
129 129
         }
130 130
 
131 131
         return [
132
-              $menuString,
133
-              $hasActive
132
+                $menuString,
133
+                $hasActive
134 134
             ];
135 135
         };
136 136
 
Please login to merge, or discard this patch.