Passed
Push — master ( d5c742...c67627 )
by Odiseo
03:43
created
src/Fixture/VendorFixture.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
         $channels = $this->channelRepository->findAll();
93 93
 
94 94
         /** @var ChannelInterface $channel */
95
-        foreach($channels as $channel)
95
+        foreach ($channels as $channel)
96 96
         {
97 97
             $imageIndex = 1;
98
-            for($i=1; $i <= $options['vendors_per_channel']; $i++)
98
+            for ($i = 1; $i <= $options[ 'vendors_per_channel' ]; $i++)
99 99
             {
100 100
                 /** @var VendorInterface $vendor */
101 101
                 $vendor = $this->vendorFactory->createNew();
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
                 }
113 113
 
114 114
                 $imageFinder = new Finder();
115
-                $imagesPath = __DIR__ . '/../Resources/fixtures/vendor';
115
+                $imagesPath = __DIR__.'/../Resources/fixtures/vendor';
116 116
 
117 117
                 foreach ($imageFinder->files()->in($imagesPath)->name('0'.$imageIndex.'.png') as $img)
118 118
                 {
119 119
                     $file = new UploadedFile($img->getRealPath(), $img->getFilename());
120 120
                     $vendor->setLogoFile($file);
121 121
                 }
122
-                $imageIndex = $imageIndex>=4?1:$imageIndex+1;
122
+                $imageIndex = $imageIndex >= 4 ? 1 : $imageIndex + 1;
123 123
 
124 124
                 $this->objectManager->persist($vendor);
125 125
             }
Please login to merge, or discard this patch.