Completed
Push — laravel-5 ( 7f413f...1aac54 )
by Andy
04:07
created
src/Caching/MessageCachingService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace JsLocalization\Caching;
3 3
 
4
-use Cache;
5 4
 use Config;
6 5
 use Event;
7 6
 use Lang;
Please login to merge, or discard this patch.
tests/JsLocalization/Http/Controllers/JsLocalizationControllerTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -91,16 +91,25 @@
 block discarded – undo
91 91
             ->andReturn(new DateTime);
92 92
     }
93 93
 
94
+    /**
95
+     * @param string $jsContent
96
+     */
94 97
     private function assertLangAddMessages($jsContent, array $expectedMessages)
95 98
     {
96 99
         $this->assertJsCall($jsContent, 'Lang.addMessages', $expectedMessages);
97 100
     }
98 101
     
102
+    /**
103
+     * @param string $jsContent
104
+     */
99 105
     protected function assertConfigAddConfig($jsContent, array $expectedConfig)
100 106
     {
101 107
         $this->assertJsCall($jsContent, 'Config.addConfig', $expectedConfig);
102 108
     }
103 109
     
110
+    /**
111
+     * @param string $functionName
112
+     */
104 113
     protected function assertJsCall($jsContent, $functionName, $functionParam)
105 114
     {
106 115
         $functionName = str_replace('.', '\\.', $functionName);
Please login to merge, or discard this patch.
tests/JsLocalization/Utils/JsLocalizationHelperTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -49,6 +49,9 @@
 block discarded – undo
49 49
             'prefix1.test4'
50 50
         ];
51 51
 
52
+    /**
53
+     * @param string $filePath
54
+     */
52 55
     protected function setUpTestMessagesFile($filePath)
53 56
     {
54 57
         $fileContents = '<?php return ' . var_export($this->testMessagesFlat['en'], true) . ';';
Please login to merge, or discard this patch.
tests/TestCase.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -87,6 +87,11 @@
 block discarded – undo
87 87
         }
88 88
     }
89 89
 
90
+    /**
91
+     * @param string $locale
92
+     * @param string $messageKey
93
+     * @param string $message
94
+     */
90 95
     protected function addTestMessage($locale, $messageKey, $message)
91 96
     {
92 97
         $this->testMessagesConfig[] = $messageKey;
Please login to merge, or discard this patch.
src/Console/ExportCommand.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -69,6 +69,7 @@
 block discarded – undo
69 69
      *
70 70
      * @var string $filename
71 71
      *
72
+     * @param string $filename
72 73
      * @return string $path
73 74
      */
74 75
     public function createPath($filename)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use JsLocalization\Facades\ConfigCachingService;
9 9
 use JsLocalization\Facades\MessageCachingService;
10 10
 use Symfony\Component\Console\Input\InputOption;
11
-use Symfony\Component\Console\Input\InputArgument;
12 11
 
13 12
 class ExportCommand extends Command
14 13
 {
Please login to merge, or discard this patch.