Completed
Push — master ( 9e2e10...92b26f )
by David
06:20
created
src/Knp/FriendlyContexts/Utils/TextFormater.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -4,11 +4,17 @@  discard block
 block discarded – undo
4 4
 
5 5
 class TextFormater
6 6
 {
7
+    /**
8
+     * @param string $str
9
+     */
7 10
     public function toCamelCase($str)
8 11
     {
9 12
         return preg_replace('/ /', '', ucwords($str));
10 13
     }
11 14
 
15
+    /**
16
+     * @param string $str
17
+     */
12 18
     public function toUnderscoreCase($str)
13 19
     {
14 20
         $str = strtolower(preg_replace("[A-Z]", "_\$1", $str));
@@ -77,6 +83,9 @@  discard block
 block discarded – undo
77 83
         return $this->goDeeper($array, 0);
78 84
     }
79 85
 
86
+    /**
87
+     * @param integer $deep
88
+     */
80 89
     protected function goDeeper(array $array, $deep)
81 90
     {
82 91
         $deep++;
@@ -89,6 +98,9 @@  discard block
 block discarded – undo
89 98
         return $deep;
90 99
     }
91 100
 
101
+    /**
102
+     * @param string $input
103
+     */
92 104
     protected function mbStrPad($input, $pad_length, $pad_string = ' ', $pad_type = STR_PAD_RIGHT)
93 105
     {
94 106
         $diff = strlen($input) - mb_strlen($input, 'UTF8');
Please login to merge, or discard this patch.
src/Knp/FriendlyContexts/Utils/Asserter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -85,6 +85,9 @@
 block discarded – undo
85 85
         return $this->assert($expected !== $real, $message);
86 86
     }
87 87
 
88
+    /**
89
+     * @param boolean $result
90
+     */
88 91
     public function assert($result, $message = "Assert failure")
89 92
     {
90 93
         if (false === $result) {
Please login to merge, or discard this patch.