Completed
Pull Request — master (#304)
by Jason
05:49
created
code/model/FoxyStripeClient.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     }
67 67
 
68 68
     /**
69
-     * @param $client
69
+     * @param FoxyClient $client
70 70
      * @return $this
71 71
      */
72 72
     public function setClient($client)
Please login to merge, or discard this patch.
code/extensions/FoxyStripeSiteConfig.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 use Dynamic\FoxyStripe\Model\FoxyStripeClient;
4 4
 
5
-class FoxyStripeSiteConfig extends DataExtension{
5
+class FoxyStripeSiteConfig extends DataExtension {
6 6
 
7 7
 	private static $db = array(
8 8
 	    'StoreTitle' => 'Varchar(255)',
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         'ProductLimit' => 10
28 28
     );
29 29
 
30
-	public function updateCMSFields(FieldList $fields){
30
+	public function updateCMSFields(FieldList $fields) {
31 31
 
32 32
         // set TabSet names to avoid spaces from camel case
33 33
         $fields->addFieldToTab('Root', new TabSet('FoxyStripe', 'FoxyStripe'));
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         ));
84 84
 
85 85
         // configuration warning
86
-		if(FoxyCart::store_name_warning()!==null){
86
+		if (FoxyCart::store_name_warning() !== null) {
87 87
 			$fields->insertBefore(LiteralField::create(
88 88
                 "StoreSubDomainHeaderWarning",
89 89
                 _t(
@@ -174,14 +174,14 @@  discard block
 block discarded – undo
174 174
 
175 175
         $siteConfig = SiteConfig::current_site_config();
176 176
 
177
-        if(!$siteConfig->StoreKey) {
177
+        if (!$siteConfig->StoreKey) {
178 178
             $key = FoxyCart::setStoreKey();
179
-            while(!ctype_alnum($key)){
179
+            while (!ctype_alnum($key)) {
180 180
                 $key = FoxyCart::setStoreKey();
181 181
             }
182 182
             $siteConfig->StoreKey = $key;
183 183
             $siteConfig->write();
184
-            DB::alteration_message($siteConfig->ClassName.": created FoxyCart Store Key " . $key, 'created');
184
+            DB::alteration_message($siteConfig->ClassName.": created FoxyCart Store Key ".$key, 'created');
185 185
         }
186 186
     }
187 187
 
Please login to merge, or discard this patch.