Completed
Branch feature/travis (84ae33)
by Pavel
03:52
created
src/Bankiru/Api/Doctrine/Hydration/EntityHydrator.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,8 +123,8 @@
 block discarded – undo
123 123
                 $targetIdName   = array_shift($targetIdsNames);
124 124
                 $type           =
125 125
                     $this->manager->getConfiguration()
126
-                                  ->getTypeRegistry()
127
-                                  ->get($targetMetadata->getTypeOfField($targetIdName));
126
+                                    ->getTypeRegistry()
127
+                                    ->get($targetMetadata->getTypeOfField($targetIdName));
128 128
                 $identifiers    = [$targetIdName => $type->fromApiValue($value)];
129 129
             }
130 130
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
                     $this->manager->getConfiguration()
126 126
                                   ->getTypeRegistry()
127 127
                                   ->get($targetMetadata->getTypeOfField($targetIdName));
128
-                $identifiers    = [$targetIdName => $type->fromApiValue($value)];
128
+                $identifiers = [$targetIdName => $type->fromApiValue($value)];
129 129
             }
130 130
 
131 131
             return $targetPersister->getToOneEntity($mapping, $entity, $identifiers);
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Type/DateTimeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /** {@inheritdoc} */
14 14
     public function toApiValue($value, array $options = [])
15 15
     {
16
-        if (! $value instanceof \DateTime) {
16
+        if (!$value instanceof \DateTime) {
17 17
             $value = new \DateTime($value);
18 18
         }
19 19
 
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Utility/IdentifierFlattener.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,11 +75,11 @@
 block discarded – undo
75 75
                 if ($this->unitOfWork->isInIdentityMap($id[$field])) {
76 76
                     $associatedId =
77 77
                         $this->flattenIdentifier($targetClassMetadata,
78
-                                                 $this->unitOfWork->getEntityIdentifier($id[$field]));
78
+                                                    $this->unitOfWork->getEntityIdentifier($id[$field]));
79 79
                 } else {
80 80
                     $associatedId =
81 81
                         $this->flattenIdentifier($targetClassMetadata,
82
-                                                 $targetClassMetadata->getIdentifierValues($id[$field]));
82
+                                                    $targetClassMetadata->getIdentifierValues($id[$field]));
83 83
                 }
84 84
 
85 85
                 $flatId[$field] = implode(' ', $associatedId);
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Utility/ReflectionPropertiesGetter.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -106,12 +106,12 @@
 block discarded – undo
106 106
 
107 107
         return array_filter(
108 108
             array_filter(array_map(
109
-                             [$this, 'getAccessibleProperty'],
110
-                             array_combine(
111
-                                 array_map([$this, 'getLogicalName'], $properties),
112
-                                 $properties
113
-                             )
114
-                         )),
109
+                                [$this, 'getAccessibleProperty'],
110
+                                array_combine(
111
+                                    array_map([$this, 'getLogicalName'], $properties),
112
+                                    $properties
113
+                                )
114
+                            )),
115 115
             [$this, 'isInstanceProperty']
116 116
         );
117 117
     }
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Proxy/ProxyFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $wakeupProxy = $classMetadata->getReflectionClass()->hasMethod('__wakeup');
91 91
 
92
-        return function (Proxy $proxy) use ($classMetadata, $wakeupProxy, $persister) {
92
+        return function(Proxy $proxy) use ($classMetadata, $wakeupProxy, $persister) {
93 93
             $initializer = $proxy->__getInitializer();
94 94
             $cloner      = $proxy->__getCloner();
95 95
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     private function createCloner(ApiMetadata $classMetadata, ApiPersister $persister)
132 132
     {
133
-        return function (Proxy $proxy) use ($classMetadata, $persister) {
133
+        return function(Proxy $proxy) use ($classMetadata, $persister) {
134 134
             if ($proxy->__isInitialized()) {
135 135
                 return;
136 136
             }
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Persister/EntityPersister.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,10 +72,10 @@
 block discarded – undo
72 72
      * @todo Check identity map? loadById method? Try to guess whether $criteria is the id?
73 73
      */
74 74
     public function load(array $criteria,
75
-                         $entity = null,
76
-                         $assoc = null,
77
-                         $limit = null,
78
-                         array $orderBy = null);
75
+                            $entity = null,
76
+                            $assoc = null,
77
+                            $limit = null,
78
+                            array $orderBy = null);
79 79
 
80 80
     /**
81 81
      * Loads an entity by identifier.
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Mapping/Driver/YmlMetadataDriver.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,7 @@
 block discarded – undo
87 87
             if (array_key_exists('entityPath', $element['client'])) {
88 88
                 $pathSeparator  =
89 89
                     array_key_exists('entityPathSeparator', $element['client']) ?
90
-                        $element['client']['entityPathSeparator'] :
91
-                        null;
90
+                        $element['client']['entityPathSeparator'] : null;
92 91
                 $methodProvider = new EntityMethodProvider($element['client']['entityPath'], $pathSeparator);
93 92
             }
94 93
 
Please login to merge, or discard this patch.