Completed
Push — master ( a9ad96...04f2d0 )
by Nicolas
02:49
created
src/SA/CpeSdk/CpeActivity.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         // Check if there is an activity name
50 50
         if (!isset($params["name"]) || !$params["name"])
51 51
             throw new CpeSdk\CpeException("Can't instantiate BasicActivity: 'name' is not provided or empty !\n", 
52
-			    self::NO_ACTIVITY_NAME);
52
+                self::NO_ACTIVITY_NAME);
53 53
         
54 54
         if (!$cpeLogger)
55 55
             $this->cpeLogger = new CpeSdk\CpeLogger(null, $params["name"]); 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         // Check if there is a version name
62 62
         if (!isset($params["version"]) || !$params["version"])
63 63
             throw new CpeSdk\CpeException("Can't instantiate BasicActivity: 'version' is not provided or empty !\n", 
64
-			    self::NO_ACTIVITY_VERSION);
64
+                self::NO_ACTIVITY_VERSION);
65 65
 
66 66
         // Initialize the activity in SWF if necessary
67 67
         $this->init_activity();
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
     {
107 107
         if (!$task)
108 108
             throw new CpeSdk\CpeException("Activity Task empty !", 
109
-			    self::ACTIVITY_TASK_EMPTY); 
109
+                self::ACTIVITY_TASK_EMPTY); 
110 110
         
111 111
         if (!isset($task["input"]) || !$task["input"] ||
112 112
             $task["input"] == "")
113 113
             throw new CpeSdk\CpeException("No input provided to 'Activity'", 
114
-			    self::NO_INPUT);
114
+                self::NO_INPUT);
115 115
         
116 116
         // Save input string
117 117
         $this->input_str      = $task["input"];
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         // Check JSON input
136 136
         if (!($this->input = json_decode($this->input_str)))
137 137
             throw new CpeSdk\CpeException("JSON input is invalid !", 
138
-			    self::INPUT_INVALID);
138
+                self::INPUT_INVALID);
139 139
     }
140 140
     
141 141
     /**
Please login to merge, or discard this patch.