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
07:48
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
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         foreach ($requestOptions['orFiltering'] as $key => $filter) {
110 110
             if (is_array($filter)) {
111 111
                 foreach ($filter as $keyInternal => $internal) {
112
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
112
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
113 113
                     $count = $count + 1;
114 114
                 }
115 115
             } else {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         foreach ($requestOption['orFiltering'] as $key => $filter) {
157 157
             if (is_array($filter)) {
158 158
                 foreach ($filter as $keyInternal => $internal) {
159
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
159
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
160 160
                     $count = $count + 1;
161 161
                 }
162 162
             } else {
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         foreach ($orFilters as $key => $filter) {
190 190
             if (is_array($filter)) {
191 191
                 foreach ($filter as $keyInternal => $internal) {
192
-                    $filterOrCorrected[$keyInternal .'|' . $count] = $internal;
192
+                    $filterOrCorrected[$keyInternal . '|' . $count] = $internal;
193 193
                     $count = $count + 1;
194 194
                 }
195 195
             } else {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         $pagerAdapter = new DoctrineORMAdapter($queryBuilder);
244 244
 
245 245
         $query = $pagerAdapter->getQuery();
246
-        if(isset($this->use_result_cache) and $this->use_result_cache){
246
+        if (isset($this->use_result_cache) and $this->use_result_cache) {
247 247
             $query->useResultCache(true, 600);
248 248
         }
249 249
 
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
             $params[$itemValue] = $this->queryOptions->get($itemValue);
282 282
         }
283 283
 
284
-        if(!isset($this->route_name)){
284
+        if (!isset($this->route_name)) {
285 285
             $this->route_name = $this->queryOptions->get('_route');
286 286
         }
287 287
 
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
     public function noExistsJoin($prevEntityAlias, $currentEntityAlias)
293 293
     {
294 294
         $needle = $prevEntityAlias . "_" . $currentEntityAlias;
295
-        return ! in_array($needle, $this->joins);
295
+        return !in_array($needle, $this->joins);
296 296
     }
297 297
 
298 298
     /** @deprecate use QueryBuilderFactory instead */
@@ -368,8 +368,8 @@  discard block
 block discarded – undo
368 368
 
369 369
     public function getEntityAlias(string $entityName) : string
370 370
     {
371
-        $arrayEntityName = explode('\\', strtolower($entityName) );
372
-        $entityAlias = $arrayEntityName[count($arrayEntityName)-1];
371
+        $arrayEntityName = explode('\\', strtolower($entityName));
372
+        $entityAlias = $arrayEntityName[count($arrayEntityName) - 1];
373 373
         return $entityAlias;
374 374
     }
375 375
 
@@ -398,18 +398,18 @@  discard block
 block discarded – undo
398 398
 
399 399
         $table = $this->getEntityManager()->getClassMetadata($this->getEntityName())->getTableName();
400 400
 
401
-        $sql = 'INSERT INTO '.$table;
402
-        $sql .= '('. $list_keys . ') ';
403
-        $sql .= "VALUES(". $list_values.") ";
401
+        $sql = 'INSERT INTO ' . $table;
402
+        $sql .= '(' . $list_keys . ') ';
403
+        $sql .= "VALUES(" . $list_values . ") ";
404 404
         $sql .= 'ON DUPLICATE KEY UPDATE ';
405 405
 
406 406
         $c = 0;
407
-        foreach($updateFields as $column => $value) {
407
+        foreach ($updateFields as $column => $value) {
408 408
             if ($c > 0) {
409 409
                 $sql .= ", ";
410 410
             }
411 411
 
412
-            $sql .= '`'.$column . "` = '". $value."'";
412
+            $sql .= '`' . $column . "` = '" . $value . "'";
413 413
             $c++;
414 414
         }
415 415
 
Please login to merge, or discard this patch.
src/Mado/QueryBundle/Objects/RequestOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $requestOption['customer_id']  = $request->attributes->get('customer_id', '');
22 22
         $requestOption['id']           = $request->attributes->get('id', '');
23 23
         $requestOption['filters']      = $request->query->get('filtering', []);
24
-        $requestOption['orFiltering']    = $request->query->get('filtering_or', []);
24
+        $requestOption['orFiltering'] = $request->query->get('filtering_or', []);
25 25
         $requestOption['sorting ']     = $request->query->get('sorting', []);
26 26
         $requestOption['printing']     = $request->query->get('printing', []);
27 27
         $requestOption['rel']          = $request->query->get('rel', '');
Please login to merge, or discard this patch.