Skip to content

Commit aa3cd7f

Browse files
authored
Merge pull request #24 from ingrammicro/fix-small-code-style-improvements
Fix small code style improvements
2 parents 6057883 + 3e9738b commit aa3cd7f

File tree

122 files changed

+236
-288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+236
-288
lines changed

examples/example.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
class MyAppRequests extends \Connect\RequestsProcessor
77
{
8-
98
public function processRequest($req)
109
{
1110
$req->asset->tiers['customer']->name;
@@ -52,12 +51,9 @@ public function processRequest($req)
5251

5352

5453
try {
55-
5654
$rp = new MyAppRequests();
5755
$rp->process();
58-
5956
} catch (Exception $e) {
6057
\Connect\Logger::get()->error($e->getMessage());
6158
\Connect\Logger::get()->dump();
6259
}
63-

src/Account.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,4 @@ class Account extends Model
3939
*/
4040

4141
public $contact_info;
42-
43-
}
42+
}

src/Activation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ class Activation extends Model
1818
* @var
1919
*/
2020
public $link;
21-
}
21+
}

src/ActivationTemplateResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ public function __construct($templateid)
2727
{
2828
$this->templateid = $templateid;
2929
}
30-
}
30+
}

src/ActivationTileResponse.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ public function __construct($msg = null)
3030
$this->activationTile = $msg;
3131
}
3232
}
33-
34-
}
33+
}

src/Agreement.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ class Agreement extends Model
2222
* @var
2323
*/
2424
public $name;
25-
26-
}
25+
}

src/Asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ public function getItemByMPN($mpn)
8686

8787
return ($item) ? $item : null;
8888
}
89-
}
89+
}

src/Assignee.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ class Assignee extends Model
2222
* @var
2323
*/
2424
public $name;
25-
}
25+
}

src/Choice.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ class Choice extends Model
2222
* @var
2323
*/
2424
public $label;
25-
26-
}
25+
}

src/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function __construct($source)
9898
case 'object':
9999
case 'array':
100100
break;
101-
default :
101+
default:
102102
throw new ConfigException("Invalid argument for \\Connect\\Config class constructor: " . gettype($source));
103103
}
104104

@@ -152,7 +152,7 @@ public function setRuntimeServices($runtimeServices)
152152

153153
public function setProducts($product)
154154
{
155-
if(is_string($product)) {
155+
if (is_string($product)) {
156156
$product = [$product];
157157
}
158158

0 commit comments

Comments
 (0)