Completed
Push — feature/httplug ( f5571c )
by Maxime
10:26
created
src/Knp/FriendlyContexts/Context/Context.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -93,6 +93,9 @@  discard block
 block discarded – undo
93 93
         return $this->get('friendly.http.http_content_type_guesser');
94 94
     }
95 95
 
96
+    /**
97
+     * @param string $service
98
+     */
96 99
     protected function get($service)
97 100
     {
98 101
         if ($this->container->has($service)) {
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
         throw new ServiceNotFoundException($service);
107 110
     }
108 111
 
112
+    /**
113
+     * @param string $name
114
+     */
109 115
     protected function getParameter($name)
110 116
     {
111 117
         if ($this->container->hasParameter($name)) {
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Context/Initializer/FriendlyInitializer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
18 18
         $this->container = $container;
19 19
     }
20 20
 
21
+    /**
22
+     * @param ContextInterface $context
23
+     */
21 24
     public function supports($context)
22 25
     {
23 26
         return $context instanceof Context;
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Context/MinkContext.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -160,6 +160,9 @@
 block discarded – undo
160 160
         return $elements;
161 161
     }
162 162
 
163
+    /**
164
+     * @param \Closure $actionCallback
165
+     */
163 166
     protected function elementAction($locator, $element, $nbr = 1, $actionCallback, $filterCallback = null)
164 167
     {
165 168
         $elements = $this->searchElement($locator, $element, $filterCallback);
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Context/RawMinkContext.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -26,6 +26,11 @@  discard block
 block discarded – undo
26 26
         $this->minkParameters = $parameters;
27 27
     }
28 28
 
29
+    /**
30
+     * @param string $offset
31
+     *
32
+     * @return string
33
+     */
29 34
     public function getMinkParameter($offset)
30 35
     {
31 36
        if (!isset($this->minkParameters[$offset])) {
@@ -48,6 +53,9 @@  discard block
 block discarded – undo
48 53
         return $this->getMink()->assertSession($name);
49 54
     }
50 55
 
56
+    /**
57
+     * @return string
58
+     */
51 59
     public function locatePath($path)
52 60
     {
53 61
         $startUrl = rtrim($this->getMinkParameter('base_url'), '/') . '/';
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Context/RawPageContext.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -10,11 +10,17 @@  discard block
 block discarded – undo
10 10
 {
11 11
     private $pages = [];
12 12
 
13
+    /**
14
+     * @param TableNode $arguments
15
+     */
13 16
     public function visitPage($page, $arguments = null)
14 17
     {
15 18
         $this->getSession()->visit($this->locatePath($this->getPagePath($page, $arguments)));
16 19
     }
17 20
 
21
+    /**
22
+     * @param TableNode $arguments
23
+     */
18 24
     public function assertPage($page, $arguments = null)
19 25
     {
20 26
         try {
@@ -52,6 +58,10 @@  discard block
 block discarded – undo
52 58
         return $this->resolvePagePath($page, $parameters, $entities);
53 59
     }
54 60
 
61
+    /**
62
+     * @param string $entity
63
+     * @param string $field
64
+     */
55 65
     protected function getEntityFromRecordBag($entity, $field)
56 66
     {
57 67
         $class = $this->resolveEntity($entity)->getName();
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Dictionary/Taggable.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@
 block discarded – undo
43 43
         return true;
44 44
     }
45 45
 
46
+    /**
47
+     * @param string $name
48
+     */
46 49
     protected function getTagContent($name)
47 50
     {
48 51
         $content = [];
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Doctrine/EntityResolver.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -106,6 +106,9 @@
 block discarded – undo
106 106
         return array_unique($results);
107 107
     }
108 108
 
109
+    /**
110
+     * @param string $case
111
+     */
109 112
     public function asAccessForCase($entity, $property, $case)
110 113
     {
111 114
         $method = sprintf('to%s', $case);
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Guesser/GuesserInterface.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -4,10 +4,25 @@
 block discarded – undo
4 4
 
5 5
 interface GuesserInterface
6 6
 {
7
+    /**
8
+     * @return boolean
9
+     */
7 10
     public function supports(array $mapping);
8 11
     public function transform($str, array $mapping);
9 12
     public function fake(array $mapping);
13
+
14
+    /**
15
+     * @return GuesserManager
16
+     */
10 17
     public function getManager();
18
+
19
+    /**
20
+     * @return AbstractGuesser
21
+     */
11 22
     public function setManager(GuesserManager $manager);
23
+
24
+    /**
25
+     * @return string
26
+     */
12 27
     public function getName();
13 28
 }
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Reader/SmartReader.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@
 block discarded – undo
77 77
         return $scenarios;
78 78
     }
79 79
 
80
+    /**
81
+     * @param \Closure $callable
82
+     */
80 83
     protected function buildCallee($feature, $scenario, $callable)
81 84
     {
82 85
         $description = sprintf('%s:%s', $feature->getFile(), $scenario->getLine());
Please login to merge, or discard this patch.