From 2cb6f19283a72035c6ebdd732450d16be07e6ea7 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 25 Feb 2017 12:07:04 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/Struct.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Struct.php b/tests/Struct.php index 664ae77..c298f86 100644 --- a/tests/Struct.php +++ b/tests/Struct.php @@ -23,13 +23,14 @@ class Struct * Istantiates the PHPStruct class in a static variable * * @param $format Format string - * */ - public static function constructor() { + public static function constructor() + { if (self::$struct == null) { self::$struct = new \danog\PHP\StructTools(); } } + /** * pack. * @@ -43,6 +44,7 @@ class Struct public static function pack($format, ...$data) { self::constructor(); + return self::$struct->pack($format, ...$data); } @@ -59,6 +61,7 @@ class Struct public static function unpack($format, $data) { self::constructor(); + return self::$struct->unpack($format, $data); }