Completed
Pull Request — master (#12)
by Christopher
04:23
created
src/POData/Common/Messages/resourceAssociationSet.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@
 block discarded – undo
3 3
 trait resourceAssociationSet
4 4
 {
5 5
 /**
6
-     * Format a message to show error when target resource property
7
-     * argument is not null or instance of ResourceProperty.
8
-     *
9
-     * @param string $argumentName The name of the target resource property argument
10
-     *
11
-     * @return string The formatted message
12
-     */
6
+ * Format a message to show error when target resource property
7
+ * argument is not null or instance of ResourceProperty.
8
+ *
9
+ * @param string $argumentName The name of the target resource property argument
10
+ *
11
+ * @return string The formatted message
12
+ */
13 13
     public static function resourceAssociationSetPropertyMustBeNullOrInstanceofResourceProperty($argumentName)
14 14
     {
15 15
         return "The argument '$argumentName' must be either null or instance of 'ResourceProperty";
Please login to merge, or discard this patch.
src/POData/Common/Messages/queryProvider.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@
 block discarded – undo
6 6
 trait queryProvider
7 7
 {
8 8
 /**
9
-     * @param string $methodName method name
10
-     *
11
-     * @return string The message
12
-     */
9
+ * @param string $methodName method name
10
+ *
11
+ * @return string The message
12
+ */
13 13
     public static function queryProviderReturnsNonQueryResult($methodName)
14 14
     {
15 15
         return "The implementation of the method $methodName must return a QueryResult instance.";
Please login to merge, or discard this patch.
src/POData/Common/Messages/request.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@
 block discarded – undo
5 5
 trait request
6 6
 {
7 7
 /**
8
-     * Format a message to show error when client requested version is
9
-     * lower than the version required to intercept the response.
10
-     *
11
-     * @param string $requestedVersion The client requested version
12
-     * @param string $requiredVersion  The minimum version required to
13
-     *                                 intercept the response
14
-     *
15
-     * @return string The formatted message
16
-     */
8
+ * Format a message to show error when client requested version is
9
+ * lower than the version required to intercept the response.
10
+ *
11
+ * @param string $requestedVersion The client requested version
12
+ * @param string $requiredVersion  The minimum version required to
13
+ *                                 intercept the response
14
+ *
15
+ * @return string The formatted message
16
+ */
17 17
     public static function requestVersionTooLow($requestedVersion, $requiredVersion)
18 18
     {
19 19
         return "Request version '$requestedVersion' is not supported for the request payload. The only supported version is '$requiredVersion'.";
Please login to merge, or discard this patch.
src/POData/Common/Messages/streamProviderWrapper.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 trait streamProviderWrapper
5 5
 {
6 6
 /**
7
-     * Message to show error when IStreamProvider.GetStreamETag returns invalid etag value.
8
-     *
9
-     * @return string The message
10
-     */
7
+ * Message to show error when IStreamProvider.GetStreamETag returns invalid etag value.
8
+ *
9
+ * @return string The message
10
+ */
11 11
     public static function streamProviderWrapperGetStreamETagReturnedInvalidETagFormat()
12 12
     {
13 13
         return 'The method \'IStreamProvider.GetStreamETag\' returned an entity tag with invalid format.';
Please login to merge, or discard this patch.
src/POData/Common/Messages/http.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 trait http
7 7
 {
8
- /**
8
+    /**
9 9
      * Message to show error when baseUrl given in service.config.xml is invalid.
10 10
      *
11 11
      * @param bool $notEndWithSvcOrHasQuery Base url end with svc or not
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
     }
37 37
 
38 38
 /**
39
-     * Message to show error when data service found a request method other than GET.
40
-     *
41
-     * @param HTTPRequestMethod $method Request method
42
-     *
43
-     * @return string The formatted message
44
-     */
39
+ * Message to show error when data service found a request method other than GET.
40
+ *
41
+ * @param HTTPRequestMethod $method Request method
42
+ *
43
+ * @return string The formatted message
44
+ */
45 45
     public static function onlyReadSupport(HTTPRequestMethod $method)
46 46
     {
47 47
         return "This release of library support only GET (read) request, received a request with method $method";
Please login to merge, or discard this patch.
src/POData/Common/Messages/resourceType.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
3 3
 
4 4
 trait resourceType{
5 5
 /**
6
-     * Format a message to show error when a tyring to set a
7
-     * base class for primitive type.
8
-     *
9
-     * @return string The message
10
-     */
6
+ * Format a message to show error when a tyring to set a
7
+ * base class for primitive type.
8
+ *
9
+ * @return string The message
10
+ */
11 11
     public static function resourceTypeNoBaseTypeForPrimitive()
12 12
     {
13 13
         return 'Primitive type cannot have base type';
Please login to merge, or discard this patch.
src/POData/Common/Messages/queryProcessor.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 trait queryProcessor
5 5
 {
6 6
 /**
7
-     * Message to show error when query prcocessor found
8
-     * invalid value for $format option.
9
-     *
10
-     * @return string The message
11
-     */
7
+ * Message to show error when query prcocessor found
8
+ * invalid value for $format option.
9
+ *
10
+ * @return string The message
11
+ */
12 12
     public static function queryProcessorInvalidValueForFormat()
13 13
     {
14 14
         return 'Invalid $format query option - the only acceptable values are "json" and "atom"';
Please login to merge, or discard this patch.
src/POData/Common/Messages/common.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,14 +3,14 @@
 block discarded – undo
3 3
 trait common
4 4
 {
5 5
 /**
6
-     * Format a message to show error when a non-integer value passed to
7
-     * a function, which expects integer parameter.
8
-     *
9
-     * @param mixed  $argument     The non-integer argument
10
-     * @param string $functionName The name of function
11
-     *
12
-     * @return string The formatted message
13
-     */
6
+ * Format a message to show error when a non-integer value passed to
7
+ * a function, which expects integer parameter.
8
+ *
9
+ * @param mixed  $argument     The non-integer argument
10
+ * @param string $functionName The name of function
11
+ *
12
+ * @return string The formatted message
13
+ */
14 14
     public static function commonArgumentShouldBeInteger($argument, $functionName)
15 15
     {
16 16
         return "The argument to the function '$functionName' should be integer, non-integer value '$argument' passed";
Please login to merge, or discard this patch.
src/POData/Common/Messages/skipTokenInfo.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -4,17 +4,17 @@
 block discarded – undo
4 4
 trait skipTokenInfo
5 5
 {
6 6
 /**
7
-     * Format a message to show error when one of the argument orderByPaths or
8
-     * orderByValues is set and not both.
9
-     *
10
-     * @param string $orderByPathsVarName  Name of the argument
11
-     *                                     holding orderByPathSegment
12
-     * @param string $orderByValuesVarName Name of the argument holding
13
-     *                                     skip token values corresponding
14
-     *                                     to orderby paths
15
-     *
16
-     * @return string The formatted message
17
-     */
7
+ * Format a message to show error when one of the argument orderByPaths or
8
+ * orderByValues is set and not both.
9
+ *
10
+ * @param string $orderByPathsVarName  Name of the argument
11
+ *                                     holding orderByPathSegment
12
+ * @param string $orderByValuesVarName Name of the argument holding
13
+ *                                     skip token values corresponding
14
+ *                                     to orderby paths
15
+ *
16
+ * @return string The formatted message
17
+ */
18 18
     public static function skipTokenInfoBothOrderByPathAndOrderByValuesShouldBeSetOrNotSet($orderByPathsVarName, $orderByValuesVarName)
19 19
     {
20 20
         return "Either both the arguments $orderByPathsVarName and $orderByValuesVarName should be null or not-null";
Please login to merge, or discard this patch.