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 ( dc3905...c88028 )
by Odiseo
09:25
created
spec/Controller/ReportControllerSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $singleResourceProvider->get($configuration, $repository)->willReturn($resource);
118 118
 
119 119
         $configuration->isHtmlRequest()->willReturn(true);
120
-        $configuration->getTemplate(ResourceActions::SHOW . '.html')->willReturn('SyliusShopBundle:Product:show.html.twig');
120
+        $configuration->getTemplate(ResourceActions::SHOW.'.html')->willReturn('SyliusShopBundle:Product:show.html.twig');
121 121
 
122 122
         $eventDispatcher->dispatch(ResourceActions::SHOW, $configuration, $resource)->shouldBeCalled();
123 123
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
     private function getViewComparingCallback(View $expectedView)
175 175
     {
176
-        return function ($value) use ($expectedView) {
176
+        return function($value) use ($expectedView) {
177 177
             if (!$value instanceof View) {
178 178
                 return false;
179 179
             }
Please login to merge, or discard this patch.
src/Repository/AddressRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     {
20 20
         return $this->createQueryBuilder('o')
21 21
             ->andWhere('o.city LIKE :city')
22
-            ->setParameter('city', '%' . $cityName . '%')
22
+            ->setParameter('city', '%'.$cityName.'%')
23 23
             ->getQuery()
24 24
             ->getResult()
25 25
         ;
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             ->leftJoin(Province::class, 'p', 'WITH', 'p.code = o.provinceCode')
35 35
             ->where('o.provinceName LIKE :province')
36 36
             ->orWhere('p.name LIKE :province')
37
-            ->setParameter('province', '%' . $provinceName . '%')
37
+            ->setParameter('province', '%'.$provinceName.'%')
38 38
             ->getQuery()
39 39
             ->getResult()
40 40
         ;
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         return $this->createQueryBuilder('o')
49 49
             ->andWhere('o.postcode LIKE :postcode')
50
-            ->setParameter('postcode', '%' . $postcode . '%')
50
+            ->setParameter('postcode', '%'.$postcode.'%')
51 51
             ->getQuery()
52 52
             ->getResult()
53 53
         ;
Please login to merge, or discard this patch.
src/Controller/Action/PostcodeSearchAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             $countryName = $country !== null ? $country->getName() : $address->getCountryCode();
63 63
 
64 64
             $postcodeLabel = $address->getPostcode().', '.$countryName;
65
-            $isNew = count(array_filter($addresses, function ($address) use ($postcodeLabel) {
65
+            $isNew = count(array_filter($addresses, function($address) use ($postcodeLabel) {
66 66
                 return $address['postcode'] === $postcodeLabel;
67 67
             })) === 0;
68 68
 
Please login to merge, or discard this patch.
src/Controller/Action/ProvinceSearchAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             
70 70
             $provinceName = $this->getProvinceName($address);
71 71
             $provinceLabel = ucfirst(strtolower($provinceName)).', '.$countryName;
72
-            $isNew = count(array_filter($addresses, function ($address) use ($provinceLabel) {
72
+            $isNew = count(array_filter($addresses, function($address) use ($provinceLabel) {
73 73
                 return $address['province'] === $provinceLabel;
74 74
             })) === 0;
75 75
 
Please login to merge, or discard this patch.
src/Controller/Action/CitySearchAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             $countryName = $country !== null ? $country->getName() : $address->getCountryCode();
63 63
 
64 64
             $cityLabel = ucfirst(strtolower($address->getCity())).', '.$countryName;
65
-            $isNew = count(array_filter($addresses, function ($address) use ($cityLabel) {
65
+            $isNew = count(array_filter($addresses, function($address) use ($cityLabel) {
66 66
                 return $address['city'] === $cityLabel;
67 67
             })) === 0;
68 68
 
Please login to merge, or discard this patch.
src/Controller/Action/ProductSearchAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         /** @var ProductInterface $product */
57 57
         foreach ($searchProducts as $product) {
58 58
             $productLabel = ucfirst(strtolower($product->getName()));
59
-            $isNew = count(array_filter($products, function ($product) use ($productLabel) {
59
+            $isNew = count(array_filter($products, function($product) use ($productLabel) {
60 60
                 return $product['name'] === $productLabel;
61 61
             })) === 0;
62 62
 
Please login to merge, or discard this patch.
src/Filter/QueryFilter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         /** @var DateTime $startDateTime */
126 126
         $startDateTime = $configuration['timePeriod']['start'];
127 127
         /** @var DateTime $endDateTime */
128
-        $endDateTime = $configuration['timePeriod']['end']?:new DateTime();
128
+        $endDateTime = $configuration['timePeriod']['end'] ?: new DateTime();
129 129
 
130 130
         $this->qb
131 131
             ->addSelect($groupByParts[0])
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         $type = 'user'.ucfirst($addressType).'Province';
219 219
 
220 220
         if (isset($configuration[$type]) && count($configuration[$type]) > 0) {
221
-            $provinces = $configuration[$type]->map(function (AddressInterface $address) {
221
+            $provinces = $configuration[$type]->map(function(AddressInterface $address) {
222 222
                 return $address->getProvinceCode() ?: $address->getProvinceName();
223 223
             })->toArray();
224 224
             $rootAlias = $cAlias = $this->qb->getRootAliases()[0];
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $type = 'user'.ucfirst($addressType).'City';
248 248
 
249 249
         if (isset($configuration[$type]) && count($configuration[$type]) > 0) {
250
-            $cities = $configuration[$type]->map(function (AddressInterface $address) {
250
+            $cities = $configuration[$type]->map(function(AddressInterface $address) {
251 251
                 return $address->getCity();
252 252
             })->toArray();
253 253
             $rootAlias = $cAlias = $this->qb->getRootAliases()[0];
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
         $type = 'user'.ucfirst($addressType).'Postcode';
274 274
 
275 275
         if (isset($configuration[$type]) && count($configuration[$type]) > 0) {
276
-            $codes = $configuration[$type]->map(function (AddressInterface $address) {
276
+            $codes = $configuration[$type]->map(function(AddressInterface $address) {
277 277
                 return $address->getPostcode();
278 278
             })->toArray();
279 279
             $rootAlias = $cAlias = $this->qb->getRootAliases()[0];
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
     public function addProduct(array $configuration = [], string $field = 'p.id'): void
298 298
     {
299 299
         if (isset($configuration['product']) && count($configuration['product']) > 0) {
300
-            $products = $configuration['product']->map(function (ProductInterface $product) {
300
+            $products = $configuration['product']->map(function(ProductInterface $product) {
301 301
                 return $product->getId();
302 302
             })->toArray();
303 303
 
Please login to merge, or discard this patch.
src/Controller/ReportController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $view = View::create($report);
62 62
 
63 63
         $view
64
-            ->setTemplate($configuration->getTemplate(ResourceActions::SHOW . '.html'))
64
+            ->setTemplate($configuration->getTemplate(ResourceActions::SHOW.'.html'))
65 65
             ->setTemplateVar($this->metadata->getName())
66 66
             ->setData([
67 67
                 'configuration' => $configuration,
Please login to merge, or discard this patch.
src/DataFetcher/TimePeriodDataFetcher.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $labels = [];
98 98
         foreach ($labelsAux as $label) {
99 99
             if (!in_array($label, ['MonthDate', 'YearDate', 'DateDate'])) {
100
-                $labels[] = preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', (string)$label);
100
+                $labels[] = preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', (string) $label);
101 101
             }
102 102
         }
103 103
         $data->setLabels($labels);
@@ -172,16 +172,16 @@  discard block
 block discarded – undo
172 172
         foreach ($datas as $data) {
173 173
             $date = new DateTime($data[$labels[0]]);
174 174
             $dateFormated = $date->format($configuration['timePeriod']['presentationFormat']);
175
-            $currentDateMedia = isset($datesMedia[$dateFormated])?$datesMedia[$dateFormated]:array('quantity' => 0, 'media' => 0);
176
-            $currentDateMedia['quantity'] = $currentDateMedia['quantity']+1;
177
-            $currentDateMedia['media'] = $currentDateMedia['media']+$data[$labels[1]];
175
+            $currentDateMedia = isset($datesMedia[$dateFormated]) ? $datesMedia[$dateFormated] : array('quantity' => 0, 'media' => 0);
176
+            $currentDateMedia['quantity'] = $currentDateMedia['quantity'] + 1;
177
+            $currentDateMedia['media'] = $currentDateMedia['media'] + $data[$labels[1]];
178 178
             $datesMedia[$dateFormated] = $currentDateMedia;
179 179
         }
180 180
         $fetched = [];
181 181
         foreach ($datesMedia as $date => $dateMedia) {
182 182
             $fetched[] = [
183 183
                 $labels[0] => $date,
184
-                $labels[1] => round($dateMedia['media']/$dateMedia['quantity'], 1)
184
+                $labels[1] => round($dateMedia['media'] / $dateMedia['quantity'], 1)
185 185
             ];
186 186
         }
187 187
         return $fetched;
Please login to merge, or discard this patch.