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 ( be0278...10df72 )
by Alessandro
10s
created
src/Mado/QueryBundle/Repositories/BaseRepository.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 
41 41
         $this->fields = array_keys($this->getClassMetadata()->fieldMappings);
42 42
 
43
-        $entityName = explode('\\', strtolower($this->getEntityName()) );
44
-        $entityName = $entityName[count($entityName)-1];
43
+        $entityName = explode('\\', strtolower($this->getEntityName()));
44
+        $entityName = $entityName[count($entityName) - 1];
45 45
         $entityAlias = $entityName[0];
46 46
         $this->entityAlias = $entityAlias;
47 47
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         foreach ($orFilters as $key => $filter) {
123 123
             if (is_array($filter)) {
124 124
                 foreach ($filter as $keyInternal => $internal) {
125
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
125
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
126 126
                     $count += 1;
127 127
                 }
128 128
             } else {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         foreach ($orFilters as $key => $filterValue) {
174 174
             if (is_array($filterValue)) {
175 175
                 foreach ($filterValue as $keyInternal => $internal) {
176
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
176
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
177 177
                     $count += 1;
178 178
                 }
179 179
             } else {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         foreach ($orFilters as $key => $filter) {
220 220
             if (is_array($filter)) {
221 221
                 foreach ($filter as $keyInternal => $internal) {
222
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
222
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
223 223
                     $count += 1;
224 224
                 }
225 225
             } else {
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
         $pagerAdapter = new DoctrineORMAdapter($queryBuilder);
274 274
 
275 275
         $query = $pagerAdapter->getQuery();
276
-        if(null != $this->use_result_cache && $this->use_result_cache){
276
+        if (null != $this->use_result_cache && $this->use_result_cache) {
277 277
             $query->useResultCache(true, 600);
278 278
         }
279 279
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
             $params[$itemValue] = $this->queryOptions->get($itemValue);
310 310
         }
311 311
 
312
-        if(!isset($this->route_name)){
312
+        if (!isset($this->route_name)) {
313 313
             $this->route_name = $this->queryOptions->get('_route');
314 314
         }
315 315
 
@@ -338,8 +338,8 @@  discard block
 block discarded – undo
338 338
 
339 339
     public function getEntityAlias(string $entityName) : string
340 340
     {
341
-        $arrayEntityName = explode('\\', strtolower($entityName) );
342
-        return $arrayEntityName[count($arrayEntityName)-1];
341
+        $arrayEntityName = explode('\\', strtolower($entityName));
342
+        return $arrayEntityName[count($arrayEntityName) - 1];
343 343
     }
344 344
 
345 345
     protected function relationship($queryBuilder)
Please login to merge, or discard this patch.