Completed
Push — master ( e24a08...649c71 )
by Joshua
9s
created
src/Events/EventDispatcher.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,12 +96,12 @@
 block discarded – undo
96 96
         return null;
97 97
     }
98 98
 
99
-     /**
100
-     * Determines if registered listeners exist for an event name.
101
-     *
102
-     * @param   string  $eventName
103
-     * @return  bool
104
-     */
99
+        /**
100
+         * Determines if registered listeners exist for an event name.
101
+         *
102
+         * @param   string  $eventName
103
+         * @return  bool
104
+         */
105 105
     public function hasListeners($eventName)
106 106
     {
107 107
         return null !== $this->getListeners($eventName);
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * Adds an event listener.
23 23
      *
24 24
      * @param   string|array    $eventNames The event name(s) to listen for.
25
-     * @param   object          $listener   The event listener object.
25
+     * @param   EventSubscriberInterface          $listener   The event listener object.
26 26
      * @return  self
27 27
      * @throws  \InvalidArgumentException   If the listener does not contain the event method.
28 28
      */
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * Removes an event listener, if registered.
112 112
      *
113 113
      * @param   string|array    $eventNames The event name(s) to listen for.
114
-     * @param   object          $listener   The event listener object.
114
+     * @param   EventSubscriberInterface          $listener   The event listener object.
115 115
      * @return  self
116 116
      */
117 117
     public function removeListener($eventNames, $listener)
Please login to merge, or discard this patch.
src/Metadata/MetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
      * @param   EntityMetadata  &$metadata
265 265
      * @param   EntityMetadata  $toAdd
266 266
      */
267
-    private function mergeMetadata(EntityMetadata &$metadata = null, EntityMetadata $toAdd)
267
+    private function mergeMetadata(EntityMetadata & $metadata = null, EntityMetadata $toAdd)
268 268
     {
269 269
         if (null === $metadata) {
270 270
             $metadata = clone $toAdd;
Please login to merge, or discard this patch.
src/Metadata/Driver/YamlFileDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -236,8 +236,8 @@
 block discarded – undo
236 236
             if (isset($mapping['calculated']) && is_array($mapping['calculated'])) {
237 237
                 $calculated = $mapping['calculated'];
238 238
                 if (isset($calculated['class']) && isset($calculated['method'])) {
239
-                    $attribute->calculated['class']  =  $calculated['class'];
240
-                    $attribute->calculated['method'] =  $calculated['method'];
239
+                    $attribute->calculated['class']  = $calculated['class'];
240
+                    $attribute->calculated['method'] = $calculated['method'];
241 241
                 }
242 242
             }
243 243
 
Please login to merge, or discard this patch.
src/Search/ClientInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,6 @@
 block discarded – undo
45 45
     /**
46 46
      * Returns a set of autocomplete results for a model type, attribute key, and search value.
47 47
      *
48
-     * @param   string  $typeKey
49 48
      * @param   string  $attributeKey
50 49
      * @param   string  $searchValue
51 50
      * @return  AutocompleteResult[]
Please login to merge, or discard this patch.
src/Api/AbstractAdapter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     /**
89 89
      * {@inheritDoc}
90 90
      */
91
-    public function findQuery($typeKey, array $criteria, array $fields = [], array $sort = [], array $inclusions =[], $offset = 0, $limit = 0)
91
+    public function findQuery($typeKey, array $criteria, array $fields = [], array $sort = [], array $inclusions = [], $offset = 0, $limit = 0)
92 92
     {
93 93
         $collection = $this->getStore()->findQuery($typeKey, $criteria, $fields, $sort, $offset, $limit);
94 94
         $payload = $this->serializeCollection($collection);
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@
 block discarded – undo
278 278
     /**
279 279
      * Validates that the serialized value is support by a RestPayload.
280 280
      *
281
-     * @param   mixed   $serialized
281
+     * @param   string   $serialized
282 282
      * @return  bool
283 283
      * @throws  AdapterException    On invalid serialized value.
284 284
      */
Please login to merge, or discard this patch.
src/Api/AdapterInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      * @param   int         $limit      The number of Models to limit.
65 65
      * @return  Collection
66 66
      */
67
-    public function findQuery($typeKey, array $criteria, array $fields = [], array $sort = [], array $inclusions =[], $offset = 0, $limit = 0);
67
+    public function findQuery($typeKey, array $criteria, array $fields = [], array $sort = [], array $inclusions = [], $offset = 0, $limit = 0);
68 68
 
69 69
     /**
70 70
      * Creates a new model.
Please login to merge, or discard this patch.
src/Models/Model.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -167,6 +167,7 @@  discard block
 block discarded – undo
167 167
      *
168 168
      * Overloaded to support relationships.
169 169
      *
170
+     * @param string $key
170 171
      */
171 172
     public function get($key)
172 173
     {
@@ -412,6 +413,7 @@  discard block
 block discarded – undo
412 413
      * Sets a model property: an attribute value, a has-one model, or an entire has-many model collection.
413 414
      * Note: To push/remove a single Model into a has-many collection, or clear a collection, use @see push(), remove() and clear().
414 415
      *
416
+     * @param Model|null $value
415 417
      */
416 418
     public function set($key, $value)
417 419
     {
Please login to merge, or discard this patch.
src/Store/Store.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      * @todo    Add sorting and pagination (limit/skip).
108 108
      * @todo    Handle find all with identifiers.
109 109
      * @param   string  $typeKey        The model type.
110
-     * @param   array   $idenitifiers   The model identifiers (optional).
110
+     * @param   array   $identifiers   The model identifiers (optional).
111 111
      * @return  Collections\Collection
112 112
      */
113 113
     public function findAll($typeKey, array $identifiers = [])
@@ -374,7 +374,6 @@  discard block
 block discarded – undo
374 374
     /**
375 375
      * Loads a has-many embed collection.
376 376
      *
377
-     * @param   EmbeddedPropMetadata    $relMeta
378 377
      * @param   array|null              $embedDocs
379 378
      * @return  Collections\EmbedCollection
380 379
      */
@@ -625,7 +624,7 @@  discard block
 block discarded – undo
625 624
     /**
626 625
      * Converts the id value to a normalized string.
627 626
      *
628
-     * @param   mixed   $identenfier    The identifier to convert.
627
+     * @param   mixed   $identifier    The identifier to convert.
629 628
      * @return  string
630 629
      */
631 630
     protected function convertId($identifier)
Please login to merge, or discard this patch.