Completed
Pull Request — master (#259)
by
unknown
04:19
created
src/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function toArray()
26 26
     {
27
-        return array_map(function ($value) {
27
+        return array_map(function($value) {
28 28
             if ($value instanceof Module) {
29 29
                 return $value->json()->getAttributes();
30 30
             }
Please login to merge, or discard this patch.
src/Module.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * @param Application $app
45 45
      * @param $name
46
-     * @param $path
46
+     * @param string $path
47 47
      */
48 48
     public function __construct(Application $app, $name, $path)
49 49
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     /**
188 188
      * Get json contents from the cache, setting as needed.
189 189
      *
190
-     * @param $file
190
+     * @param string $file
191 191
      *
192 192
      * @return Json
193 193
      */
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     /**
219 219
      * Get a specific data from composer.json file by given the key.
220 220
      *
221
-     * @param $key
221
+     * @param string $key
222 222
      * @param null $default
223 223
      *
224 224
      * @return mixed
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
     /**
297 297
      * Determine whether the given status same with the current module status.
298 298
      *
299
-     * @param $status
299
+     * @param integer $status
300 300
      *
301 301
      * @return bool
302 302
      */
@@ -348,9 +348,9 @@  discard block
 block discarded – undo
348 348
     /**
349 349
      * Set active state for current module.
350 350
      *
351
-     * @param $active
351
+     * @param integer $active
352 352
      *
353
-     * @return bool
353
+     * @return integer
354 354
      */
355 355
     public function setActive($active)
356 356
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     {
178 178
         $lowerName = $this->getLowerName();
179 179
 
180
-        $langPath = $this->getPath() . "/Resources/lang";
180
+        $langPath = $this->getPath()."/Resources/lang";
181 181
 
182 182
         if (is_dir($langPath)) {
183 183
             $this->loadTranslationsFrom($langPath, $lowerName);
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
             $file = 'module.json';
198 198
         }
199 199
 
200
-        return array_get($this->moduleJson, $file, function () use ($file) {
201
-            return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->app['files']);
200
+        return array_get($this->moduleJson, $file, function() use ($file) {
201
+            return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->app['files']);
202 202
         });
203 203
     }
204 204
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      */
250 250
     protected function fireEvent($event)
251 251
     {
252
-        $this->app['events']->fire(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]);
252
+        $this->app['events']->fire(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]);
253 253
     }
254 254
 
255 255
     /**
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     protected function registerFiles()
280 280
     {
281 281
         foreach ($this->get('files', []) as $file) {
282
-            include $this->path . '/' . $file;
282
+            include $this->path.'/'.$file;
283 283
         }
284 284
     }
285 285
 
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
      */
401 401
     public function getExtraPath($path)
402 402
     {
403
-        return $this->getPath() . '/' . $path;
403
+        return $this->getPath().'/'.$path;
404 404
     }
405 405
 
406 406
     /**
Please login to merge, or discard this patch.