Completed
Push — master ( 276db7...0bd148 )
by Rakesh
07:30 queued 03:39
created
lib/Zend/Gdata/Calendar.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     public function getCalendarListFeed()
136 136
     {
137 137
         $uri = self::CALENDAR_FEED_URI . '/default';
138
-        return parent::getFeed($uri,'Zend_Gdata_Calendar_ListFeed');
138
+        return parent::getFeed($uri, 'Zend_Gdata_Calendar_ListFeed');
139 139
     }
140 140
 
141 141
     /**
@@ -154,10 +154,10 @@  discard block
 block discarded – undo
154 154
         } else {
155 155
             $uri = $location;
156 156
         }
157
-        return parent::getEntry($uri,'Zend_Gdata_Calendar_ListEntry');
157
+        return parent::getEntry($uri, 'Zend_Gdata_Calendar_ListEntry');
158 158
     }
159 159
 
160
-    public function insertEvent($event, $uri=null)
160
+    public function insertEvent($event, $uri = null)
161 161
     {
162 162
         if ($uri == null) {
163 163
             $uri = $this->_defaultPostUri;
Please login to merge, or discard this patch.
lib/Zend/Gdata/AuthSub.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 class Zend_Gdata_AuthSub
47 47
 {
48 48
 
49
-    const AUTHSUB_REQUEST_URI      = 'https://www.google.com/accounts/AuthSubRequest';
49
+    const AUTHSUB_REQUEST_URI = 'https://www.google.com/accounts/AuthSubRequest';
50 50
 
51 51
     const AUTHSUB_SESSION_TOKEN_URI = 'https://www.google.com/accounts/AuthSubSessionToken';
52 52
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
       * @param string $request_uri (optional) URI to which to direct the
77 77
       *                            authentication request.
78 78
       */
79
-     public static function getAuthSubTokenUri($next, $scope, $secure=0, $session=0,
79
+     public static function getAuthSubTokenUri($next, $scope, $secure = 0, $session = 0,
80 80
                                                $request_uri = self::AUTHSUB_REQUEST_URI)
81 81
      {
82 82
          $querystring = '?next=' . urlencode($next)
Please login to merge, or discard this patch.
lib/Zend/Gdata/Media/Extension/MediaThumbnail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $this->_url = $url;
78 78
         $this->_width = $width;
79 79
         $this->_height = $height;
80
-        $this->_time = $time ;
80
+        $this->_time = $time;
81 81
     }
82 82
 
83 83
     /**
Please login to merge, or discard this patch.
lib/Zend/Gdata/Media/Extension/MediaRestriction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * @param string $relationship
59 59
      * @param string $type
60 60
      */
61
-    public function __construct($text = null, $relationship = null,  $type = null)
61
+    public function __construct($text = null, $relationship = null, $type = null)
62 62
     {
63 63
         $this->registerAllNamespaces(Zend_Gdata_Media::$namespaces);
64 64
         parent::__construct();
Please login to merge, or discard this patch.
lib/Zend/Gdata/Media/Extension/MediaCredit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * @param string $role
59 59
      * @param string $scheme
60 60
      */
61
-    public function __construct($text = null, $role = null,  $scheme = null)
61
+    public function __construct($text = null, $role = null, $scheme = null)
62 62
     {
63 63
         $this->registerAllNamespaces(Zend_Gdata_Media::$namespaces);
64 64
         parent::__construct();
Please login to merge, or discard this patch.
lib/Zend/Gdata/Gapps.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * @throws Zend_Gdata_Gapps_ServiceException
196 196
      * @return Zend_Gdata_App_Feed
197 197
      */
198
-    public static function import($uri, $client = null, $className='Zend_Gdata_App_Feed', $useObjectMapping = true)
198
+    public static function import($uri, $client = null, $className = 'Zend_Gdata_App_Feed', $useObjectMapping = true)
199 199
     {
200 200
         try {
201 201
             return parent::import($uri, $client, $className, $useObjectMapping);
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
      * @throws Zend_Gdata_App_HttpException
907 907
      * @throws Zend_Gdata_Gapps_ServiceException
908 908
      */
909
-    public function createUser ($username, $givenName, $familyName, $password,
909
+    public function createUser($username, $givenName, $familyName, $password,
910 910
             $passwordHashFunction = null, $quotaLimitInMB = null) {
911 911
         $user = $this->newUserEntry();
912 912
         $user->login = $this->newLogin();
@@ -932,7 +932,7 @@  discard block
 block discarded – undo
932 932
      * @throws Zend_Gdata_App_InvalidArgumentException
933 933
      * @throws Zend_Gdata_App_HttpException
934 934
      */
935
-    public function retrieveUser ($username) {
935
+    public function retrieveUser($username) {
936 936
         $query = $this->newUserQuery($username);
937 937
         try {
938 938
             $user = $this->getUserEntry($query);
@@ -960,7 +960,7 @@  discard block
 block discarded – undo
960 960
      * @throws Zend_Gdata_App_HttpException
961 961
      * @throws Zend_Gdata_Gapps_ServiceException
962 962
      */
963
-    public function retrievePageOfUsers ($startUsername = null) {
963
+    public function retrievePageOfUsers($startUsername = null) {
964 964
         $query = $this->newUserQuery();
965 965
         $query->setStartUsername($startUsername);
966 966
         return $this->getUserFeed($query);
@@ -978,7 +978,7 @@  discard block
 block discarded – undo
978 978
      * @throws Zend_Gdata_App_HttpException
979 979
      * @throws Zend_Gdata_Gapps_ServiceException
980 980
      */
981
-    public function retrieveAllUsers () {
981
+    public function retrieveAllUsers() {
982 982
         return $this->retrieveAllEntriesForFeed($this->retrievePageOfUsers());
983 983
     }
984 984
 
@@ -1131,7 +1131,7 @@  discard block
 block discarded – undo
1131 1131
      * @throws Zend_Gdata_App_HttpException
1132 1132
      * @throws Zend_Gdata_Gapps_ServiceException
1133 1133
      */
1134
-    public function retrievePageOfNicknames ($startNickname = null) {
1134
+    public function retrievePageOfNicknames($startNickname = null) {
1135 1135
         $query = $this->newNicknameQuery();
1136 1136
         $query->setStartNickname($startNickname);
1137 1137
         return $this->getNicknameFeed($query);
@@ -1149,7 +1149,7 @@  discard block
 block discarded – undo
1149 1149
      * @throws Zend_Gdata_App_HttpException
1150 1150
      * @throws Zend_Gdata_Gapps_ServiceException
1151 1151
      */
1152
-    public function retrieveAllNicknames () {
1152
+    public function retrieveAllNicknames() {
1153 1153
         return $this->retrieveAllEntriesForFeed($this->retrievePageOfNicknames());
1154 1154
     }
1155 1155
 
@@ -1189,14 +1189,14 @@  discard block
 block discarded – undo
1189 1189
         $properties[$i]->value = $groupName;
1190 1190
         $i++;
1191 1191
 
1192
-        if($description != null) {
1192
+        if ($description != null) {
1193 1193
             $properties[$i] = $this->newProperty();
1194 1194
             $properties[$i]->name = 'description';
1195 1195
             $properties[$i]->value = $description;
1196 1196
             $i++;
1197 1197
         }
1198 1198
 
1199
-        if($emailPermission != null) {
1199
+        if ($emailPermission != null) {
1200 1200
             $properties[$i] = $this->newProperty();
1201 1201
             $properties[$i]->name = 'emailPermission';
1202 1202
             $properties[$i]->value = $emailPermission;
@@ -1278,7 +1278,7 @@  discard block
 block discarded – undo
1278 1278
             $results = false;
1279 1279
         }
1280 1280
 
1281
-        if($results) {
1281
+        if ($results) {
1282 1282
             return TRUE;
1283 1283
         } else {
1284 1284
             return FALSE;
@@ -1394,7 +1394,7 @@  discard block
 block discarded – undo
1394 1394
             $results = false;
1395 1395
         }
1396 1396
 
1397
-        if($results) {
1397
+        if ($results) {
1398 1398
             return TRUE;
1399 1399
         } else {
1400 1400
             return FALSE;
@@ -1437,21 +1437,21 @@  discard block
 block discarded – undo
1437 1437
         $properties[$i]->value = $groupId;
1438 1438
         $i++;
1439 1439
 
1440
-        if($groupName != null) {
1440
+        if ($groupName != null) {
1441 1441
             $properties[$i] = $this->newProperty();
1442 1442
             $properties[$i]->name = 'groupName';
1443 1443
             $properties[$i]->value = $groupName;
1444 1444
             $i++;
1445 1445
         }
1446 1446
 
1447
-        if($description != null) {
1447
+        if ($description != null) {
1448 1448
             $properties[$i] = $this->newProperty();
1449 1449
             $properties[$i]->name = 'description';
1450 1450
             $properties[$i]->value = $description;
1451 1451
             $i++;
1452 1452
         }
1453 1453
 
1454
-        if($emailPermission != null) {
1454
+        if ($emailPermission != null) {
1455 1455
             $properties[$i] = $this->newProperty();
1456 1456
             $properties[$i]->name = 'emailPermission';
1457 1457
             $properties[$i]->value = $emailPermission;
@@ -1479,7 +1479,7 @@  discard block
 block discarded – undo
1479 1479
     {
1480 1480
         $query = $this->newGroupQuery();
1481 1481
         $query->setMember($memberId);
1482
-        if($directOnly != null) {
1482
+        if ($directOnly != null) {
1483 1483
             $query->setDirectOnly($directOnly);
1484 1484
         }
1485 1485
         return $this->getGroupFeed($query);
@@ -1498,7 +1498,7 @@  discard block
 block discarded – undo
1498 1498
      * @throws Zend_Gdata_App_HttpException
1499 1499
      * @throws Zend_Gdata_Gapps_ServiceException
1500 1500
      */
1501
-    public function retrievePageOfGroups ($startGroup = null)
1501
+    public function retrievePageOfGroups($startGroup = null)
1502 1502
     {
1503 1503
         $query = $this->newGroupQuery();
1504 1504
         $query->setStartGroupId($startGroup);
@@ -1569,7 +1569,7 @@  discard block
 block discarded – undo
1569 1569
      * @throws Zend_Gdata_App_HttpException
1570 1570
      * @throws Zend_Gdata_Gapps_ServiceException
1571 1571
      */
1572
-    public function retrievePageOfEmailLists ($startNickname = null) {
1572
+    public function retrievePageOfEmailLists($startNickname = null) {
1573 1573
         $query = $this->newEmailListQuery();
1574 1574
         $query->setStartEmailListName($startNickname);
1575 1575
         return $this->getEmailListFeed($query);
@@ -1622,7 +1622,7 @@  discard block
 block discarded – undo
1622 1622
         $who = $this->newWho();
1623 1623
         $who->email = $recipientAddress;
1624 1624
         $entry->who = $who;
1625
-        $address = $this->getBaseUrl() .  self::APPS_EMAIL_LIST_PATH . '/' .
1625
+        $address = $this->getBaseUrl() . self::APPS_EMAIL_LIST_PATH . '/' .
1626 1626
             $emailList . self::APPS_EMAIL_LIST_RECIPIENT_POSTFIX . '/';
1627 1627
         return $this->insertEmailListRecipient($entry, $address);
1628 1628
     }
@@ -1642,7 +1642,7 @@  discard block
 block discarded – undo
1642 1642
      * @throws Zend_Gdata_App_HttpException
1643 1643
      * @throws Zend_Gdata_Gapps_ServiceException
1644 1644
      */
1645
-    public function retrievePageOfRecipients ($emailList,
1645
+    public function retrievePageOfRecipients($emailList,
1646 1646
             $startRecipient = null) {
1647 1647
         $query = $this->newEmailListRecipientQuery();
1648 1648
         $query->setEmailListName($emailList);
Please login to merge, or discard this patch.
lib/Zend/Gdata/HttpAdapterStreamingSocket.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $body = '')
61 61
     {
62 62
         // Make sure we're properly connected
63
-        if (! $this->socket) {
63
+        if (!$this->socket) {
64 64
             require_once 'Zend/Http/Client/Adapter/Exception.php';
65 65
             throw new Zend_Http_Client_Adapter_Exception(
66 66
                 'Trying to write but we are not connected');
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         // Send the headers over
90 90
         $request .= "\r\n";
91
-        if (! @fwrite($this->socket, $request)) {
91
+        if (!@fwrite($this->socket, $request)) {
92 92
             require_once 'Zend/Http/Client/Adapter/Exception.php';
93 93
             throw new Zend_Http_Client_Adapter_Exception(
94 94
                 'Error writing request to server');
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         //read from $body, write to socket
99 99
         $chunk = $body->read(self::CHUNK_SIZE);
100 100
         while ($chunk !== FALSE) {
101
-            if (! @fwrite($this->socket, $chunk)) {
101
+            if (!@fwrite($this->socket, $chunk)) {
102 102
                 require_once 'Zend/Http/Client/Adapter/Exception.php';
103 103
                 throw new Zend_Http_Client_Adapter_Exception(
104 104
                     'Error writing request to server');
Please login to merge, or discard this patch.
lib/Zend/Gdata/Analytics/AccountEntry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     protected function takeChildFromDOM($child)
79 79
     {
80 80
         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
81
-        switch ($absoluteNodeName){
81
+        switch ($absoluteNodeName) {
82 82
             case $this->lookupNamespace('analytics') . ':' . 'property';
83 83
                 $property = new Zend_Gdata_Analytics_Extension_Property();
84 84
                 $property->transferFromDOM($child);
Please login to merge, or discard this patch.
lib/Zend/Gdata/Analytics/DataQuery.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
     const DIMENSION_COUNTRY = 'ga:country';
49 49
     const DIMENSION_DATE = 'ga:date';
50 50
     const DIMENSION_DAY = 'ga:day';
51
-    const DIMENSION_DAYS_SINCE_LAST_VISIT= 'ga:daysSinceLastVisit';
51
+    const DIMENSION_DAYS_SINCE_LAST_VISIT = 'ga:daysSinceLastVisit';
52 52
     const DIMENSION_FLASH_VERSION = 'ga:flashVersion';
53 53
     const DIMENSION_HOSTNAME = 'ga:hostname';
54 54
     const DIMENSION_HOUR = 'ga:hour';
55
-    const DIMENSION_JAVA_ENABLED= 'ga:javaEnabled';
56
-    const DIMENSION_LANGUAGE= 'ga:language';
55
+    const DIMENSION_JAVA_ENABLED = 'ga:javaEnabled';
56
+    const DIMENSION_LANGUAGE = 'ga:language';
57 57
     const DIMENSION_LATITUDE = 'ga:latitude';
58 58
     const DIMENSION_LONGITUDE = 'ga:longitude';
59 59
     const DIMENSION_MONTH = 'ga:month';
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     const DIMENSION_OPERATING_SYSTEM_VERSION = 'ga:operatingSystemVersion';
64 64
     const DIMENSION_PAGE_DEPTH = 'ga:pageDepth';
65 65
     const DIMENSION_REGION = 'ga:region';
66
-    const DIMENSION_SCREEN_COLORS= 'ga:screenColors';
66
+    const DIMENSION_SCREEN_COLORS = 'ga:screenColors';
67 67
     const DIMENSION_SCREEN_RESOLUTION = 'ga:screenResolution';
68 68
     const DIMENSION_SUB_CONTINENT = 'ga:subContinent';
69 69
     const DIMENSION_USER_DEFINED_VALUE = 'ga:userDefinedValue';
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
     // D6. Navigation
112 112
     const DIMENSION_NEXT_PAGE_PATH = 'ga:nextPagePath';
113
-    const DIMENSION_PREV_PAGE_PATH= 'ga:previousPagePath';
113
+    const DIMENSION_PREV_PAGE_PATH = 'ga:previousPagePath';
114 114
 
115 115
     // D7. Events
116 116
     const DIMENSION_EVENT_CATEGORY = 'ga:eventCategory';
@@ -190,9 +190,9 @@  discard block
 block discarded – undo
190 190
     const GREATER_EQUAL = ">=";
191 191
     const LESS_EQUAL = "<=";
192 192
     const CONTAINS = "=@";
193
-    const CONTAINS_NOT ="!@";
194
-    const REGULAR ="=~";
195
-    const REGULAR_NOT ="!~";
193
+    const CONTAINS_NOT = "!@";
194
+    const REGULAR = "=~";
195
+    const REGULAR_NOT = "!~";
196 196
     
197 197
     /**
198 198
      * @var string
@@ -331,10 +331,10 @@  discard block
 block discarded – undo
331 331
      * @param boolean[optional] $descending
332 332
      * @return Zend_Gdata_Analytics_DataQuery
333 333
      */
334
-    public function addSort($sort, $descending=false)
334
+    public function addSort($sort, $descending = false)
335 335
     {
336 336
         // add to sort storage
337
-        $this->_sort[] = ($descending?'-':'').$sort;
337
+        $this->_sort[] = ($descending ? '-' : '') . $sort;
338 338
         return $this;
339 339
     }
340 340
     
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
         
380 380
         // profile id (ga:tableId)
381 381
         if ($this->getProfileId() != null) {
382
-            $this->setParam('ids', 'ga:'.ltrim($this->getProfileId(), "ga:"));
382
+            $this->setParam('ids', 'ga:' . ltrim($this->getProfileId(), "ga:"));
383 383
         }
384 384
                 
385 385
         // sorting
@@ -390,10 +390,10 @@  discard block
 block discarded – undo
390 390
         // filtering
391 391
         $filters = "";
392 392
         foreach ($this->_filters as $filter) {
393
-            $filters.=($filter[1]===true?';':',').$filter[0];
393
+            $filters .= ($filter[1] === true ? ';' : ',') . $filter[0];
394 394
         }
395 395
         
396
-        if ($filters!="") {
396
+        if ($filters != "") {
397 397
             $this->setParam('filters', ltrim($filters, ",;"));
398 398
         }
399 399
         
Please login to merge, or discard this patch.