Completed
Pull Request — master (#196)
by
unknown
02:18
created
lib/Alcaeus/MongoDbAdapter/TypeConverter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             case is_object($value);
48 48
                 $result = [];
49 49
 
50
-                foreach ((array)$value as $key => $item) {
50
+                foreach ((array) $value as $key => $item) {
51 51
                     $result[$key] = self::fromLegacy($item);
52 52
                 }
53 53
 
@@ -103,16 +103,16 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public static function convertProjection($fields)
105 105
     {
106
-        if (! is_array($fields) || $fields === []) {
106
+        if ( ! is_array($fields) || $fields === []) {
107 107
             return [];
108 108
         }
109 109
 
110
-        if (! TypeConverter::isNumericArray($fields)) {
110
+        if ( ! TypeConverter::isNumericArray($fields)) {
111 111
             $projection = TypeConverter::fromLegacy($fields);
112 112
         } else {
113 113
             $projection = array_fill_keys(
114
-                array_map(function ($field) {
115
-                    if (!is_string($field)) {
114
+                array_map(function($field) {
115
+                    if ( ! is_string($field)) {
116 116
                         throw new \MongoException('field names must be strings', 8);
117 117
                     }
118 118
 
Please login to merge, or discard this patch.