| Conditions | 1 |
| Paths | 1 |
| Total Lines | 52 |
| Code Lines | 49 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php |
||
| 23 | final public static function get() |
||
| 24 | { |
||
| 25 | return [ |
||
| 26 | 'addShipment' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\AddShipment', |
||
| 27 | 'addShipmentResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\AddShipmentResponse', |
||
| 28 | 'addShip' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\AddShip', |
||
| 29 | 'addShipResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\AddShipResponse', |
||
| 30 | 'addShipMPS' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\AddShipMPS', |
||
| 31 | 'addShipMPSResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\AddShipMPSResponse', |
||
| 32 | 'stoShipment' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\StoShipment', |
||
| 33 | 'stoShipmentResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\StoShipmentResponse', |
||
| 34 | 'addShipmentDelv' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\AddShipmentDelv', |
||
| 35 | 'addShipmentDelvResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\AddShipmentDelvResponse', |
||
| 36 | 'getTracking' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetTracking', |
||
| 37 | 'getTrackingResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetTrackingResponse', |
||
| 38 | 'getTrackingResult' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetTrackingResult', |
||
| 39 | 'getTrackingwithRef' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetTrackingwithRef', |
||
| 40 | 'getTrackingwithRefResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetTrackingwithRefResponse', |
||
| 41 | 'getTrackingwithRefResult' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetTrackingwithRefResult', |
||
| 42 | 'getStatus' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetStatus', |
||
| 43 | 'getStatusResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetStatusResponse', |
||
| 44 | 'saphOrderReady' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\SaphOrderReady', |
||
| 45 | 'ArrayOfOrderLineItem' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\ArrayOfOrderLineItem', |
||
| 46 | 'OrderLineItem' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\OrderLineItem', |
||
| 47 | 'saphOrderReadyResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\SaphOrderReadyResponse', |
||
| 48 | 'getStatusByRef' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetStatusByRef', |
||
| 49 | 'getStatusByRefResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetStatusByRefResponse', |
||
| 50 | 'getTrackingByRef' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetTrackingByRef', |
||
| 51 | 'getTrackingByRefResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetTrackingByRefResponse', |
||
| 52 | 'getTrackingByRefResult' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetTrackingByRefResult', |
||
| 53 | 'getShipUpdates' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetShipUpdates', |
||
| 54 | 'getShipUpdatesResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetShipUpdatesResponse', |
||
| 55 | 'getShipUpdatesResult' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetShipUpdatesResult', |
||
| 56 | 'cancelShipment' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\CancelShipment', |
||
| 57 | 'cancelShipmentResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\CancelShipmentResponse', |
||
| 58 | 'getRTLCities' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetRTLCities', |
||
| 59 | 'getRTLCitiesResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetRTLCitiesResponse', |
||
| 60 | 'getRTLCitiesResult' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetRTLCitiesResult', |
||
| 61 | 'getRTLRetails' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetRTLRetails', |
||
| 62 | 'getRTLRetailsResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetRTLRetailsResponse', |
||
| 63 | 'getRTLRetailsResult' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetRTLRetailsResult', |
||
| 64 | 'getAllRetails' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetAllRetails', |
||
| 65 | 'getAllRetailsResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetAllRetailsResponse', |
||
| 66 | 'getAllRetailsResult' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetAllRetailsResult', |
||
| 67 | 'getPDF' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetPDF', |
||
| 68 | 'getPDFResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetPDFResponse', |
||
| 69 | 'getPDFSino' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetPDFSino', |
||
| 70 | 'getPDFSinoResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetPDFSinoResponse', |
||
| 71 | 'getPDFBr' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetPDFBr', |
||
| 72 | 'getPDFBrResponse' => '\\Alhoqbani\\SmsaWebService\\Soap\\Type\\GetPDFBrResponse', |
||
| 73 | ]; |
||
| 74 | } |
||
| 75 | } |
||
| 76 |