Passed
Push — develop ( 4b5082...21cba9 )
by nguereza
02:17
created
src/Contract/Jsonable.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class Jsonable
51 51
  * @package Platine\Stdlib\Contract
52 52
  */
53
-interface Jsonable
54
-{
53
+interface Jsonable {
55 54
 
56 55
     /**
57 56
      * Convert the instance to JSON string
Please login to merge, or discard this patch.
src/Contract/Arrayable.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class Arrayable
51 51
  * @package Platine\Stdlib\Contract
52 52
  */
53
-interface Arrayable
54
-{
53
+interface Arrayable {
55 54
 
56 55
     /**
57 56
      * Convert the instance to array
Please login to merge, or discard this patch.
src/Contract/ConfigurationInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class ConfigurationInterface
51 51
  * @package Platine\Stdlib\Contract
52 52
  */
53
-interface ConfigurationInterface
54
-{
53
+interface ConfigurationInterface {
55 54
 
56 55
     /**
57 56
      * Create new instance
Please login to merge, or discard this patch.
src/Config/AbstractConfiguration.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * Class AbstractConfiguration
55 55
  * @package Platine\Stdlib\Config
56 56
  */
57
-abstract class AbstractConfiguration implements ConfigurationInterface
58
-{
57
+abstract class AbstractConfiguration implements ConfigurationInterface {
59 58
 
60 59
     /**
61 60
      * The raw configuration array
@@ -66,16 +65,14 @@  discard block
 block discarded – undo
66 65
     /**
67 66
      * {@inheritedoc}
68 67
      */
69
-    public function __construct(array $config = [])
70
-    {
68
+    public function __construct(array $config = []) {
71 69
         $this->load($config);
72 70
     }
73 71
 
74 72
     /**
75 73
      * {@inheritedoc}
76 74
      */
77
-    public function get(string $name)
78
-    {
75
+    public function get(string $name) {
79 76
         if (!array_key_exists($name, $this->config)) {
80 77
             throw new InvalidArgumentException(sprintf(
81 78
                 'Invalid configuration [%s]',
Please login to merge, or discard this patch.
src/Helper/Path.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
  * Class Path
53 53
  * @package Platine\Stdlib\Helper
54 54
  */
55
-class Path
56
-{
55
+class Path {
57 56
 
58 57
     /**
59 58
      * normalize the path by replace the "\" to "/"
Please login to merge, or discard this patch.
src/Helper/Env.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class Env
51 51
  * @package Platine\Stdlib\Helper
52 52
  */
53
-class Env
54
-{
53
+class Env {
55 54
 
56 55
     /**
57 56
      * Whether the application is running on CLI
Please login to merge, or discard this patch.
src/Helper/Xml.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class Xml
51 51
  * @package Platine\Stdlib\Helper
52 52
  */
53
-class Xml
54
-{
53
+class Xml {
55 54
 
56 55
     /**
57 56
      * Transform an XML string to array
Please login to merge, or discard this patch.
src/Helper/Composer.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
             return self::$classLoader;
75 75
         }
76 76
 
77
-        $autoloadFunctions = (array)spl_autoload_functions();
77
+        $autoloadFunctions = (array) spl_autoload_functions();
78 78
         foreach ($autoloadFunctions as $loader) {
79 79
             if (is_array($loader) && isset($loader[0])) {
80 80
                 $composerLoader = $loader[0];
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * Class Composer
54 54
  * @package Platine\Stdlib\Helper
55 55
  */
56
-class Composer
57
-{
56
+class Composer {
58 57
 
59 58
     /**
60 59
      * The composer class loader instance
Please login to merge, or discard this patch.
src/Helper/Unit.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         if (array_key_exists('unit', $matches)) {
68 68
             $unit = strtoupper($matches['unit']);
69 69
         }
70
-        return (int)(floatval($matches['size']) * pow(1024, $units[$unit]));
70
+        return (int) (floatval($matches['size']) * pow(1024, $units[$unit]));
71 71
     }
72 72
 
73 73
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class Unit
51 51
  * @package Platine\Stdlib\Helper
52 52
  */
53
-class Unit
54
-{
53
+class Unit {
55 54
 
56 55
     /**
57 56
      * Convert the size like 4G, 7T, 19B to byte
Please login to merge, or discard this patch.