Completed
Push — master ( 34af96...bc1876 )
by Alejandro
02:24
created
tests/UtilsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     public function testUtilsAddTrailingSlash() {
74 74
         $path = "/etc/php5";
75 75
         $this->assertEquals("/etc/php5/", Utils::addTrailingSlash($path));
76
-        $this->assertEquals("/etc/php5/", Utils::addTrailingSlash($path . "/"));
76
+        $this->assertEquals("/etc/php5/", Utils::addTrailingSlash($path."/"));
77 77
     }
78 78
 
79 79
     /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $pathUnx = "/var/htdocs";
85 85
         $this->assertEquals("C:/php/ext/", Utils::filterPath($pathWin));
86 86
         $this->assertEquals("/var/htdocs/", Utils::filterPath($pathUnx));
87
-        $this->assertEquals("/var/htdocs/", Utils::filterPath($pathUnx . "/"));
87
+        $this->assertEquals("/var/htdocs/", Utils::filterPath($pathUnx."/"));
88 88
     }
89 89
 
90 90
     /**
Please login to merge, or discard this patch.
src/Modules/Localize/Localize.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@  discard block
 block discarded – undo
76 76
         $this->reloadConfig();
77 77
     }
78 78
 
79
+    /**
80
+     * @param string $locale
81
+     */
79 82
     public function setLocale($locale) {
80 83
         $this->locale = $locale;
81 84
         $folder = \Tight\Utils::addTrailingSlash($this->config->resourceFolder);
@@ -131,6 +134,9 @@  discard block
 block discarded – undo
131 134
         return $output;
132 135
     }
133 136
 
137
+    /**
138
+     * @param string $key
139
+     */
134 140
     public function get($key) {
135 141
         if (isset($this->values[$key])) {
136 142
             return $this->values[$key];
Please login to merge, or discard this patch.
src/Tight.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     /**
66 66
      * Creates an instance of Tight Framework.
67
-     * @param array $config Settings to override the config file
67
+     * @param TightConfig $config Settings to override the config file
68 68
      */
69 69
     public function __construct($config = []) {
70 70
         // Sets the instance
Please login to merge, or discard this patch.
tests/LocalizeModuleTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
     private $module;
63 63
 
64 64
     public function setUp() {
65
-        $valuesFile_en = self::$resourceFolder . "/values.json";
66
-        $valuesFile_es = self::$resourceFolder . "/values_es.json";
67
-        $valuesFile_fr = self::$resourceFolder . "/values_fr.json";
65
+        $valuesFile_en = self::$resourceFolder."/values.json";
66
+        $valuesFile_es = self::$resourceFolder."/values_es.json";
67
+        $valuesFile_fr = self::$resourceFolder."/values_fr.json";
68 68
         if (!is_dir(self::$resourceFolder)) {
69 69
             mkdir(self::$resourceFolder);
70 70
         }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             file_put_contents($valuesFile_fr, json_encode($this->locale_fr));
79 79
         }
80 80
         $this->config = [
81
-            "resourceFolder" => "./" . self::$resourceFolder . "/"
81
+            "resourceFolder" => "./".self::$resourceFolder."/"
82 82
         ];
83 83
         $this->module = new \Tight\Modules\Localize\Localize($this->config);
84 84
     }
Please login to merge, or discard this patch.