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 ( be41c4...c99b59 )
by
unknown
09:10
created
src/Twig/BannerExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function getFunctions(): array
25 25
     {
26 26
         return [
27
-            new TwigFunction('banner_slider_name', [$this, 'getBannerSliderName'])
27
+            new TwigFunction('banner_slider_name', [ $this, 'getBannerSliderName' ])
28 28
         ];
29 29
     }
30 30
 
Please login to merge, or discard this patch.
src/DependencyInjection/OdiseoSyliusBannerExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
      */
17 17
     public function load(array $config, ContainerBuilder $container): void
18 18
     {
19
-        $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
19
+        $config = $this->processConfiguration($this->getConfiguration([ ], $container), $config);
20 20
 
21
-        $container->setParameter('odiseo_sylius_banner_plugin.slider', $config['slider']);
21
+        $container->setParameter('odiseo_sylius_banner_plugin.slider', $config[ 'slider' ]);
22 22
 
23 23
         $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
24 24
 
Please login to merge, or discard this patch.
src/Menu/AdminMenuListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         }
24 24
 
25 25
         $item
26
-            ->addChild('banners', ['route' => 'odiseo_sylius_banner_plugin_admin_banner_index'])
26
+            ->addChild('banners', [ 'route' => 'odiseo_sylius_banner_plugin_admin_banner_index' ])
27 27
             ->setLabel('odiseo_sylius_banner_plugin.menu.admin.banners')
28 28
             ->setLabelAttribute('icon', 'image')
29 29
         ;
Please login to merge, or discard this patch.
src/Fixture/Factory/BannerExampleFactory.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -65,22 +65,22 @@  discard block
 block discarded – undo
65 65
             ->setAllowedTypes('channels', 'array')
66 66
             ->setNormalizer('channels', LazyOption::findBy($this->channelRepository, 'code'))
67 67
 
68
-            ->setDefault('image', function (Options $options): string {
68
+            ->setDefault('image', function(Options $options): string {
69 69
                 return __DIR__.'/../../Resources/fixtures/banner/images/0'.rand(1, 4).'.png';
70 70
             })
71
-            ->setAllowedTypes('image', ['string'])
71
+            ->setAllowedTypes('image', [ 'string' ])
72 72
 
73
-            ->setDefault('mobile_image', function (Options $options): string {
73
+            ->setDefault('mobile_image', function(Options $options): string {
74 74
                 return __DIR__.'/../../Resources/fixtures/banner/mobile-images/0'.rand(1, 4).'.png';
75 75
             })
76
-            ->setAllowedTypes('mobile_image', ['string'])
76
+            ->setAllowedTypes('mobile_image', [ 'string' ])
77 77
         ;
78 78
     }
79 79
 
80 80
     /**
81 81
      * {@inheritdoc}
82 82
      */
83
-    public function create(array $options = []): BannerInterface
83
+    public function create(array $options = [ ]): BannerInterface
84 84
     {
85 85
         $options = $this->optionsResolver->resolve($options);
86 86
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $banner = $this->bannerFactory->createNew();
89 89
         $banner->setCode($this->faker->slug);
90 90
 
91
-        foreach ($options['channels'] as $channel) {
91
+        foreach ($options[ 'channels' ] as $channel) {
92 92
             $banner->addChannel($channel);
93 93
         }
94 94
 
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
             $banner->setMainText($this->faker->sentence(4));
102 102
             $banner->setSecondaryText($this->faker->sentence(9));
103 103
 
104
-            $banner->setImageFile($this->createImage($options['image']));
105
-            $banner->setMobileImageFile($this->createImage($options['mobile_image']));
104
+            $banner->setImageFile($this->createImage($options[ 'image' ]));
105
+            $banner->setMobileImageFile($this->createImage($options[ 'mobile_image' ]));
106 106
         }
107 107
 
108 108
         return $banner;
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     {
117 117
         $imagePath = $this->fileLocator === null ? $imagePath : $this->fileLocator->locate($imagePath);
118 118
         if (is_array($imagePath) && count($imagePath) > 0) {
119
-            $imagePath = $imagePath[0];
119
+            $imagePath = $imagePath[ 0 ];
120 120
         }
121 121
 
122 122
         return new UploadedFile($imagePath, basename($imagePath));
Please login to merge, or discard this patch.
src/Form/Type/BannerTranslationType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@
 block discarded – undo
52 52
         parent::configureOptions($resolver);
53 53
 
54 54
         $resolver->setDefaults([
55
-            'validation_groups' => function (FormInterface $form): array {
55
+            'validation_groups' => function(FormInterface $form): array {
56 56
                 $bannerTranslation = $form->getData();
57 57
 
58 58
                 if (!$bannerTranslation instanceof BannerTranslationInterface || null === $bannerTranslation->getId()) {
59
-                    return array_merge($this->validationGroups, ['odiseo_image_create']);
59
+                    return array_merge($this->validationGroups, [ 'odiseo_image_create' ]);
60 60
                 }
61 61
 
62 62
                 return $this->validationGroups;
Please login to merge, or discard this patch.