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.
Test Failed
Pull Request — master (#33)
by Alessandro
14:47 queued 09:53
created
src/Mado/QueryBundle/Repositories/BaseRepository.php 1 patch
Spacing   +15 added lines, -15 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
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         foreach ($requestOption['orFilters'] as $key => $filter) {
109 109
             if (is_array($filter)) {
110 110
                 foreach ($filter as $keyInternal => $internal) {
111
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
111
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
112 112
                     $count = $count + 1;
113 113
                 }
114 114
             } else {
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         foreach ($requestOption['orFilters'] as $key => $filter) {
168 168
             if (is_array($filter)) {
169 169
                 foreach ($filter as $keyInternal => $internal) {
170
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
170
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
171 171
                     $count = $count + 1;
172 172
                 }
173 173
             } else {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         foreach ($orFilters as $key => $filter) {
215 215
             if (is_array($filter)) {
216 216
                 foreach ($filter as $keyInternal => $internal) {
217
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
217
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
218 218
                     $count = $count + 1;
219 219
                 }
220 220
             } else {
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         $pagerAdapter = new DoctrineORMAdapter($queryBuilder);
284 284
 
285 285
         $query = $pagerAdapter->getQuery();
286
-        if(isset($this->use_result_cache) and $this->use_result_cache){
286
+        if (isset($this->use_result_cache) and $this->use_result_cache) {
287 287
             $query->useResultCache(true, 600);
288 288
         }
289 289
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
             $params[$itemValue] = $this->queryOptions->get($itemValue);
322 322
         }
323 323
 
324
-        if(!isset($this->route_name)){
324
+        if (!isset($this->route_name)) {
325 325
             $this->route_name = $this->queryOptions->get('_route');
326 326
         }
327 327
 
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
     public function noExistsJoin($prevEntityAlias, $currentEntityAlias)
333 333
     {
334 334
         $needle = $prevEntityAlias . "_" . $currentEntityAlias;
335
-        return ! in_array($needle, $this->joins);
335
+        return !in_array($needle, $this->joins);
336 336
     }
337 337
 
338 338
     /** @deprecate use QueryBuilderFactory instead */
@@ -408,8 +408,8 @@  discard block
 block discarded – undo
408 408
 
409 409
     public function getEntityAlias(string $entityName) : string
410 410
     {
411
-        $arrayEntityName = explode('\\', strtolower($entityName) );
412
-        $entityAlias = $arrayEntityName[count($arrayEntityName)-1];
411
+        $arrayEntityName = explode('\\', strtolower($entityName));
412
+        $entityAlias = $arrayEntityName[count($arrayEntityName) - 1];
413 413
         return $entityAlias;
414 414
     }
415 415
 
@@ -438,18 +438,18 @@  discard block
 block discarded – undo
438 438
 
439 439
         $table = $this->getEntityManager()->getClassMetadata($this->getEntityName())->getTableName();
440 440
 
441
-        $sql = 'INSERT INTO '.$table;
442
-        $sql .= '('. $list_keys . ') ';
443
-        $sql .= "VALUES(". $list_values.") ";
441
+        $sql = 'INSERT INTO ' . $table;
442
+        $sql .= '(' . $list_keys . ') ';
443
+        $sql .= "VALUES(" . $list_values . ") ";
444 444
         $sql .= 'ON DUPLICATE KEY UPDATE ';
445 445
 
446 446
         $c = 0;
447
-        foreach($updateFields as $column => $value) {
447
+        foreach ($updateFields as $column => $value) {
448 448
             if ($c > 0) {
449 449
                 $sql .= ", ";
450 450
             }
451 451
 
452
-            $sql .= '`'.$column . "` = '". $value."'";
452
+            $sql .= '`' . $column . "` = '" . $value . "'";
453 453
             $c++;
454 454
         }
455 455
 
Please login to merge, or discard this patch.