Completed
Push — feature/httplug ( f5571c )
by Maxime
10:26
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.