Test Failed
Branch lab/data (a414ec)
by Gabor
07:41
created
src/WebHemi/StringLib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $parts = explode('#', $input);
43 43
         array_walk(
44 44
             $parts,
45
-            function (&$value) {
45
+            function(&$value) {
46 46
                 $value = ucfirst(strtolower($value));
47 47
             }
48 48
         );
Please login to merge, or discard this patch.
src/WebHemi/GeneralLib.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public static function mergeArrayOverwrite()
71 71
     {
72 72
         if (func_num_args() < 2) {
73
-            throw new InvalidArgumentException(__CLASS__ . '::' . __METHOD__ . ' needs two or more array arguments');
73
+            throw new InvalidArgumentException(__CLASS__.'::'.__METHOD__.' needs two or more array arguments');
74 74
         }
75 75
         $arrays = func_get_args();
76 76
         $merged = [];
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         while ($arrays) {
79 79
             $array = array_shift($arrays);
80 80
             if (!is_array($array)) {
81
-                throw new InvalidArgumentException(__CLASS__ . '::' . __METHOD__ . ' encountered a non array argument');
81
+                throw new InvalidArgumentException(__CLASS__.'::'.__METHOD__.' encountered a non array argument');
82 82
             }
83 83
             if (!$array) {
84 84
                 continue;
Please login to merge, or discard this patch.
src/WebHemi/Data/Storage/ApplicationStorage.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 namespace WebHemi\Data\Storage;
15 15
 
16
-use WebHemi\Data\Query\QueryInterface;
17
-use WebHemi\Data\Entity\EntitySet;
18 16
 use WebHemi\Data\Entity\ApplicationEntity;
17
+use WebHemi\Data\Entity\EntitySet;
18
+use WebHemi\Data\Query\QueryInterface;
19 19
 
20 20
 /**
21 21
  * Class ApplicationStorage.
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
22 22
  */
23 23
 class ApplicationStorage extends AbstractStorage
24 24
 {
25
-     /**
26
-     * Returns every Application entity.
27
-     *
28
-     * @param int $limit
29
-     * @param int $offset
30
-     * @return EntitySet
31
-     */
25
+        /**
26
+         * Returns every Application entity.
27
+         *
28
+         * @param int $limit
29
+         * @param int $offset
30
+         * @return EntitySet
31
+         */
32 32
     public function getApplicationList(
33 33
         int $limit = QueryInterface::MAX_ROW_LIMIT,
34 34
         int $offset = 0
Please login to merge, or discard this patch.
src/WebHemi/Data/Storage/FilesystemStorage.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 
16 16
 use WebHemi\Data\Entity\EntitySet;
17 17
 use WebHemi\Data\Entity\FilesystemCategoryEntity;
18
-use WebHemi\Data\Entity\FilesystemDirectoryEntity;
19 18
 use WebHemi\Data\Entity\FilesystemDirectoryDataEntity;
19
+use WebHemi\Data\Entity\FilesystemDirectoryEntity;
20 20
 use WebHemi\Data\Entity\FilesystemDocumentEntity;
21 21
 use WebHemi\Data\Entity\FilesystemEntity;
22 22
 use WebHemi\Data\Entity\FilesystemMetaEntity;
Please login to merge, or discard this patch.
src/WebHemi/Data/Storage/UserStorage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
      * @param int $identifier
176 176
      * @param int $limit
177 177
      * @param int $offset
178
-     * @return array
178
+     * @return \WebHemi\Data\Entity\ApplicationEntity
179 179
      */
180 180
     public function getSimpleUserMetaListByUser(
181 181
         int $identifier,
Please login to merge, or discard this patch.
src/WebHemi/Renderer/Helper/GetDatesHelper.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 namespace WebHemi\Renderer\Helper;
15 15
 
16 16
 use WebHemi\Data\Entity;
17
-use WebHemi\Data\Storage\FilesystemStorage;
18 17
 use WebHemi\Data\Storage\ApplicationStorage;
18
+use WebHemi\Data\Storage\FilesystemStorage;
19 19
 use WebHemi\DateTime;
20 20
 use WebHemi\Environment\ServiceInterface as EnvironmentInterface;
21 21
 use WebHemi\Renderer\HelperInterface;
Please login to merge, or discard this patch.
src/WebHemi/DependencyInjection/ServiceAdapter/Base/ServiceAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         // Create new instance.
106 106
         $className = $this->serviceLibrary[$identifier][self::SERVICE_CLASS];
107 107
         $reflectionClass = new ReflectionClass($className);
108
-        $serviceInstance =  $reflectionClass->newInstanceArgs($argumentList);
108
+        $serviceInstance = $reflectionClass->newInstanceArgs($argumentList);
109 109
 
110 110
         // Perform post init method calls.
111 111
         foreach ($this->serviceLibrary[$identifier][self::SERVICE_METHOD_CALL] as $methodCallList) {
Please login to merge, or discard this patch.
src/WebHemi/Data/Entity/AbstractEntity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         foreach ($arrayData as $key => $value) {
46 46
             if (!array_key_exists($key, $this->container)) {
47 47
                 throw new InvalidArgumentException(
48
-                    sprintf('"%s" is not defined in ' . get_called_class(), $key),
48
+                    sprintf('"%s" is not defined in '.get_called_class(), $key),
49 49
                     1000
50 50
                 );
51 51
             }
Please login to merge, or discard this patch.