Completed
Push — master ( 7fd037...272fda )
by Ben
09:19
created
src/Domain/Translatable.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * Save a single attribute
45 45
      *
46 46
      * @param $locale
47
-     * @param $attribute
47
+     * @param string $attribute
48 48
      * @param $value
49 49
      */
50 50
     public function saveTranslation($locale, $attribute, $value)
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     }
56 56
 
57 57
     /**
58
-     * @param $attribute
58
+     * @param string $attribute
59 59
      * @param null $locale
60 60
      * @param bool $fallback | if locale not present, use fallback locale instead
61 61
      * @return string null
Please login to merge, or discard this patch.
src/Import/ImportSingleTranslation.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-     * @param $action
93
+     * @param string $action
94 94
      * @param $locale
95 95
      * @param $key
96 96
      * @param $new_value
Please login to merge, or discard this patch.
src/Import/ImportTranslationsCommand.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -175,6 +175,9 @@
 block discarded – undo
175 175
     }
176 176
 
177 177
 
178
+    /**
179
+     * @param string $action
180
+     */
178 181
     private function displayDetails($action)
179 182
     {
180 183
         $stats = $this->importer->getStats();
Please login to merge, or discard this patch.
src/Services/ImportStatistics.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
40 40
         return $this->push($key,$value,true);
41 41
     }
42 42
 
43
+    /**
44
+     * @param string $key
45
+     */
43 46
     private function push($action,$value,$single = false,$key = null)
44 47
     {
45 48
         if($single)
Please login to merge, or discard this patch.
src/SquantoServiceProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     protected $defer = true;
17 17
 
18 18
     /**
19
-     * @return array
19
+     * @return string[]
20 20
      */
21 21
     public function provides()
22 22
     {
Please login to merge, or discard this patch.
src/Domain/Page.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
40 40
         return $this->push($key,$value,true);
41 41
     }
42 42
 
43
+    /**
44
+     * @param string $key
45
+     */
43 46
     private function push($action,$value,$single = false,$key = null)
44 47
     {
45 48
         if($single)
Please login to merge, or discard this patch.
src/Translators/SquantoTranslator.php 1 patch
Doc Comments   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
      * Get from excluded sources. This is used here to make retrieval of these
57 57
      * non-managed translations a lot faster by going straight to source
58 58
      *
59
-     * @param $key
59
+     * @param string $key
60 60
      * @param $replace
61
-     * @param $locale
62
-     * @param $fallback
61
+     * @param string $locale
62
+     * @param boolean $fallback
63 63
      * @return array|null|string
64 64
      */
65 65
     private function getFromExcludedSource($key, $replace, $locale, $fallback)
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * Retrieve the translation from the squanto cache.
74 74
      *
75
-     * @param $key
75
+     * @param string $key
76 76
      * @param array $replace
77
-     * @param null $locale
77
+     * @param string $locale
78 78
      * @return mixed|null
79 79
      */
80 80
     private function getFromCache($key, array $replace = array(), $locale = null, $fallback = true)
@@ -88,6 +88,10 @@  discard block
 block discarded – undo
88 88
         return ($result !== $key) ? $result : null;
89 89
     }
90 90
 
91
+    /**
92
+     * @param string $key
93
+     * @param string $locale
94
+     */
91 95
     private function getFromDatabase($key, array $replace = array(), $locale = null, $fallback = true)
92 96
     {
93 97
         /**
Please login to merge, or discard this patch.