Completed
Branch develop (7585df)
by Carsten
11:01
created
module/Core/src/Core/View/Helper/AbstractEventsHelper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * Set the View object
26 26
      *
27 27
      * @param  Renderer $view
28
-     * @return AbstractHelper
28
+     * @return AbstractEventsHelper
29 29
      */
30 30
     public function setView(Renderer $view)
31 31
     {
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Get the view object
38 38
      *
39
-     * @return null|Renderer
39
+     * @return Renderer
40 40
      */
41 41
     public function getView()
42 42
     {
Please login to merge, or discard this patch.
module/Core/src/Core/View/Helper/Alert.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
     /**
161 161
      * Starts content capturing.
162 162
      *
163
-     * @param string|array $type
163
+     * @param string|null $type
164 164
      * @param array        $options see {@łink render()} for information.
165 165
      *
166 166
      * @return self
Please login to merge, or discard this patch.
Indentation   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license       MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license       MIT
8
+     */
9 9
 
10 10
 /** Core view helper */
11 11
 namespace Core\View\Helper;
@@ -52,7 +52,6 @@  discard block
 block discarded – undo
52 52
  * @method warning()
53 53
  * @method success()
54 54
  * @method danger()
55
-
56 55
  *
57 56
 *@author Mathias Gelhausen <[email protected]>
58 57
  */
@@ -149,7 +148,7 @@  discard block
 block discarded – undo
149 148
         ) {
150 149
             $class .= ' alert-dismissable';
151 150
             $content = '<button type="button" class="close" data-dismiss="alert">&times;</button>'
152
-                     . '<span class="notification-content">' . $content . '</span>';
151
+                        . '<span class="notification-content">' . $content . '</span>';
153 152
         }
154 153
 
155 154
         $target = array_key_exists('target', $options)?' target="' . $options['target'] . '"':'';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
                      . '<span class="notification-content">' . $content . '</span>';
153 153
         }
154 154
 
155
-        $target = array_key_exists('target', $options)?' target="' . $options['target'] . '"':'';
155
+        $target = array_key_exists('target', $options) ? ' target="' . $options['target'] . '"' : '';
156 156
         $markup = '<div ' . $id . ' class="alert alert-' . $type . $class . '" ' . $target . '>' . $content . '</div>' . PHP_EOL;
157 157
         return $markup;
158 158
     }
Please login to merge, or discard this patch.
module/Core/src/Core/View/Helper/DateFormat.php 3 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,6 @@
 block discarded – undo
53 53
      *
54 54
      * @see \Zend\I18n\View\Helper\DateFormat::__invoke()
55 55
      *
56
-     * @param \DateTime $data|string
57 56
      * @param string $dateType
58 57
      * @return string
59 58
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 {
41 41
     const FULL  = 'full';
42 42
     const LONG  = 'long';
43
-    const MEDIUM= 'medium';
43
+    const MEDIUM = 'medium';
44 44
     const SHORT = 'short';
45 45
     const NONE  = 'none';
46 46
 
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Core/src/Core/View/Helper/Params.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
      * Return all event parameters or a single event parameter.
172 172
      *
173 173
      * @param string $param Parameter name to retrieve, or null to get all.
174
-     * @param mixed $efault Default value to use when the parameter is missing.
174
+     * @param mixed $default Default value to use when the parameter is missing.
175 175
      * @return mixed
176 176
      * @throws RuntimeException
177 177
      */
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Core/src/Core/View/Helper/Period.php 3 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * returns the number of years of the education or work experience
19 19
      *
20
-     * @param array $obj
21
-     * @return string
20
+     * @return double
22 21
      */
23 22
     public function __invoke($array)
24 23
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
         // calculate EndDate - StartDate = X Years.
26 26
         // eg. 4.2 Years
27 27
         
28
-        $days=0;
28
+        $days = 0;
29 29
         foreach ($array as $obj) {
30 30
             $date1 = new \DateTime($obj->endDate);
31 31
             $date2 = new \DateTime($obj->startDate);
32 32
             $interval = $date1->diff($date2);
33
-            $days+=abs($interval->format('%R%a'));
33
+            $days += abs($interval->format('%R%a'));
34 34
         }
35
-        return round($days/365, 1);
35
+        return round($days / 365, 1);
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Core/src/Core/View/Helper/Service/DateFormatHelperFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * - injects the MvcEvent instance
27 27
      *
28 28
      * @param ServiceLocatorInterface $serviceLocator
29
-     * @return \Core\View\Helper\Params
29
+     * @return DateFormat
30 30
      * @see \Zend\ServiceManager\FactoryInterface::createService()
31 31
      */
32 32
     public function createService(ServiceLocatorInterface $serviceLocator)
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Cv/src/Cv/Entity/Cv.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
     
61 61
     /**
62
-     * @return \Core\Entity\Collection\ArrayCollection
62
+     * @return EducationInterface
63 63
      */
64 64
     public function getEducations()
65 65
     {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @return \Core\Entity\Collection\ArrayCollection
83
+     * @return EmploymentInterface
84 84
      */
85 85
     public function getEmployments()
86 86
     {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     }
102 102
     
103 103
     /**
104
-     * @return \Core\Entity\Collection\ArrayCollection
104
+     * @return SkillInterface
105 105
      */
106 106
     public function getSkills()
107 107
     {
Please login to merge, or discard this patch.
module/Cv/src/Cv/Entity/CvInterface.php 1 patch
Doc Comments   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,22 +10,24 @@
 block discarded – undo
10 10
 {
11 11
     
12 12
     /**
13
-     * @return the $educations
13
+     * @return EducationInterface $educations
14 14
      */
15 15
     public function getEducations();
16 16
     
17 17
     /**
18
-     * @param field_type $educations
18
+     * @param CollectionInterface $educations
19
+     * @return Cv
19 20
      */
20 21
     public function setEducations(CollectionInterface $educations);
21 22
     
22 23
     /**
23
-     * @return the $employments
24
+     * @return EmploymentInterface $employments
24 25
      */
25 26
     public function getEmployments();
26 27
     
27 28
     /**
28
-     * @param field_type $employments
29
+     * @param CollectionInterface $employments
30
+     * @return Cv
29 31
      */
30 32
     public function setEmployments(CollectionInterface $employments);
31 33
 }
Please login to merge, or discard this patch.
module/Geo/src/Geo/Form/GeoText.php 3 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@  discard block
 block discarded – undo
48 48
         return $this;
49 49
     }
50 50
 
51
+    /**
52
+     * @param Converter $converter
53
+     */
51 54
     public function setConverter($converter)
52 55
     {
53 56
         $this->converter = $converter;
@@ -97,7 +100,7 @@  discard block
 block discarded – undo
97 100
     }
98 101
 
99 102
     /**
100
-     * @return mixed
103
+     * @return Hidden
101 104
      */
102 105
     public function getDataElement()
103 106
     {
@@ -105,7 +108,7 @@  discard block
 block discarded – undo
105 108
     }
106 109
 
107 110
     /**
108
-     * @return mixed
111
+     * @return Text
109 112
      */
110 113
     public function getNameElement()
111 114
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
         return $this;
125 125
     }
126 126
 
127
-    public function setValue($value, $type=null)
127
+    public function setValue($value, $type = null)
128 128
     {
129 129
         if ($value instanceOf Location) {
130 130
             $value = $this->getConverter()->toValue($value, $type ?: $this->typeElement->getValue());
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,12 +88,12 @@
 block discarded – undo
88 88
         $id = str_replace(array('[', ']'), array('-', ''), $name);
89 89
         $this->setAttribute('id', $id);
90 90
         $this->nameElement->setName($name . '[name]')
91
-                          ->setAttribute('id', $id . '-name')
92
-                          ->setAttribute('class', 'form-control geolocation');
91
+                            ->setAttribute('id', $id . '-name')
92
+                            ->setAttribute('class', 'form-control geolocation');
93 93
         $this->dataElement->setName($name . '[data]')
94
-                          ->setAttribute('id', $id . '-data');
94
+                            ->setAttribute('id', $id . '-data');
95 95
         $this->typeElement->setName($name . '[type]')
96
-                          ->setAttribute('id', $id . '-type');
96
+                            ->setAttribute('id', $id . '-type');
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.