Completed
Branch develop (4c3bc4)
by Filipe
02:38
created
src/ContainerBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     private function applyDefinitions()
82 82
     {
83
-        foreach($this->definitions as $name => $entry) {
83
+        foreach ($this->definitions as $name => $entry) {
84 84
             if (
85 85
                 is_string($entry) &&
86 86
                 preg_match('/^@(?P<key>.*)$/i', $entry, $result)
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         }
113 113
 
114 114
         throw new InvalidArgumentException(
115
-            "Definitions file not found or invalid. Cannot create ".
115
+            "Definitions file not found or invalid. Cannot create " .
116 116
             "container builder."
117 117
         );
118 118
     }
Please login to merge, or discard this patch.
src/Definition/DefinitionList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     {
47 47
         if (!($value instanceof DefinitionInterface)) {
48 48
             throw new InvalidArgumentException(
49
-                "Trying to add an object to definition list that does ".
49
+                "Trying to add an object to definition list that does " .
50 50
                 "not implement 'DefinitionInterface'."
51 51
             );
52 52
         }
Please login to merge, or discard this patch.
src/Definition/Object.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     {
144 144
         if (!$this->getClassMetaData()->hasMethod($name)) {
145 145
             throw new InvalidArgumentException(
146
-                "The method {$name} does not exists in class ".
146
+                "The method {$name} does not exists in class " .
147 147
                 "{$this->getClassName()}"
148 148
             );
149 149
         }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     {
165 165
         if (!$this->getClassMetaData()->hasProperty($name)) {
166 166
             throw new InvalidArgumentException(
167
-                "The property {$name} does not exists in class ".
167
+                "The property {$name} does not exists in class " .
168 168
                 "{$this->getClassName()}"
169 169
             );
170 170
         }
Please login to merge, or discard this patch.
src/DependencyInspector/PropertiesInspector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,8 +156,8 @@
 block discarded – undo
156 156
 
157 157
         if (!$container->has($id)) {
158 158
             throw new NotFoundException(
159
-                "The property {$property} has annotation '@inject' but ".
160
-                "current container has no correspondent entry for ".
159
+                "The property {$property} has annotation '@inject' but " .
160
+                "current container has no correspondent entry for " .
161 161
                 "the type or key entered."
162 162
             );
163 163
         }
Please login to merge, or discard this patch.
src/DependencyInspector/MethodsInspector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@
 block discarded – undo
64 64
             $params = $this->checkParameters($params);
65 65
             if (!$params && $isInjectable) {
66 66
                 throw new NotFoundException(
67
-                    "The method {$name} has annotation '@inject' but ".
68
-                    "current container has no correspondent entry for ".
67
+                    "The method {$name} has annotation '@inject' but " .
68
+                    "current container has no correspondent entry for " .
69 69
                     "at least one of its parameters."
70 70
                 );
71 71
             }
Please login to merge, or discard this patch.
src/Container.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     {
80 80
         if (!$this->has($id)) {
81 81
             throw new NotFoundException(
82
-                "There is no entry with '{$id}' name in the ".
82
+                "There is no entry with '{$id}' name in the " .
83 83
                 "dependency container."
84 84
             );
85 85
         }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $definition, $value = null, array $parameters = [],
135 135
         $scope = Scope::SINGLETON)
136 136
     {
137
-        if (! $definition instanceof DefinitionInterface) {
137
+        if (!$definition instanceof DefinitionInterface) {
138 138
             if (is_callable($value)) {
139 139
                 $value = $this->createFactoryDefinition(
140 140
                     (string) $definition,
Please login to merge, or discard this patch.