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.
Passed
Push — master ( 8bf58c...2661f4 )
by Simone
08:08 queued 06:15
created
src/Mado/QueryBundle/Repositories/BaseRepository.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 
40 40
         $this->fields = array_keys($this->getClassMetadata()->fieldMappings);
41 41
 
42
-        $entityName = explode('\\', strtolower($this->getEntityName()) );
43
-        $entityName = $entityName[count($entityName)-1];
42
+        $entityName = explode('\\', strtolower($this->getEntityName()));
43
+        $entityName = $entityName[count($entityName) - 1];
44 44
         $entityAlias = $entityName[0];
45 45
         $this->entityAlias = $entityAlias;
46 46
 
@@ -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 = $count + 1;
127 127
                 }
128 128
             } else {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         foreach ($orFilters as $key => $filter) {
175 175
             if (is_array($filter)) {
176 176
                 foreach ($filter as $keyInternal => $internal) {
177
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
177
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
178 178
                     $count = $count + 1;
179 179
                 }
180 180
             } else {
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         foreach ($orFilters as $key => $filter) {
222 222
             if (is_array($filter)) {
223 223
                 foreach ($filter as $keyInternal => $internal) {
224
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
224
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
225 225
                     $count = $count + 1;
226 226
                 }
227 227
             } else {
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         $pagerAdapter = new DoctrineORMAdapter($queryBuilder);
279 279
 
280 280
         $query = $pagerAdapter->getQuery();
281
-        if(isset($this->use_result_cache) and $this->use_result_cache){
281
+        if (isset($this->use_result_cache) and $this->use_result_cache) {
282 282
             $query->useResultCache(true, 600);
283 283
         }
284 284
 
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
             $params[$itemValue] = $this->queryOptions->get($itemValue);
318 318
         }
319 319
 
320
-        if(!isset($this->route_name)){
320
+        if (!isset($this->route_name)) {
321 321
             $this->route_name = $this->queryOptions->get('_route');
322 322
         }
323 323
 
@@ -346,8 +346,8 @@  discard block
 block discarded – undo
346 346
 
347 347
     public function getEntityAlias(string $entityName) : string
348 348
     {
349
-        $arrayEntityName = explode('\\', strtolower($entityName) );
350
-        return $arrayEntityName[count($arrayEntityName)-1];
349
+        $arrayEntityName = explode('\\', strtolower($entityName));
350
+        return $arrayEntityName[count($arrayEntityName) - 1];
351 351
     }
352 352
 
353 353
     protected function relationship($queryBuilder)
Please login to merge, or discard this patch.