Completed
Push — master ( 5c6d51...c432d5 )
by Alexey
02:50
created
bin/subscriptions.revoke.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2015 Alexey Maslov <[email protected]>
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- * Script for Google API authorization
18
- * @author alxmsl
19
- */
3
+     * Copyright 2015 Alexey Maslov <[email protected]>
4
+     *
5
+     * Licensed under the Apache License, Version 2.0 (the "License");
6
+     * you may not use this file except in compliance with the License.
7
+     * You may obtain a copy of the License at
8
+     *
9
+     * http://www.apache.org/licenses/LICENSE-2.0
10
+     *
11
+     * Unless required by applicable law or agreed to in writing, software
12
+     * distributed under the License is distributed on an "AS IS" BASIS,
13
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+     * See the License for the specific language governing permissions and
15
+     * limitations under the License.
16
+     *
17
+     * Script for Google API authorization
18
+     * @author alxmsl
19
+     */
20 20
 
21 21
 include __DIR__ . '/../vendor/autoload.php';
22 22
 
Please login to merge, or discard this patch.
examples/gcm.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2015 Alexey Maslov <[email protected]>
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- * GCM message sending example
18
- * @author alxmsl
19
- * @date 5/28/13
20
- */
3
+     * Copyright 2015 Alexey Maslov <[email protected]>
4
+     *
5
+     * Licensed under the Apache License, Version 2.0 (the "License");
6
+     * you may not use this file except in compliance with the License.
7
+     * You may obtain a copy of the License at
8
+     *
9
+     * http://www.apache.org/licenses/LICENSE-2.0
10
+     *
11
+     * Unless required by applicable law or agreed to in writing, software
12
+     * distributed under the License is distributed on an "AS IS" BASIS,
13
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+     * See the License for the specific language governing permissions and
15
+     * limitations under the License.
16
+     *
17
+     * GCM message sending example
18
+     * @author alxmsl
19
+     * @date 5/28/13
20
+     */
21 21
 
22 22
 include '../vendor/autoload.php';
23 23
 
Please login to merge, or discard this patch.
examples/inappproducts.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
 use alxmsl\Google\AndroidPublisher\InAppProducts\Resource as InAppProductsResource;
26 26
 
27 27
 const PACKAGE_NAME = 'com.example.package',
28
-      ACCESS_TOKEN = '4CcE5s_T0keN',
29
-      PRODUCT_ID   = 'com.example.package.product.1';
28
+        ACCESS_TOKEN = '4CcE5s_T0keN',
29
+        PRODUCT_ID   = 'com.example.package.product.1';
30 30
 
31 31
 $Client = new Client();
32 32
 $Client->setPackage(PACKAGE_NAME)
Please login to merge, or discard this patch.
examples/products.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2015 Alexey Maslov <[email protected]>
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- * Purchases products example
18
- * @author alxmsl
19
- * @date 5/28/13
20
- */
3
+     * Copyright 2015 Alexey Maslov <[email protected]>
4
+     *
5
+     * Licensed under the Apache License, Version 2.0 (the "License");
6
+     * you may not use this file except in compliance with the License.
7
+     * You may obtain a copy of the License at
8
+     *
9
+     * http://www.apache.org/licenses/LICENSE-2.0
10
+     *
11
+     * Unless required by applicable law or agreed to in writing, software
12
+     * distributed under the License is distributed on an "AS IS" BASIS,
13
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+     * See the License for the specific language governing permissions and
15
+     * limitations under the License.
16
+     *
17
+     * Purchases products example
18
+     * @author alxmsl
19
+     * @date 5/28/13
20
+     */
21 21
 
22 22
 include '../vendor/autoload.php';
23 23
 
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
 use alxmsl\Google\AndroidPublisher\Purchases\Products\Resource as ProductsResource;
26 26
 
27 27
 const PACKAGE_NAME   = 'com.example.package',
28
-      ACCESS_TOKEN   = '4CcE5s_T0keN',
29
-      PRODUCT_ID     = 'com.example.package.product.1',
30
-      PURCHASE_TOKEN = 'puRCH45e_tokEN';
28
+        ACCESS_TOKEN   = '4CcE5s_T0keN',
29
+        PRODUCT_ID     = 'com.example.package.product.1',
30
+        PURCHASE_TOKEN = 'puRCH45e_tokEN';
31 31
 
32 32
 $Client = new Client();
33 33
 $Client->setPackage(PACKAGE_NAME)
Please login to merge, or discard this patch.
examples/subscriptions.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
 use alxmsl\Google\AndroidPublisher\Purchases\Subscriptions\SubscriptionsClient;
26 26
 
27 27
 const PACKAGE_NAME    = 'com.example.package',
28
-      ACCESS_TOKEN    = '4CcE5s_T0keN',
29
-      SUBSCRIPTION_ID = 'com.example.package.product.1',
30
-      PURCHASE_TOKEN  = 'puRCH45e_tokEN';
28
+        ACCESS_TOKEN    = '4CcE5s_T0keN',
29
+        SUBSCRIPTION_ID = 'com.example.package.product.1',
30
+        PURCHASE_TOKEN  = 'puRCH45e_tokEN';
31 31
 
32 32
 $Client = new SubscriptionsClient();
33 33
 $Client->setPackage(PACKAGE_NAME)
Please login to merge, or discard this patch.
examples/webclient.authorize.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
 // Define client identification
28 28
 const CLIENT_ID     = 'my-client@id',
29
-      CLIENT_SECRET = 'clientsecret';
29
+        CLIENT_SECRET = 'clientsecret';
30 30
 
31 31
 // Create new client
32 32
 $Client = new WebServerApplication();
Please login to merge, or discard this patch.
examples/webclient.uri.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright 2015 Alexey Maslov <[email protected]>
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- * Google web server authorization uri example
18
- * @author alxmsl
19
- * @date 1/24/13
20
- */
3
+     * Copyright 2015 Alexey Maslov <[email protected]>
4
+     *
5
+     * Licensed under the Apache License, Version 2.0 (the "License");
6
+     * you may not use this file except in compliance with the License.
7
+     * You may obtain a copy of the License at
8
+     *
9
+     * http://www.apache.org/licenses/LICENSE-2.0
10
+     *
11
+     * Unless required by applicable law or agreed to in writing, software
12
+     * distributed under the License is distributed on an "AS IS" BASIS,
13
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+     * See the License for the specific language governing permissions and
15
+     * limitations under the License.
16
+     *
17
+     * Google web server authorization uri example
18
+     * @author alxmsl
19
+     * @date 1/24/13
20
+     */
21 21
 
22 22
 include '../vendor/autoload.php';
23 23
 
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
 // Define client identification
28 28
 const CLIENT_ID     = 'my-client@id',
29
-      CLIENT_SECRET = 'clientsecret',
30
-      REDIRECT_URI  = 'http://example.com/oauth2callback';
29
+        CLIENT_SECRET = 'clientsecret',
30
+        REDIRECT_URI  = 'http://example.com/oauth2callback';
31 31
 
32 32
 // Create new client
33 33
 $Client = new WebServerApplication();
Please login to merge, or discard this patch.
source/AndroidPublisher/InAppProducts/Resource.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
     type:     %s
195 195
     sku:      %s
196 196
     status:   %s
197
-EOD;
197
+eod;
198 198
         return sprintf($format
199 199
             , $this->getDefaultLanguage()
200 200
             , $this->getPackageName()
Please login to merge, or discard this patch.
source/AndroidPublisher/Purchases/Client.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
      * API client code
38 38
      */
39 39
     const TYPE_PRODUCTS      = 0,
40
-          TYPE_SUBSCRIPTIONS = 1;
40
+            TYPE_SUBSCRIPTIONS = 1;
41 41
 
42 42
     /**
43 43
      * Google Purchases API uri parts
44 44
      */
45 45
     const URI_PRODUCTS      = 'products',
46
-          URI_SUBSCRIPTIONS = 'subscriptions';
46
+            URI_SUBSCRIPTIONS = 'subscriptions';
47 47
 
48 48
     /**
49 49
      * GooglePlay Purchases Products API endpoint
Please login to merge, or discard this patch.