Completed
Push — master ( a469e2...7174c0 )
by Robin
08:53
created
src/XML/QueryDiscoverResponse.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	 *
34 34
 	 * @param string $href
35 35
 	 * @param BasicSearchSchema|null $schema
36
-	 * @param null|int|string $httpStatus
36
+	 * @param integer $httpStatus
37 37
 	 */
38 38
 	function __construct($href, BasicSearchSchema $schema = null, $httpStatus = null) {
39 39
 		parent::__construct($href, [], $httpStatus);
Please login to merge, or discard this patch.
src/DAV/QueryParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,18 +43,18 @@
 block discarded – undo
43 43
 			'{DAV:}searchrequest' => Element\KeyValue::class,
44 44
 			'{DAV:}query-schema-discovery' => Element\KeyValue::class,
45 45
 			'{DAV:}basicsearch' => BasicSearch::class,
46
-			'{DAV:}select' => function (Reader $reader) {
46
+			'{DAV:}select' => function(Reader $reader) {
47 47
 				return \Sabre\Xml\Deserializer\keyValue($reader, '{DAV:}scope')['{DAV:}prop'];
48 48
 			},
49
-			'{DAV:}from' => function (Reader $reader) {
49
+			'{DAV:}from' => function(Reader $reader) {
50 50
 				return \Sabre\Xml\Deserializer\repeatingElements($reader, '{DAV:}scope');
51 51
 			},
52
-			'{DAV:}orderby' => function (Reader $reader) {
52
+			'{DAV:}orderby' => function(Reader $reader) {
53 53
 				return \Sabre\Xml\Deserializer\repeatingElements($reader, '{DAV:}order');
54 54
 			},
55 55
 			'{DAV:}scope' => Scope::class,
56
-			'{DAV:}where' => function (Reader $reader) {
57
-				$operators = array_map(function ($element) {
56
+			'{DAV:}where' => function(Reader $reader) {
57
+				$operators = array_map(function($element) {
58 58
 					return $element['value'];
59 59
 				}, $reader->parseGetElements());
60 60
 				return (isset($operators[0])) ? $operators[0] : null;
Please login to merge, or discard this patch.
src/XML/PropDesc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 		if ($this->selectable) {
49 49
 			$data['{DAV:}selectable'] = null;
50 50
 		}
51
-		$writer->write(array_map(function ($propName) {
51
+		$writer->write(array_map(function($propName) {
52 52
 			return [
53 53
 				'name' => '{DAV:}prop',
54 54
 				'value' => $propName
Please login to merge, or discard this patch.
src/DAV/DiscoverHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 		/** @var BasicSearch $query */
62 62
 		$query = $xml['{DAV:}basicsearch'];
63 63
 		$scopes = $query->from;
64
-		$results = array_map(function (Scope $scope) {
64
+		$results = array_map(function(Scope $scope) {
65 65
 			$scope->path = $this->pathHelper->getPathFromUri($scope->href);
66 66
 			if ($this->searchBackend->isValidScope($scope->href, $scope->depth, $scope->path)) {
67 67
 				$searchProperties = $this->searchBackend->getPropertyDefinitionsForScope($scope->href, $scope->path);
Please login to merge, or discard this patch.
src/DAV/SearchHandler.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
 	/**
127 127
 	 * @param \SearchDAV\XML\Operator $operator
128
-	 * @param array $allProps
128
+	 * @param SearchPropertyDefinition[] $allProps
129 129
 	 * @return Operator
130 130
 	 * @throws BadRequest
131 131
 	 */
@@ -160,9 +160,9 @@  discard block
 block discarded – undo
160 160
 	 * If a depth of 1 is requested child elements will also be returned.
161 161
 	 *
162 162
 	 * @param SearchResult[] $results
163
-	 * @param array $propertyNames
163
+	 * @param string[] $propertyNames
164 164
 	 * @param int $depth
165
-	 * @return \Iterator
165
+	 * @return \Traversable
166 166
 	 */
167 167
 	private function getPropertiesIteratorResults($results, $propertyNames = [], $depth = 0) {
168 168
 		$propFindType = $propertyNames ? PropFind::NORMAL : PropFind::ALLPROPS;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	 * @throws BadRequest
98 98
 	 */
99 99
 	private function getQueryForXML(BasicSearch $xml, array $allProps) {
100
-		$orderBy = array_map(function (\SearchDAV\XML\Order $order) use ($allProps) {
100
+		$orderBy = array_map(function(\SearchDAV\XML\Order $order) use ($allProps) {
101 101
 			if (!isset($allProps[$order->property])) {
102 102
 				throw new BadRequest('requested order by property is not a valid property for this scope');
103 103
 			}
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 			}
108 108
 			return new Order($prop, $order->order);
109 109
 		}, $xml->orderBy);
110
-		$select = array_map(function ($propName) use ($allProps) {
110
+		$select = array_map(function($propName) use ($allProps) {
111 111
 			if (!isset($allProps[$propName])) {
112 112
 				return;
113 113
 			}
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	 * @throws BadRequest
132 132
 	 */
133 133
 	private function transformOperator(\SearchDAV\XML\Operator $operator, array $allProps) {
134
-		$arguments = array_map(function ($argument) use ($allProps) {
134
+		$arguments = array_map(function($argument) use ($allProps) {
135 135
 			if (is_string($argument)) {
136 136
 				if (!isset($allProps[$argument])) {
137 137
 					throw new BadRequest('requested search property is not a valid property for this scope');
Please login to merge, or discard this patch.
src/XML/Operator.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@
 block discarded – undo
73 73
 					$operator->arguments[] = $argument['value'];
74 74
 				}
75 75
 			} else {
76
-			       if (!$reader->read()) {
77
-                			break;
78
-            		       }
76
+				   if (!$reader->read()) {
77
+							break;
78
+						   }
79 79
 			}
80 80
 		} while ($reader->nodeType !== Reader::END_ELEMENT);
81 81
 
Please login to merge, or discard this patch.