Completed
Push — master ( cde104...bb4890 )
by Alejandro
03:36
created
src/Modules/ModuleLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             $this->modules[$module->getModuleName()] = $module;
63 63
             $module->onLoad();
64 64
         } else {
65
-            throw new \Tight\Exception\ModuleException("Module <strong>" . $module->getModuleName() . "</strong> already exists");
65
+            throw new \Tight\Exception\ModuleException("Module <strong>".$module->getModuleName()."</strong> already exists");
66 66
         }
67 67
     }
68 68
 
Please login to merge, or discard this patch.
src/Modules/Localize/Localize.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         if (is_array($config)) {
61 61
             $config = new \Tight\Modules\Localize\LocalizeConfig($config);
62 62
         } else if (!$config instanceof \Tight\Modules\Localize\LocalizeConfig) {
63
-            throw new \InvalidArgumentException("Argument 1 passed to " . get_class($this) . " must be an array or an instance of Tight\Modules\Localize\LocalizeConfig");
63
+            throw new \InvalidArgumentException("Argument 1 passed to ".get_class($this)." must be an array or an instance of Tight\Modules\Localize\LocalizeConfig");
64 64
         }
65 65
         parent::__construct("LocalizeModule");
66 66
         $this->setConfig($config);
@@ -114,17 +114,17 @@  discard block
 block discarded – undo
114 114
     public function setLocale($locale) {
115 115
         $this->locale = $locale;
116 116
         $folder = \Tight\Utils::addTrailingSlash($this->getConfig()->resourceFolder);
117
-        $fileName = $this->getConfig()->resourceFileName . $this->getConfig()->langSeparator . $locale . "." . $this->getConfig()->resourceFileType;
118
-        $file = $folder . $fileName;
117
+        $fileName = $this->getConfig()->resourceFileName.$this->getConfig()->langSeparator.$locale.".".$this->getConfig()->resourceFileType;
118
+        $file = $folder.$fileName;
119 119
         if (is_file($file)) {
120 120
             $this->values = json_decode(file_get_contents($file), JSON_FORCE_OBJECT);
121 121
         } else {
122
-            $fileName = $this->getConfig()->resourceFileName . "." . $this->getConfig()->resourceFileType;
123
-            $file = $folder . $fileName;
122
+            $fileName = $this->getConfig()->resourceFileName.".".$this->getConfig()->resourceFileType;
123
+            $file = $folder.$fileName;
124 124
             if (is_file($file)) {
125 125
                 $this->values = json_decode(file_get_contents($file), JSON_FORCE_OBJECT);
126 126
             } else {
127
-                throw new \Tight\Exception\ModuleException("Resource file <strong>" . $file . "</strong> not found");
127
+                throw new \Tight\Exception\ModuleException("Resource file <strong>".$file."</strong> not found");
128 128
             }
129 129
         }
130 130
     }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             }
146 146
         }
147 147
         foreach ($files as $element) {
148
-            $file = \Tight\Utils::getSlicedFile($directory . $element);
148
+            $file = \Tight\Utils::getSlicedFile($directory.$element);
149 149
             //Removes extension
150 150
             $name = $file["name"];
151 151
             $explode = explode($this->getConfig()->langSeparator, $name);
Please login to merge, or discard this patch.