Completed
Branch 2.0.0 (f34df1)
by Chubarov
05:59
created
src/KernelBpm.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
     ];
30 30
 
31 31
     protected $handlers = [
32
-      'xml'  => XmlHandler::class,
33
-      'json' => JsonHandler::class,
32
+        'xml'  => XmlHandler::class,
33
+        'json' => JsonHandler::class,
34 34
     ];
35 35
 
36 36
     protected $collection;
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
     public function action($action, callable $callback)
148 148
     {
149 149
 
150
-         extract($this->splitAction($action));
150
+            extract($this->splitAction($action));
151 151
 
152
-         $action  = $this->setAction($action);
153
-         $this->setHandler($handler);
152
+            $action  = $this->setAction($action);
153
+            $this->setHandler($handler);
154 154
 
155 155
         $action->injectionKernel($this);
156 156
         call_user_func($callback, $action);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         try {
181 181
             Assertion::regex($collection, '/[A-z]+Collection$/');
182 182
         } catch(AssertionFailedException $e) {
183
-           throw new \Exception("Expected word 'Collection' in parameter method setCollection received : " .  $e->getValue());
183
+            throw new \Exception("Expected word 'Collection' in parameter method setCollection received : " .  $e->getValue());
184 184
         }
185 185
 
186 186
         return $this->collection = $collection;
Please login to merge, or discard this patch.
src/ServiceProviders/ActionsServiceProviders.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
     public function register()
15 15
     {
16
-       app()->bind(Read::class,   Read::class);
17
-       app()->bind(Create::class, Create::class);
18
-       app()->bind(Update::class, Update::class);
19
-       app()->bind(Delete::class, Delete::class);
16
+        app()->bind(Read::class,   Read::class);
17
+        app()->bind(Create::class, Create::class);
18
+        app()->bind(Update::class, Update::class);
19
+        app()->bind(Delete::class, Delete::class);
20 20
     }
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
src/Handlers/XmlHandler.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
      */
128 128
     public function toArray()
129 129
     {
130
-       return  $this->xmlToArrayRecursive($this->validText);
130
+        return  $this->xmlToArrayRecursive($this->validText);
131 131
     }
132 132
 
133 133
     /**
Please login to merge, or discard this patch.
src/Actions/Create.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
         $this->headers()->getCookie()->body()->httpErrorsFalse()->get();
62 62
         $response   =  $this->kernel->getCurl()->request($this->HTTP_TYPE, $urlHome . $url,
63
-                       $this->headers()->getCookie()->body()->httpErrorsFalse()->get()
63
+                        $this->headers()->getCookie()->body()->httpErrorsFalse()->get()
64 64
         );
65 65
         $body       = $response->getBody();
66 66
         $this->kernel->getHandler()->parse($body->getContents());
Please login to merge, or discard this patch.
src/Actions/Read.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             }
102 102
             $ParameterQuery.=  " ".$param;
103 103
         }
104
-         $this->concatenationUrlCurl($ParameterQuery);
104
+            $this->concatenationUrlCurl($ParameterQuery);
105 105
 
106 106
         return $this;
107 107
     }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         $urlHome      = config($this->kernel->getPrefixConfig() . '.UrlHome');
148 148
 
149 149
         $response     = $this->kernel->getCurl()->request($this->HTTP_TYPE, $urlHome . $url,
150
-                         $this->debug()->headers()->getCookie()->httpErrorsFalse()->get()
150
+                            $this->debug()->headers()->getCookie()->httpErrorsFalse()->get()
151 151
         );
152 152
         $body         = $response->getBody();
153 153
 
Please login to merge, or discard this patch.
src/Actions/Update.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         $urlHome    = config($this->kernel->getPrefixConfig() . '.UrlHome');
85 85
 
86 86
         $response   =  $this->kernel->getCurl()->request($this->HTTP_TYPE, $urlHome . $url,
87
-                       $this->headers()->getCookie()->body()->httpErrorsFalse()->get()
87
+                        $this->headers()->getCookie()->body()->httpErrorsFalse()->get()
88 88
         );
89 89
         $body       = $response->getBody();
90 90
 
Please login to merge, or discard this patch.
src/Actions/Delete.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
 
70 70
         $response =  $this->kernel->getCurl()->request($this->HTTP_TYPE, $urlHome . $url,
71
-                     $this->headers()->getCookie()->httpErrorsFalse()->get()
71
+                        $this->headers()->getCookie()->httpErrorsFalse()->get()
72 72
         );
73 73
 
74 74
         $body = $response->getBody();
Please login to merge, or discard this patch.
src/Assistants/QueryBuilder.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@
 block discarded – undo
66 66
         $body = [
67 67
             'body' => $this->kernel->getHandler()->create($this->data)
68 68
         ];
69
-         $this->merge($body);
70
-         return $this;
69
+            $this->merge($body);
70
+            return $this;
71 71
     }
72 72
 
73 73
     private function merge(array $newParameters)
Please login to merge, or discard this patch.
src/ServiceProviders/LoggerServiceProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         app()->bind(Logger::class, function(){
16 16
             $log = new Logger(KernelBpm::class);
17
-           return  $log->pushHandler(new StreamHandler(KernelBpm::PATH_LOG . date('Y-m-d'). '.txt', Logger::DEBUG));
17
+            return  $log->pushHandler(new StreamHandler(KernelBpm::PATH_LOG . date('Y-m-d'). '.txt', Logger::DEBUG));
18 18
         });
19 19
     }
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.