Completed
Push — master ( 4a8896...30bfd7 )
by Filipe
02:12
created
src/Definition/ObjectDefinition.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *
103 103
      * @param array ...$arguments Arguments passed to object constructor
104 104
      *
105
-     * @return $this|Object|self
105
+     * @return ObjectDefinition
106 106
      */
107 107
     public function with(...$arguments)
108 108
     {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      *
124 124
      * @param array ...$arguments
125 125
      *
126
-     * @return self|Object
126
+     * @return ObjectDefinition
127 127
      */
128 128
     public function withConstructorArgument(...$arguments)
129 129
     {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      *
218 218
      * @param mixed $value
219 219
      *
220
-     * @return self|Object
220
+     * @return ObjectDefinition
221 221
      */
222 222
     public function assign($value)
223 223
     {
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      *
233 233
      * @param string $property
234 234
      *
235
-     * @return self|Object
235
+     * @return ObjectDefinition
236 236
      */
237 237
     public function to($property)
238 238
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      * @param string $name
257 257
      * @param mixed  $value
258 258
      *
259
-     * @return self|Object
259
+     * @return ObjectDefinition
260 260
      */
261 261
     public function assignProperty($name, $value)
262 262
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function __construct($className)
59 59
     {
60
-        if (! class_exists($className)) {
60
+        if (!class_exists($className)) {
61 61
             throw new ClassNotFoundException(
62
-                "The class '{$className}' does not exists or it cannot be " .
63
-                "loaded. Object definition therefore cannot be " .
62
+                "The class '{$className}' does not exists or it cannot be ".
63
+                "loaded. Object definition therefore cannot be ".
64 64
                 "created."
65 65
             );
66 66
         }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     public function callMethod($methodName, ...$arguments)
198 198
     {
199 199
 
200
-        if (! method_exists($this->definitionData->className, $methodName)) {
200
+        if (!method_exists($this->definitionData->className, $methodName)) {
201 201
             throw new MethodNotFoundException(
202 202
                 "The method '{$methodName}' is not defined in the class ".
203 203
                 "{$this->definitionData->className}"
@@ -236,9 +236,9 @@  discard block
 block discarded – undo
236 236
      */
237 237
     public function to($property)
238 238
     {
239
-        if (! property_exists($this->definitionData->className, $property)) {
239
+        if (!property_exists($this->definitionData->className, $property)) {
240 240
             throw new PropertyNotFoundException(
241
-                "The class '{$this->definitionData->className}' has no " .
241
+                "The class '{$this->definitionData->className}' has no ".
242 242
                 "property called '{$property}'."
243 243
             );
244 244
         }
Please login to merge, or discard this patch.
src/ObjectHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     {
74 74
         $annotations = $this->inspector->getMethodAnnotations($method);
75 75
 
76
-        if (! $annotations->hasAnnotation('@inject')) {
76
+        if (!$annotations->hasAnnotation('@inject')) {
77 77
             return;
78 78
         }
79 79
 
Please login to merge, or discard this patch.
src/ContainerBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     protected function hydrateContainer($definitions)
75 75
     {
76
-        if (! is_array($definitions)) {
76
+        if (!is_array($definitions)) {
77 77
             $this->hydrateFromFile($definitions);
78 78
             return;
79 79
         }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     protected function hydrateFromFile($definitions)
92 92
     {
93
-        if (! is_file($definitions)) {
93
+        if (!is_file($definitions)) {
94 94
             $this->hydrateFromDirectory($definitions);
95 95
             return;
96 96
         }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             $directory = new \RecursiveDirectoryIterator($definitions);
106 106
         } catch (\Exception $caught) {
107 107
             throw new InvalidDefinitionsPathException(
108
-                'Provided definitions path is not valid or is not found. ' .
108
+                'Provided definitions path is not valid or is not found. '.
109 109
                 'Could not create container. Please check '.$definitions
110 110
             );
111 111
         }
Please login to merge, or discard this patch.
src/Definition/Alias.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@
 block discarded – undo
51 51
      */
52 52
     public function resolve()
53 53
     {
54
-        if (! $this->container instanceof ContainerInterface) {
54
+        if (!$this->container instanceof ContainerInterface) {
55 55
             throw new ContainerNotSetException(
56
-                "No container was set for definition. " .
56
+                "No container was set for definition. ".
57 57
                 "It is not possible to look for alias '{$this->alias}'"
58 58
             );
59 59
         }
Please login to merge, or discard this patch.