Completed
Pull Request — master (#29)
by
unknown
03:46
created
src/Distilleries/Expendable/Http/Middleware/VerifyCsrfToken.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,16 +5,16 @@
 block discarded – undo
5 5
 
6 6
 class VerifyCsrfToken extends BaseVerifier {
7 7
 
8
-	/**
9
-	 * Handle an incoming request.
10
-	 *
11
-	 * @param  \Illuminate\Http\Request  $request
12
-	 * @param  \Closure  $next
13
-	 * @return mixed
14
-	 */
15
-	public function handle($request, Closure $next)
16
-	{
17
-		return parent::handle($request, $next);
18
-	}
8
+    /**
9
+     * Handle an incoming request.
10
+     *
11
+     * @param  \Illuminate\Http\Request  $request
12
+     * @param  \Closure  $next
13
+     * @return mixed
14
+     */
15
+    public function handle($request, Closure $next)
16
+    {
17
+        return parent::handle($request, $next);
18
+    }
19 19
 
20 20
 }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Models/Translation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     public function scopeByElement($query, Model $model)
55 55
     {
56 56
         return $query->where($this->getTable() . '.' . $this->getModelColumn(), '=', $model->getTable())
57
-                     ->where($this->getTable() . '.' . $this->getIdSourceColumn(), '=', $model->getKey());
57
+                        ->where($this->getTable() . '.' . $this->getIdSourceColumn(), '=', $model->getKey());
58 58
     }
59 59
 
60 60
 }
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Helpers/Security.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,6 +296,10 @@  discard block
 block discarded – undo
296 296
       * @param boolean $is_image TRUE if this is an image
297 297
       * @return string The string with the evil attributes removed
298 298
       */
299
+
300
+    /**
301
+     * @param boolean $evilAttribute
302
+     */
299 303
     protected function _remove_evil_attributes($str, $is_image, $evilAttribute)
300 304
     {
301 305
         // All javascript event handlers (e.g. onload, onclick, onmouseover), style, and xmlns
@@ -419,7 +423,7 @@  discard block
 block discarded – undo
419 423
      * things like j a v a s c r i p t
420 424
      *
421 425
      * @param    type
422
-     * @return    type
426
+     * @return    string
423 427
      */
424 428
     protected function _compact_exploded_words($matches)
425 429
     {
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Http/Middleware/LanguageDetector.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      *
21 21
      * @param \Illuminate\Http\Request $request
22 22
      * @param \Closure $next
23
-     * @return mixed
23
+     * @return \Illuminate\Http\RedirectResponse
24 24
      */
25 25
     public function handle($request, Closure $next)
26 26
     {
Please login to merge, or discard this patch.
Expendable/Http/Controllers/Backend/Base/ModelBaseController.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -96,6 +96,10 @@
 block discarded – undo
96 96
         ];
97 97
     }
98 98
 
99
+    /**
100
+     * @param string $key
101
+     * @param null|integer $default_value
102
+     */
99 103
     protected function getParams(Request $request, $key, $default_value)
100 104
     {
101 105
         $element = $request->get($key);
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Exports/BaseExport.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
         $this->setRange($data);
33 33
     }
34 34
 
35
+    /**
36
+     * @param string $fileName
37
+     */
35 38
     public function export($fileName)
36 39
     {
37 40
         return $this->download($fileName);
Please login to merge, or discard this patch.
src/Distilleries/Expendable/Imports/BaseImport.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
         $this->setModel($model);
21 21
     }
22 22
 
23
+    /**
24
+     * @param string $filepath
25
+     */
23 26
     public function importFromFile($filepath)
24 27
     {
25 28
         return $this->import($filepath);
Please login to merge, or discard this patch.