Passed
Branch master (ba6b3a)
by Php Easy Api
05:36 queued 02:29
created
src/resta/Contracts/AccessorContracts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,5 +13,5 @@
 block discarded – undo
13 13
      * @param array $data
14 14
      * @return mixed
15 15
      */
16
-    public function set($data=array());
16
+    public function set($data = array());
17 17
 }
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
src/resta/Contracts/ExceptionContracts.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -8,71 +8,71 @@
 block discarded – undo
8 8
      * @param null $msg
9 9
      * @return mixed
10 10
      */
11
-    public function invalidArgument($msg=null);
11
+    public function invalidArgument($msg = null);
12 12
 
13 13
     /**
14 14
      * @param null $msg
15 15
      * @return mixed
16 16
      */
17
-    public function badFunctionCall($msg=null);
17
+    public function badFunctionCall($msg = null);
18 18
 
19 19
     /**
20 20
      * @param null $msg
21 21
      * @return mixed
22 22
      */
23
-    public function badMethodCall($msg=null);
23
+    public function badMethodCall($msg = null);
24 24
 
25 25
     /**
26 26
      * @param null $msg
27 27
      * @return mixed
28 28
      */
29
-    public function domain($msg=null);
29
+    public function domain($msg = null);
30 30
 
31 31
     /**
32 32
      * @param null $msg
33 33
      * @return mixed
34 34
      */
35
-    public function length($msg=null);
35
+    public function length($msg = null);
36 36
 
37 37
     /**
38 38
      * @param null $msg
39 39
      * @return mixed
40 40
      */
41
-    public function logic($msg=null);
41
+    public function logic($msg = null);
42 42
 
43 43
     /**
44 44
      * @param null $msg
45 45
      * @return mixed
46 46
      */
47
-    public function outOfRange($msg=null);
47
+    public function outOfRange($msg = null);
48 48
 
49 49
     /**
50 50
      * @param null $msg
51 51
      * @return mixed
52 52
      */
53
-    public function overflow($msg=null);
53
+    public function overflow($msg = null);
54 54
 
55 55
     /**
56 56
      * @param null $msg
57 57
      * @return mixed
58 58
      */
59
-    public function range($msg=null);
59
+    public function range($msg = null);
60 60
 
61 61
     /**
62 62
      * @param null $msg
63 63
      * @return mixed
64 64
      */
65
-    public function runtime($msg=null);
65
+    public function runtime($msg = null);
66 66
 
67 67
     /**
68 68
      * @param null $msg
69 69
      * @return mixed
70 70
      */
71
-    public function underflow($msg=null);
71
+    public function underflow($msg = null);
72 72
 
73 73
     /**
74 74
      * @param null $msg
75 75
      * @return mixed
76 76
      */
77
-    public function unexpectedValue($msg=null);
77
+    public function unexpectedValue($msg = null);
78 78
 }
79 79
\ No newline at end of file
Please login to merge, or discard this patch.
src/resta/Contracts/ContainerContracts.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
      * @param $callback null
11 11
      * @return mixed
12 12
      */
13
-    public function bind($object=null,$callback=null);
13
+    public function bind($object = null, $callback = null);
14 14
 
15 15
     /**
16 16
      * @param $abstract
@@ -37,14 +37,14 @@  discard block
 block discarded – undo
37 37
      * @param $container false
38 38
      * @return mixed
39 39
      */
40
-    public function make($object=null,$callback=null,$container=false);
40
+    public function make($object = null, $callback = null, $container = false);
41 41
 
42 42
     /**
43 43
      * @param null $object
44 44
      * @param null $callback
45 45
      * @return mixed
46 46
      */
47
-    public function share($object=null,$callback=null);
47
+    public function share($object = null, $callback = null);
48 48
 
49 49
     /**
50 50
      * @method singleton
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @param array $bind
58 58
      * @return mixed
59 59
      */
60
-    public function resolve($class,$bind=array());
60
+    public function resolve($class, $bind = array());
61 61
 
62 62
     /**
63 63
      * @param $class
Please login to merge, or discard this patch.
src/resta/Contracts/StaticNamespaceContracts.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
      * @param array $bind
25 25
      * @return mixed
26 26
      */
27
-    public function controller($endpoint=null,$bind=array());
27
+    public function controller($endpoint = null, $bind = array());
28 28
 
29 29
     /**
30 30
      * @return mixed
Please login to merge, or discard this patch.
src/resta/Contracts/StaticPathContracts.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
      * @param null $app
9 9
      * @return mixed
10 10
      */
11
-    public function app($app=null);
11
+    public function app($app = null);
12 12
 
13 13
     /**
14 14
      * @return mixed
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @param bool $bool
56 56
      * @return mixed
57 57
      */
58
-    public function controller($controller=null,$bool=true);
58
+    public function controller($controller = null, $bool = true);
59 59
 
60 60
     /**
61 61
      * @return mixed
@@ -146,5 +146,5 @@  discard block
 block discarded – undo
146 146
      * @param null $app
147 147
      * @return mixed
148 148
      */
149
-    public function version($app=null);
149
+    public function version($app = null);
150 150
 }
151 151
\ No newline at end of file
Please login to merge, or discard this patch.
src/resta/Contracts/EventDispatcherContracts.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
      * @param $concrete
11 11
      * @return mixed
12 12
      */
13
-    public function addListener($eventName,$abstract,$concrete);
13
+    public function addListener($eventName, $abstract, $concrete);
14 14
 
15 15
     /**
16 16
      * @param array $subscriber
17 17
      * @return mixed
18 18
      */
19
-    public function addSubscriber($subscriber=array());
19
+    public function addSubscriber($subscriber = array());
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
src/resta/Contracts/KernelContracts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
      * @param bool $onion
11 11
      * @return mixed
12 12
      */
13
-    public function callBootstrapperProcess($group,$booting,$onion=true);
13
+    public function callBootstrapperProcess($group, $booting, $onion = true);
14 14
 
15 15
 }
16 16
\ No newline at end of file
Please login to merge, or discard this patch.
src/resta/Contracts/ConfigProviderContracts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
      * @param null $path
9 9
      * @return mixed
10 10
      */
11
-    public function setConfig($path=null);
11
+    public function setConfig($path = null);
12 12
 
13 13
 }
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
src/resta/Middleware/ExcludeMiddleware.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param callable $callback
30 30
      * @return mixed
31 31
      */
32
-    public function exclude($middleware,callable $callback)
32
+    public function exclude($middleware, callable $callback)
33 33
     {
34 34
         $this->result = true;
35 35
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         //if there is exclude method
43 43
         //in service middleware class
44
-        if($this->existMethod()){
44
+        if ($this->existMethod()) {
45 45
 
46 46
             //call exclude method
47 47
             /**
@@ -50,24 +50,24 @@  discard block
 block discarded – undo
50 50
             $serviceMiddleware = $middleware['class'];
51 51
             $excludes = $serviceMiddleware->exclude();
52 52
 
53
-            foreach ($excludes as $excludeKey=>$excludeVal){
54
-                $this->excludeProcess($excludeKey,$excludeVal);
53
+            foreach ($excludes as $excludeKey=>$excludeVal) {
54
+                $this->excludeProcess($excludeKey, $excludeVal);
55 55
             }
56 56
         }
57 57
 
58 58
         //return true
59
-        return Utils::returnCallback($this->result,$callback);
59
+        return Utils::returnCallback($this->result, $callback);
60 60
     }
61 61
 
62 62
     /**
63 63
      * @param $excludeKey
64 64
      * @param $excludeVal
65 65
      */
66
-    private function excludeProcess($excludeKey,$excludeVal)
66
+    private function excludeProcess($excludeKey, $excludeVal)
67 67
     {
68
-        $this->excludeForAll($excludeKey,$excludeVal,function() use ($excludeKey,$excludeVal){
68
+        $this->excludeForAll($excludeKey, $excludeVal, function() use ($excludeKey, $excludeVal){
69 69
 
70
-            if($excludeKey == $this->excludeList['middleware']['middlewareName']){
70
+            if ($excludeKey==$this->excludeList['middleware']['middlewareName']) {
71 71
                 $this->inArrayExclude($excludeVal);
72 72
 
73 73
             }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     private function existMethod()
81 81
     {
82
-        return Utils::existMethod($this->excludeList['middleware']['class'],'exclude');
82
+        return Utils::existMethod($this->excludeList['middleware']['class'], 'exclude');
83 83
     }
84 84
 
85 85
     /**
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
      */
88 88
     private function inArrayExclude($exclude)
89 89
     {
90
-        foreach($exclude as $item){
91
-            if(in_array($item,$this->middleware['odds'])){
90
+        foreach ($exclude as $item) {
91
+            if (in_array($item, $this->middleware['odds'])) {
92 92
                 $this->result = false;
93 93
             }
94 94
         }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @param callable $callback
101 101
      * @return mixed
102 102
      */
103
-    private function excludeForAll($excludeKey,$excludeVal,callable $callback)
103
+    private function excludeForAll($excludeKey, $excludeVal, callable $callback)
104 104
     {
105 105
         return ($excludeKey=="all") ? $this->inArrayExclude($excludeVal) : call_user_func($callback);
106 106
     }
Please login to merge, or discard this patch.