Completed
Push — master ( 53b54d...0c29f5 )
by Alexander
12s
created
src/Volan.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,6 @@
 block discarded – undo
235 235
     }
236 236
 
237 237
     /**
238
-
239 238
      * @param mixed $nodeData
240 239
      *
241 240
      * @throws Exception
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $nodeSchema = new CustomArrayObject($schema[$node]);
128 128
 
129 129
         foreach ($nodeSchema->getArrayKeys() as $key) {
130
-            $this->currentNode = $node . '.' . $key;
130
+            $this->currentNode = $node.'.'.$key;
131 131
             $this->getLogger()->info("We are in element: {$this->currentNode}");
132 132
 
133 133
             $nodeData = isset($element[$key]) ? $element[$key] : null;
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         if (!empty($nodeData) && is_array($nodeData)) {
181 181
             $schemaKeys = $nodeSchema->getArrayKeys();
182 182
             $dataKeys = count(array_filter(array_keys($nodeData), 'is_string')) ? array_keys($nodeData) : [];
183
-            $returnValue = (bool)array_diff($dataKeys, $schemaKeys);
183
+            $returnValue = (bool) array_diff($dataKeys, $schemaKeys);
184 184
         }
185 185
 
186 186
         return $returnValue;
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
     private function validateNodeValue(AbstractValidator $validator, $nodeData = null)
322 322
     {
323 323
         if ($validator->isValid($nodeData) === false) {
324
-            $error = $this->currentNode . " element has invalid associated data.";
324
+            $error = $this->currentNode." element has invalid associated data.";
325 325
             $error .= !is_null($validator->getErrorDescription())
326 326
                 ? $validator->getErrorDescription()
327 327
                 : '';
Please login to merge, or discard this patch.
src/InMemoryLogger.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,42 +23,42 @@
 block discarded – undo
23 23
 
24 24
     public function info($message, array $context = array())
25 25
     {
26
-        fwrite($this->stream, (string)$message . "\n");
26
+        fwrite($this->stream, (string) $message."\n");
27 27
     }
28 28
 
29 29
     public function warning($message, array $context = array())
30 30
     {
31
-        $this->info('WARNING: ' . $message, $context);
31
+        $this->info('WARNING: '.$message, $context);
32 32
     }
33 33
 
34 34
     public function debug($message, array $context = array())
35 35
     {
36
-        $this->info('DEBUG: ' . $message, $context);
36
+        $this->info('DEBUG: '.$message, $context);
37 37
     }
38 38
 
39 39
     public function critical($message, array $context = array())
40 40
     {
41
-        $this->info('CRITICAL: ' . $message, $context);
41
+        $this->info('CRITICAL: '.$message, $context);
42 42
     }
43 43
 
44 44
     public function emergency($message, array $context = array())
45 45
     {
46
-        $this->info('EMERGENCY: ' . $message, $context);
46
+        $this->info('EMERGENCY: '.$message, $context);
47 47
     }
48 48
 
49 49
     public function error($message, array $context = array())
50 50
     {
51
-        $this->info('ERROR: ' . $message, $context);
51
+        $this->info('ERROR: '.$message, $context);
52 52
     }
53 53
 
54 54
     public function alert($message, array $context = array())
55 55
     {
56
-        $this->info('ALERT: ' . $message, $context);
56
+        $this->info('ALERT: '.$message, $context);
57 57
     }
58 58
 
59 59
     public function notice($message, array $context = array())
60 60
     {
61
-        $this->info('NOTICE: ' . $message, $context);
61
+        $this->info('NOTICE: '.$message, $context);
62 62
     }
63 63
 
64 64
     public function log($level, $message, array $context = array())
Please login to merge, or discard this patch.