Completed
Push — master ( bb050e...36e41a )
by Paweł
11:10
created
SWP/Bundle/FixturesBundle/DataFixtures/ORM/LoadCollectionRouteArticles.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -46,6 +46,9 @@  discard block
 block discarded – undo
46 46
         $manager->flush();
47 47
     }
48 48
 
49
+    /**
50
+     * @param string $env
51
+     */
49 52
     public function loadRoutes($env, ObjectManager $manager)
50 53
     {
51 54
         $routes = [
@@ -95,6 +98,10 @@  discard block
 block discarded – undo
95 98
         $manager->flush();
96 99
     }
97 100
 
101
+    /**
102
+     * @param string $env
103
+     * @param ObjectManager $manager
104
+     */
98 105
     public function setRoutesContent($env, $manager)
99 106
     {
100 107
         $routes = [
@@ -118,6 +125,10 @@  discard block
 block discarded – undo
118 125
         }
119 126
     }
120 127
 
128
+    /**
129
+     * @param string $env
130
+     * @param ObjectManager $manager
131
+     */
121 132
     public function loadArticles($env, $manager)
122 133
     {
123 134
         $articles = [
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/StaticThemeAssetsController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-     * @param $filePath
66
+     * @param string $filePath
67 67
      *
68 68
      * @return Response
69 69
      */
Please login to merge, or discard this patch.
src/SWP/Component/TemplatesSystem/Gimme/Context/Context.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     }
296 296
 
297 297
     /**
298
-     * @param array $keys
298
+     * @param string[] $keys
299 299
      *
300 300
      * @return string
301 301
      */
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     /**
328 328
      * @param string $id
329 329
      *
330
-     * @return null|true
330
+     * @return null|boolean
331 331
      */
332 332
     public function restoreTemporaryUnset($id)
333 333
     {
Please login to merge, or discard this patch.
src/SWP/Bundle/FixturesBundle/DataFixtures/ORM/LoadArticlesData.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -41,6 +41,10 @@  discard block
 block discarded – undo
41 41
         $manager->flush();
42 42
     }
43 43
 
44
+    /**
45
+     * @param string $env
46
+     * @param ObjectManager $manager
47
+     */
44 48
     public function loadRoutes($env, $manager)
45 49
     {
46 50
         $routes = [
@@ -195,6 +199,7 @@  discard block
 block discarded – undo
195 199
     /**
196 200
      * Sets articles manually (not via Alice) for test env due to fatal error:
197 201
      * Method PHPCRProxies\__CG__\Doctrine\ODM\PHPCR\Document\Generic::__toString() must not throw an exception.
202
+     * @param string $env
198 203
      */
199 204
     public function loadArticles($env, ObjectManager $manager)
200 205
     {
@@ -446,6 +451,10 @@  discard block
 block discarded – undo
446 451
         ];
447 452
     }
448 453
 
454
+    /**
455
+     * @param string $fakeImage
456
+     * @param string $targetFile
457
+     */
449 458
     private function cropAndResizeImage($fakeImage, array $rendition, $targetFile)
450 459
     {
451 460
         $image = imagecreatefromjpeg($fakeImage);
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Factory/ApiKeyFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * @param UserInterface $user
39 39
      * @param string|null   $apiKeyValue
40 40
      *
41
-     * @return mixed
41
+     * @return ApiKeyInterface
42 42
      */
43 43
     public function create($user, $apiKeyValue = null)
44 44
     {
Please login to merge, or discard this patch.
src/SWP/Bundle/FixturesBundle/AbstractFixture.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * Loads Alice fixtures.
57 57
      *
58
-     * @param array|string  $paths      Fixtures path(s)
58
+     * @param string[]  $paths      Fixtures path(s)
59 59
      * @param ObjectManager $manager    Object manager
60 60
      * @param array         $parameters Extra parameters
61 61
      */
@@ -112,6 +112,11 @@  discard block
 block discarded – undo
112 112
         return $this->getTenantPrefix(self::DEFAULT_TENANT_DOMAIN).'/'.ltrim($id, '/');
113 113
     }
114 114
 
115
+    /**
116
+     * @param string $id
117
+     *
118
+     * @return null|\SWP\Bundle\ContentBundle\Model\RouteInterface
119
+     */
115 120
     public function getRouteByName($id)
116 121
     {
117 122
         return $this->container->get('swp.provider.route')->getRouteByName($id);
@@ -120,7 +125,7 @@  discard block
 block discarded – undo
120 125
     /**
121 126
      * Gets current tenant's prefix.
122 127
      *
123
-     * @param string $subdomain
128
+     * @param string $domain
124 129
      *
125 130
      * @return string
126 131
      */
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Generator/ThemeContainersGenerator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     /**
78 78
      * @param array $containerData
79 79
      *
80
-     * @return mixed
80
+     * @return null|\SWP\Component\TemplatesSystem\Gimme\Model\ContainerInterface
81 81
      *
82 82
      * @throws \Exception
83 83
      */
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Theme/Model/ThemeInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * @param string $name
23
+     * @return void
23 24
      */
24 25
     public function setName($name);
25 26
 
@@ -60,6 +61,7 @@  discard block
 block discarded – undo
60 61
 
61 62
     /**
62 63
      * @param array $settings
64
+     * @return void
63 65
      */
64 66
     public function setSettings(array $settings): void;
65 67
 
@@ -70,6 +72,7 @@  discard block
 block discarded – undo
70 72
 
71 73
     /**
72 74
      * @param \SplFileInfo|null $file
75
+     * @return void
73 76
      */
74 77
     public function setLogo(?\SplFileInfo $file): void;
75 78
 
@@ -85,6 +88,7 @@  discard block
 block discarded – undo
85 88
 
86 89
     /**
87 90
      * @param string|null $path
91
+     * @return void
88 92
      */
89 93
     public function setLogoPath(?string $path): void;
90 94
 }
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/Command/CreateOrganizationCommand.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,6 @@
 block discarded – undo
129 129
 
130 130
     /**
131 131
      * @param string $name
132
-     * @param bool   $disabled
133 132
      *
134 133
      * @return OrganizationInterface
135 134
      */
Please login to merge, or discard this patch.