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 ( 22c4e7...0b88e0 )
by Odiseo
04:59
created
src/Fixture/Factory/BannerExampleFactory.php 2 patches
Spacing   +10 added lines, -10 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
 
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
 
100 100
             $banner->setUrl($this->faker->url);
101 101
 
102
-            $banner->setImageFile($this->createImage($options['image']));
103
-            $banner->setMobileImageFile($this->createImage($options['mobile_image']));
102
+            $banner->setImageFile($this->createImage($options[ 'image' ]));
103
+            $banner->setMobileImageFile($this->createImage($options[ 'mobile_image' ]));
104 104
         }
105 105
 
106 106
         return $banner;
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
     private function createImage(string $imagePath): UploadedFile
114 114
     {
115 115
         $imagePath = $this->fileLocator === null ? $imagePath : $this->fileLocator->locate($imagePath);
116
-        if(is_array($imagePath) && count($imagePath) > 0)
117
-            $imagePath = $imagePath[0];
116
+        if (is_array($imagePath) && count($imagePath) > 0)
117
+            $imagePath = $imagePath[ 0 ];
118 118
 
119 119
         return new UploadedFile($imagePath, basename($imagePath));
120 120
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,9 @@
 block discarded – undo
113 113
     private function createImage(string $imagePath): UploadedFile
114 114
     {
115 115
         $imagePath = $this->fileLocator === null ? $imagePath : $this->fileLocator->locate($imagePath);
116
-        if(is_array($imagePath) && count($imagePath) > 0)
117
-            $imagePath = $imagePath[0];
116
+        if(is_array($imagePath) && count($imagePath) > 0) {
117
+                    $imagePath = $imagePath[0];
118
+        }
118 119
 
119 120
         return new UploadedFile($imagePath, basename($imagePath));
120 121
     }
Please login to merge, or discard this patch.