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
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -107,8 +107,9 @@  discard block
 block discarded – undo
107 107
         $model = $this->app->make($this->model());
108 108
         //$model = app()->make($this->model());
109 109
 
110
-        if (!$model instanceof Model)
111
-            throw new RepositoryException("Class {$this->model()} must be an instance of Illuminate\\Database\\Eloquent\\Model");
110
+        if (!$model instanceof Model) {
111
+                    throw new RepositoryException("Class {$this->model()} must be an instance of Illuminate\\Database\\Eloquent\\Model");
112
+        }
112 113
 
113 114
         return $this->model = $model;
114 115
     }
@@ -143,12 +144,14 @@  discard block
 block discarded – undo
143 144
     }
144 145
 
145 146
     public function  applyCriteria() {
146
-        if($this->skipCriteria === true)
147
-            return $this;
147
+        if($this->skipCriteria === true) {
148
+                    return $this;
149
+        }
148 150
 
149 151
         foreach($this->getCriteria() as $criteria) {
150
-            if($criteria instanceof Criteria)
151
-                $this->model = $criteria->apply($this->model, $this);
152
+            if($criteria instanceof Criteria) {
153
+                            $this->model = $criteria->apply($this->model, $this);
154
+            }
152 155
         }
153 156
 
154 157
         return $this;
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.