Completed
Push — master ( 13eb4d...6f4a41 )
by Thomas
02:46
created
src/model/AbstractPhpStruct.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -160,11 +160,11 @@
 block discarded – undo
160 160
 	 * 
161 161
 	 * If the class has already been declared you get only the set alias.
162 162
 	 * 
163
- 	 * @param string      $qualifiedName
164
- 	 * @param null|string $alias
165
- 	 *
166
- 	 * @return string the used alias
167
- 	 */
163
+	 * @param string      $qualifiedName
164
+	 * @param null|string $alias
165
+	 *
166
+	 * @return string the used alias
167
+	 */
168 168
  	public function declareUse($qualifiedName, $alias = null)
169 169
 	{
170 170
  		$qualifiedName = trim($qualifiedName, '\\');
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -165,8 +165,7 @@
 block discarded – undo
165 165
  	 *
166 166
  	 * @return string the used alias
167 167
  	 */
168
- 	public function declareUse($qualifiedName, $alias = null)
169
-	{
168
+ 	public function declareUse($qualifiedName, $alias = null) {
170 169
  		$qualifiedName = trim($qualifiedName, '\\');
171 170
  		if (!$this->hasUseStatement($qualifiedName)) {
172 171
  			$this->addUseStatement($qualifiedName, $alias);
Please login to merge, or discard this patch.
src/model/PhpParameter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 		$docblock = new Docblock($ref->getDeclaringFunction());
65 65
 		
66 66
 		$params = $docblock->getTags('param');
67
-		$tag = $params->find($ref->name, function (ParamTag $t, $name) {
67
+		$tag = $params->find($ref->name, function(ParamTag $t, $name) {
68 68
 			return $t->getVariable() == '$' . $name;
69 69
 		});
70 70
 		
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	 */
124 124
 	public function getDocblockTag() {
125 125
 		return ParamTag::create()
126
-			->setType($this->getType() ?  : 'mixed')
126
+			->setType($this->getType() ?: 'mixed')
127 127
 			->setVariable($this->getName())
128 128
 			->setDescription($this->getTypeDescription());
129 129
 	}
Please login to merge, or discard this patch.