Passed
Push — master ( 960a24...ce8b6f )
by Gerhard
20:20 queued 10:00
created
src/Enhavo/Bundle/SearchBundle/Model/Database/DataSet.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     }
114 114
 
115 115
     /**
116
-     * @param mixed $index
116
+     * @param Index $index
117 117
      */
118 118
     public function removeIndex(Index $index)
119 119
     {
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     }
149 149
 
150 150
     /**
151
-     * @param mixed $filter
151
+     * @param Filter $filter
152 152
      */
153 153
     public function removeFilter(Filter $filter)
154 154
     {
Please login to merge, or discard this patch.
src/Enhavo/Bundle/SearchBundle/Util/Highlighter.php 1 patch
Doc Comments   +16 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@  discard block
 block discarded – undo
23 23
         $this->textSimplify = new TextSimplify();
24 24
     }
25 25
 
26
+    /**
27
+     * @param string $text
28
+     */
26 29
     public function highlight($text, array $words, $textLength = 160, $startTag = '<span class"highlight">', $closeTag = '</span>', $concat = ' ... ')
27 30
     {
28 31
         $textWords = preg_split("/[\s]+/", $text);
@@ -50,6 +53,9 @@  discard block
 block discarded – undo
50 53
         return $this->concatMatches($matches, $searchWords, $textLength, $startTag, $closeTag, $concat);
51 54
     }
52 55
 
56
+    /**
57
+     * @param integer $i
58
+     */
53 59
     private function lookBehind($textWords, $i, $length = 10)
54 60
     {
55 61
         $behind = [];
@@ -66,6 +72,9 @@  discard block
 block discarded – undo
66 72
         return array_reverse($behind);
67 73
     }
68 74
 
75
+    /**
76
+     * @param integer $i
77
+     */
69 78
     private function lookForward($textWords, $i, $length = 10)
70 79
     {
71 80
         $forward = [];
@@ -87,9 +96,9 @@  discard block
 block discarded – undo
87 96
      * @param HighlightMatch[] $matches
88 97
      * @param string[] $searchWords
89 98
      * @param integer $textLength
90
-     * @param $startTag
91
-     * @param $closeTag
92
-     * @param $concat
99
+     * @param string $startTag
100
+     * @param string $closeTag
101
+     * @param string $concat
93 102
      * @return string
94 103
      */
95 104
     private function concatMatches($matches, $searchWords, $textLength, $startTag, $closeTag, $concat)
@@ -131,6 +140,10 @@  discard block
 block discarded – undo
131 140
         return implode($concat, $sequences);
132 141
     }
133 142
 
143
+    /**
144
+     * @param string $word
145
+     * @param string[] $searchWords
146
+     */
134 147
     private function highlightWord($word, $searchWords, $startTag, $closeTag)
135 148
     {
136 149
         if(in_array($this->textSimplify->simplify($word), $searchWords)) {
Please login to merge, or discard this patch.
src/Enhavo/Bundle/ShopBundle/Cart/CartTransfer.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@  discard block
 block discarded – undo
78 78
         }
79 79
     }
80 80
 
81
+    /**
82
+     * @param integer $quantity
83
+     */
81 84
     private function addItem(ProductInterface $product, $quantity, OrderInterface $cart)
82 85
     {
83 86
         /** @var OrderItemInterface $item */
@@ -94,6 +97,9 @@  discard block
 block discarded – undo
94 97
         $this->eventDispatcher->dispatch(SyliusCartEvents::ITEM_ADD_COMPLETED, new FlashEvent());
95 98
     }
96 99
 
100
+    /**
101
+     * @param integer $quantity
102
+     */
97 103
     protected function isValid(ProductInterface $product, $quantity)
98 104
     {
99 105
         if ($product === null) {
Please login to merge, or discard this patch.
src/Enhavo/Bundle/AppBundle/Viewer/AbstractResourceViewer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -151,6 +151,9 @@
 block discarded – undo
151 151
         return $data;
152 152
     }
153 153
 
154
+    /**
155
+     * @param string $key
156
+     */
154 157
     protected function getViewerOption($key, RequestConfiguration $requestConfiguration)
155 158
     {
156 159
         $options = $requestConfiguration->getViewerOptions();
Please login to merge, or discard this patch.
src/Enhavo/Bundle/CommentBundle/Entity/Comment.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-     * @return ThreadInterface|null
98
+     * @return Thread|null
99 99
      */
100 100
     public function getThread(): ?ThreadInterface
101 101
     {
Please login to merge, or discard this patch.
src/Enhavo/Bundle/DemoBundle/Command/InstallCommand.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -272,6 +272,9 @@
 block discarded – undo
272 272
         }
273 273
     }
274 274
 
275
+    /**
276
+     * @param string $projectBundleDir
277
+     */
275 278
     private function overwriteProjectBundle($projectBundleDir)
276 279
     {
277 280
         $defaultControllerContent = $this->template->render('EnhavoInstallerBundle:generate:DefaultController.php.twig');
Please login to merge, or discard this patch.
src/Enhavo/Bundle/DemoBundle/Fixtures/AbstractFixture.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -229,6 +229,9 @@  discard block
 block discarded – undo
229 229
         return $itemType;
230 230
     }
231 231
 
232
+    /**
233
+     * @param BlockInterface $blockType
234
+     */
232 235
     protected function setFields($type, $blockType, $fields)
233 236
     {
234 237
         switch($type) {
@@ -262,6 +265,9 @@  discard block
 block discarded – undo
262 265
         }
263 266
     }
264 267
 
268
+    /**
269
+     * @return \Enhavo\Bundle\RoutingBundle\Model\RouteInterface
270
+     */
265 271
     protected function createRoute($url, $content)
266 272
     {
267 273
         $route = $this->container->get('enhavo_demo.factory.route')->createNew();
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@  discard block
 block discarded – undo
11 11
 use Doctrine\Common\DataFixtures\FixtureInterface;
12 12
 use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
13 13
 use Doctrine\Common\Persistence\ObjectManager;
14
-use Enhavo\Bundle\BlockBundle\Entity\Node;
15 14
 use Enhavo\Bundle\BlockBundle\Factory\BlockFactory;
16 15
 use Enhavo\Bundle\BlockBundle\Factory\NodeFactory;
17 16
 use Enhavo\Bundle\BlockBundle\Model\Block\PictureBlock;
@@ -19,7 +18,6 @@  discard block
 block discarded – undo
19 18
 use Enhavo\Bundle\BlockBundle\Model\Block\TextPictureBlock;
20 19
 use Enhavo\Bundle\BlockBundle\Model\BlockInterface;
21 20
 use Enhavo\Bundle\BlockBundle\Model\NodeInterface;
22
-use Enhavo\Bundle\RoutingBundle\Entity\Route;
23 21
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
24 22
 use Symfony\Component\DependencyInjection\ContainerInterface;
25 23
 use Symfony\Component\PropertyAccess\PropertyAccess;
Please login to merge, or discard this patch.
src/Enhavo/Bundle/DemoBundle/Fixtures/Fixtures/ArticleFixture.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
         return $article;
44 44
     }
45 45
 
46
+    /**
47
+     * @return \Enhavo\Bundle\CommentBundle\Model\ThreadInterface|null
48
+     */
46 49
     function createThread()
47 50
     {
48 51
         $thread = $this->container->get('enhavo_comment.factory.thread')->createNew();
@@ -74,6 +77,9 @@  discard block
 block discarded – undo
74 77
         return $term;
75 78
     }
76 79
 
80
+    /**
81
+     * @param string $name
82
+     */
77 83
     function getTaxonomy($name)
78 84
     {
79 85
         $taxonomy = $this->manager->getRepository('EnhavoTaxonomyBundle:Taxonomy')->findOneBy([
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,6 @@
 block discarded – undo
10 10
 namespace Enhavo\Bundle\DemoBundle\Fixtures\Fixtures;
11 11
 
12 12
 use Enhavo\Bundle\ArticleBundle\Entity\Article;
13
-use Enhavo\Bundle\CommentBundle\Entity\Comment;
14
-use Enhavo\Bundle\CommentBundle\Entity\Thread;
15 13
 use Enhavo\Bundle\DemoBundle\Fixtures\AbstractFixture;
16 14
 use Enhavo\Bundle\TaxonomyBundle\Entity\Taxonomy;
17 15
 use Enhavo\Bundle\TaxonomyBundle\Entity\Term;
Please login to merge, or discard this patch.
src/Enhavo/Bundle/DemoBundle/Fixtures/Fixtures/ShopProductFixture.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@
 block discarded – undo
35 35
         return $product;
36 36
     }
37 37
 
38
+    /**
39
+     * @return null|\Sylius\Component\Taxation\Model\TaxRateInterface
40
+     */
38 41
     public function getTaxRate($code)
39 42
     {
40 43
         $repository = $this->container->get('sylius.repository.tax_rate');
Please login to merge, or discard this patch.