Passed
Push — master ( ed990b...cd5214 )
by Divine Niiquaye
07:33
created
src/PhpGenerator.php 5 patches
Indentation   -26 removed lines patch added patch discarded remove patch
@@ -57,29 +57,3 @@
 block discarded – undo
57 57
     public function toString(Nette\PhpGenerator\ClassType $class): string
58 58
     {
59 59
         $class->setComment(<<<'COMMENT'
60
-/**
61
- * Main DependencyInjection Container. This class has been auto-generated
62
- * by the Nette Dependency Injection Component.
63
- *
64
- * Automatically detects if "container" property are presented in class or uses
65
- * global container as fallback.
66
- *
67
- */
68
-COMMENT);
69
-
70
-        return parent::toString($class);
71
-    }
72
-
73
-    public function generateMethod(Definitions\Definition $def): Nette\PhpGenerator\Method
74
-    {
75
-        $method   = parent::generateMethod($def);
76
-        $name     = $def->getName();
77
-        $comment  = 'This service can be accessed by it\'s name in lower case,';
78
-        $comment2 = "thus `%s`, using container get or make methods.\n\n@return %s";
79
-
80
-        $method->setProtected();
81
-        $method->setComment(\sprintf($comment . "\n" . $comment2, $name, $def->getType()));
82
-
83
-        return $method;
84
-    }
85
-}
Please login to merge, or discard this patch.
Switch Indentation   -26 removed lines patch added patch discarded remove patch
@@ -57,29 +57,3 @@
 block discarded – undo
57 57
     public function toString(Nette\PhpGenerator\ClassType $class): string
58 58
     {
59 59
         $class->setComment(<<<'COMMENT'
60
-/**
61
- * Main DependencyInjection Container. This class has been auto-generated
62
- * by the Nette Dependency Injection Component.
63
- *
64
- * Automatically detects if "container" property are presented in class or uses
65
- * global container as fallback.
66
- *
67
- */
68
-COMMENT);
69
-
70
-        return parent::toString($class);
71
-    }
72
-
73
-    public function generateMethod(Definitions\Definition $def): Nette\PhpGenerator\Method
74
-    {
75
-        $method   = parent::generateMethod($def);
76
-        $name     = $def->getName();
77
-        $comment  = 'This service can be accessed by it\'s name in lower case,';
78
-        $comment2 = "thus `%s`, using container get or make methods.\n\n@return %s";
79
-
80
-        $method->setProtected();
81
-        $method->setComment(\sprintf($comment . "\n" . $comment2, $name, $def->getType()));
82
-
83
-        return $method;
84
-    }
85
-}
Please login to merge, or discard this patch.
Spacing   -26 removed lines patch added patch discarded remove patch
@@ -57,29 +57,3 @@
 block discarded – undo
57 57
     public function toString(Nette\PhpGenerator\ClassType $class): string
58 58
     {
59 59
         $class->setComment(<<<'COMMENT'
60
-/**
61
- * Main DependencyInjection Container. This class has been auto-generated
62
- * by the Nette Dependency Injection Component.
63
- *
64
- * Automatically detects if "container" property are presented in class or uses
65
- * global container as fallback.
66
- *
67
- */
68
-COMMENT);
69
-
70
-        return parent::toString($class);
71
-    }
72
-
73
-    public function generateMethod(Definitions\Definition $def): Nette\PhpGenerator\Method
74
-    {
75
-        $method   = parent::generateMethod($def);
76
-        $name     = $def->getName();
77
-        $comment  = 'This service can be accessed by it\'s name in lower case,';
78
-        $comment2 = "thus `%s`, using container get or make methods.\n\n@return %s";
79
-
80
-        $method->setProtected();
81
-        $method->setComment(\sprintf($comment . "\n" . $comment2, $name, $def->getType()));
82
-
83
-        return $method;
84
-    }
85
-}
Please login to merge, or discard this patch.
Braces   -26 removed lines patch added patch discarded remove patch
@@ -57,29 +57,3 @@
 block discarded – undo
57 57
     public function toString(Nette\PhpGenerator\ClassType $class): string
58 58
     {
59 59
         $class->setComment(<<<'COMMENT'
60
-/**
61
- * Main DependencyInjection Container. This class has been auto-generated
62
- * by the Nette Dependency Injection Component.
63
- *
64
- * Automatically detects if "container" property are presented in class or uses
65
- * global container as fallback.
66
- *
67
- */
68
-COMMENT);
69
-
70
-        return parent::toString($class);
71
-    }
72
-
73
-    public function generateMethod(Definitions\Definition $def): Nette\PhpGenerator\Method
74
-    {
75
-        $method   = parent::generateMethod($def);
76
-        $name     = $def->getName();
77
-        $comment  = 'This service can be accessed by it\'s name in lower case,';
78
-        $comment2 = "thus `%s`, using container get or make methods.\n\n@return %s";
79
-
80
-        $method->setProtected();
81
-        $method->setComment(\sprintf($comment . "\n" . $comment2, $name, $def->getType()));
82
-
83
-        return $method;
84
-    }
85
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -26 removed lines patch added patch discarded remove patch
@@ -57,29 +57,3 @@
 block discarded – undo
57 57
     public function toString(Nette\PhpGenerator\ClassType $class): string
58 58
     {
59 59
         $class->setComment(<<<'COMMENT'
60
-/**
61
- * Main DependencyInjection Container. This class has been auto-generated
62
- * by the Nette Dependency Injection Component.
63
- *
64
- * Automatically detects if "container" property are presented in class or uses
65
- * global container as fallback.
66
- *
67
- */
68
-COMMENT);
69
-
70
-        return parent::toString($class);
71
-    }
72
-
73
-    public function generateMethod(Definitions\Definition $def): Nette\PhpGenerator\Method
74
-    {
75
-        $method   = parent::generateMethod($def);
76
-        $name     = $def->getName();
77
-        $comment  = 'This service can be accessed by it\'s name in lower case,';
78
-        $comment2 = "thus `%s`, using container get or make methods.\n\n@return %s";
79
-
80
-        $method->setProtected();
81
-        $method->setComment(\sprintf($comment . "\n" . $comment2, $name, $def->getType()));
82
-
83
-        return $method;
84
-    }
85
-}
Please login to merge, or discard this patch.
src/Adapters/XmlAdapter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function parse(string $content, $schemaOrCallable = null): DOMDocument
62 62
     {
63
-        $internalErrors  = \libxml_use_internal_errors(true);
63
+        $internalErrors = \libxml_use_internal_errors(true);
64 64
         \libxml_clear_errors();
65 65
 
66 66
         $dom                  = new DOMDocument();
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
             $writer->startElement('container');
226 226
         }
227 227
 
228
-        $data = \array_map(function ($value) {
228
+        $data = \array_map(function($value) {
229 229
             $value = $this->resolveClassObject($value);
230 230
 
231 231
             if (\is_array($value)) {
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
                         unset($value['value']);
288 288
 
289 289
                         $writer->startElement($key);
290
-                        \array_walk_recursive($value, function ($item, $id) use (&$writer): void {
290
+                        \array_walk_recursive($value, function($item, $id) use (&$writer): void {
291 291
                             $writer->writeAttribute($id, $item);
292 292
                         });
293 293
 
@@ -337,10 +337,10 @@  discard block
 block discarded – undo
337 337
                 return true;
338 338
             case 'false' === $lowercaseValue:
339 339
                 return false;
340
-            case isset($value[1]) && '0b' == $value[0] . $value[1] && \preg_match('/^0b[01]*$/', $value):
340
+            case isset($value[1]) && '0b' == $value[0].$value[1] && \preg_match('/^0b[01]*$/', $value):
341 341
                 return \bindec($value);
342 342
             case \is_numeric($value):
343
-                return '0x' === $value[0] . $value[1] ? \hexdec($value) : (float) $value;
343
+                return '0x' === $value[0].$value[1] ? \hexdec($value) : (float) $value;
344 344
             case \preg_match('/^0x[0-9a-f]++$/i', $value):
345 345
                 return \hexdec($value);
346 346
             case \preg_match('/^[+-]?[0-9]+(\.[0-9]+)?$/', $value):
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
                 return 'true';
372 372
             case false === $value:
373 373
                 return 'false';
374
-            case isset($value[1]) && '0b' == $value[0] . $value[1] && \preg_match('/^0b[01]*$/', (string) $value):
374
+            case isset($value[1]) && '0b' == $value[0].$value[1] && \preg_match('/^0b[01]*$/', (string) $value):
375 375
                 return (string) \bindec($value);
376 376
             case \preg_match('/^0x[0-9a-f]++$/i', (string) $value):
377 377
                 return \hexdec($value);
Please login to merge, or discard this patch.