Passed
Branch 2.0.0 (25c5b4)
by Chubarov
02:54
created
src/Actions/Delete.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 use agoalofalife\bpm\Assistants\ConstructorUrl;
5 5
 use agoalofalife\bpm\Assistants\QueryBuilder;
6 6
 use agoalofalife\bpm\Contracts\Action;
7
-use agoalofalife\bpm\Contracts\ActionGet;
8 7
 use agoalofalife\bpm\KernelBpm;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
src/ServiceProviders/LoggerServiceProvider.php 2 patches
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'), Logger::DEBUG));
17
+            return  $log->pushHandler(new StreamHandler(KernelBpm::PATH_LOG . date('Y-m-d'), Logger::DEBUG));
18 18
         });
19 19
     }
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 
13 13
     public function register()
14 14
     {
15
-        app()->bind(Logger::class, function(){
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'), Logger::DEBUG));
17
+           return  $log->pushHandler(new StreamHandler(KernelBpm::PATH_LOG.date('Y-m-d'), Logger::DEBUG));
18 18
         });
19 19
     }
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
src/KernelBpm.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
  */
37 37
 class KernelBpm
38 38
 {
39
-    const PATH_LOG = __DIR__ . '/resource/logs';
39
+    const PATH_LOG = __DIR__.'/resource/logs';
40 40
 
41 41
     protected $action = [
42 42
         'create' =>  Create::class,
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function loadConfiguration(SourceConfiguration $configuration)
111 111
     {
112
-        config()->set(  $this->prefixConfiguration = $configuration->getName(), $configuration->get());
112
+        config()->set($this->prefixConfiguration = $configuration->getName(), $configuration->get());
113 113
     }
114 114
 
115 115
     /**
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         Assertion::keyIsset($this->action, $typeAction);
161 161
 
162
-        $this->currentAction  =  app()->make( $this->action[$typeAction] );
162
+        $this->currentAction = app()->make($this->action[$typeAction]);
163 163
 
164 164
         return $this->currentAction;
165 165
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
          extract($this->splitAction($action));
177 177
 
178
-         $action  = $this->setAction($action);
178
+         $action = $this->setAction($action);
179 179
          $this->setHandler($handler);
180 180
 
181 181
         $action->injectionKernel($this);
@@ -205,8 +205,8 @@  discard block
 block discarded – undo
205 205
     {
206 206
         try {
207 207
             Assertion::regex($collection, '/[A-z]+Collection$/');
208
-        } catch(AssertionFailedException $e) {
209
-           throw new \Exception("Expected word 'Collection' in parameter method setCollection received : " .  $e->getValue());
208
+        } catch (AssertionFailedException $e) {
209
+           throw new \Exception("Expected word 'Collection' in parameter method setCollection received : ".$e->getValue());
210 210
         }
211 211
 
212 212
         return $this->collection = $collection;
@@ -237,8 +237,8 @@  discard block
 block discarded – undo
237 237
 
238 238
         // verification values
239 239
         Assertion::between(count($split), 2, 2);
240
-        Assertion::keyExists( $this->action, $split[0]);
241
-        Assertion::keyExists( $this->handlers, $split[1]);
240
+        Assertion::keyExists($this->action, $split[0]);
241
+        Assertion::keyExists($this->handlers, $split[1]);
242 242
 
243 243
         return ['action' => $split[0], 'handler' => $split[1]];
244 244
     }
Please login to merge, or discard this patch.